Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (24 sloc) 942 Bytes
-- Chromium_UpdaterAppDelegate.applescript
-- Chromium Updater
-- Created by Dom Barne
-- Application Icon by Koen Punt
-- Copyright 2011. All rights reserved.
script Chromium_UpdaterAppDelegate
property parent : class "NSObject"
property build_label : missing value
property latest : missing value
on awakeFromNib()
end awakeFromNib
on applicationWillFinishLaunching_(aNotification)
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
-- Insert code here to do any housekeeping before your application quits
return current application's NSTerminateNow
end applicationShouldTerminate_
on FetchBuild()
--obtain latest build number
set latest to do shell script "curl"
build_label's setStringValue_(latest as string)
end FetchBuild
end script