"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 PROTECTED] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]