vendredi 23 janvier 2015

"open file -a AppleScriptApp" question


I exported my script as application. And I want to use it as follows:



$ open ~/some_file -a my_applescript_application


Inside of script I handle args:



on run argv
if (count of argv) > 0 then
-- do something with item 1 of argv
-- I expect it to be the path of file I am trying to open
return "defined"
else
return "failed"
end if
end run


Is it even possible?





Aucun commentaire:

Enregistrer un commentaire