• 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
Re: launching finder with optionschi
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: launching finder with optionschi
      • From: "Kyle Sluder" <email@hidden>
References: 
 >launching finder with optionschi (From: Memo Akten <email@hidden>)
 >Re: launching finder with optionschi (From: Jens Alfke <email@hidden>)
 >Re: launching finder with optionschi (From: Memo Akten <email@hidden>)
 >Re: launching finder with optionschi (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Strange leak reported by leaks command line tool
  • Next by Date: Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file? BACK ON TRACK
  • Previous by thread: Re: launching finder with optionschi
  • Next by thread: Re: launching finder with optionschi
  • Index(es):
    • Date
    • Thread