Re: launching finder with optionschi
Re: launching finder with optionschi
- Subject: Re: launching finder with optionschi
- From: Memo Akten <email@hidden>
- Date: Mon, 16 Jun 2008 20:20:39 +0100
- Domainkey-status: no signature
"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@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden