• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Launching by variable in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: can I make a list of records?
  • Next by Date: Re: OS X - Make new Finder window bug
  • Previous by thread: Re: Scripting OS X Mail app
  • Next by thread: Read data from a file in Standard Additions" broken in AS Version >1.4
  • Index(es):
    • Date
    • Thread