content: property cacheFile : "cache.plist"
  property workflowFolder : do shell script "pwd"
  
  on run argv
  	set bundleid to item 1 of argv
  	set currentversion to item 2 of argv
  	set myPath to path to me
  	tell application "Finder" to set workflowFolder to (folder of myPath) as string
  	set lib to load script file (workflowFolder & "alfred_library.scpt")
  	set wf to load script file (workflowFolder & "q_workflow.scpt")
  	
  	set wf to wf's new_workflow_with_bundle(bundleid)
  	set cachePath to wf's _data & cacheFile
  	
  	--create plist if it doesn't already exist
  	if not wf's q_file_exists(cachePath) then
  		-- OS 10.10 workaround
  		do shell script "defaults write " & quoted form of cachePath & " cacheInProgress 0"
  	end if
  	
  	wf's set_value("updatecheck", (current date), cacheFile)
  	
  	try
  		set latestVersionInfo to lib's splitByColon(lib's checkVersion(bundleid))
  		if item 1 of latestVersionInfo is "version" then set latestversion to item 2 of latestVersionInfo
  		set isLatest to (currentversion is greater than or equal to latestversion)
  	on error
  		set isLatest to true
  	end try
  	
  	wf's set_value("isLatestVersion", isLatest, cacheFile)
  	wf's set_value("latestversion", latestversion, cacheFile)
  	
  	return isLatest
  end run