Re: launching finder with optionschi
Re: launching finder with optionschi
- Subject: Re: launching finder with optionschi
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 16 Jun 2008 16:00:29 -0400
On Mon, Jun 16, 2008 at 3:20 PM, Memo Akten <email@hidden> wrote:
> 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...
Even better reason not to involve yet another layer of indirection
(and an expensive and visually-obtrusive one, at that) between your
code and your goal. Presumably, your code has your string extracted
from the XML, and your code is also able to interface with Apple
Events using either the raw API (slightly confusing and verbose) or
the Scripting Bridge (Leopard exclusive, not 100% compatible with
every possible Apple Event). I wouldn't use Jens' method because
while it is conceptually simpler it requires you to bounce out to the
disk for a frankly tiny script. Plus this is a great opportunity to
teach yourself about inter-process communication in Mac OS X.
--Kyle Sluder
_______________________________________________
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