Launching by variable in OS X
Launching by variable in OS X
- Subject: Launching by variable in OS X
- From: Dave Johnson <email@hidden>
- Date: Wed, 30 Jan 2002 10:03:39 -0500
I want to open a document and then do something with it in a droplet in OS
X. However the old launch by variable does not appear to work. Below is what
I have been trying. But the application just does not launch. No errors by
it does not launch. Do we need to use a different approach in X?
on open (doclist) -- if called by dropping files on me.
repeat with i in doclist
tell application "Finder"
set create_type to creator type of i
set appName to get name of application file id create_type
set appPath to application file id create_type as string
launch application appPath
launch application appName
end tell
end repeat
quit
end open