Skip navigation.
 
mlRe: launching finder with optionschi
FROM : Memo Akten
DATE : Mon Jun 16 21:20:39 2008

"t may work, but it is unnecessarily complicated.  Since AppleScript
is just a user-friendly representation of Apple Events, you can use
either raw Apple Events (AEDesc and friends) or the Scripting Bridge
(Leopard only) to do the exact same thing without the overhead of
launching another application."

"It'd be faster and more lightweight to add the compiled script to 
your app as a resource, and then use NSAppleScript to load and run it. 
Right now you've got the extra overhead of launching and quitting a 
GUI app, and I'll bet there's a momentary bounce in the Dock too."

Thanks guys, yea there is a momentary bounce in the dock. I did it 
this way because my app loads an XML and there are a number of apps 
that it can launch depending on what you choose and the app name in 
the XML. I just wanted to keep it generic. So I guess I would need to 
add the functionality to add an appname or compiled scriptname to the 
XML? I will look into the APIs mentioned...

Cheers,



Memo (Mehmet S. Akten)

www.memo.tv

<email_removed>

Related mailsAuthorDate
mllaunching finder with optionschi Memo Akten Jun 16, 15:09
mlRe: launching finder with optionschi Jens Alfke Jun 16, 17:40
mlRe: launching finder with optionschi Memo Akten Jun 16, 18:36
mlRe: launching finder with optionschi Kyle Sluder Jun 16, 19:50
mlRe: launching finder with optionschi Jens Alfke Jun 16, 20:17
mlRe: launching finder with optionschi Memo Akten Jun 16, 21:20
mlRe: launching finder with optionschi Kyle Sluder Jun 16, 22:00
mlRe: launching finder with optionschi Uli Kusterer Jun 17, 15:08