• 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: stopping an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stopping an application


  • Subject: Re: stopping an application
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 14 Apr 2009 02:50:45 +0200

On 14.04.2009, at 02:42, Bill Janssen wrote:
% osascript -e 'tell application "/Applications/Utilities/foo.app" to quit'


Avoid building and executing scripts if there's API. I hate tearing people a new one because they build a script and incorrectly escape special characters. E.g. imagine the path contained a space, or a quote character, all of which are valid. Heck, you can even have return characters in filenames, though they're not as easy to get these days.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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


References: 
 >stopping an application (From: Bill Janssen <email@hidden>)
 >Re: stopping an application (From: Nick Zitzmann <email@hidden>)
 >Re: stopping an application (From: Bill Janssen <email@hidden>)
 >Re: stopping an application (From: Nick Zitzmann <email@hidden>)
 >Re: stopping an application (From: Bill Janssen <email@hidden>)

  • Prev by Date: Re: NSMatrix of NSButtonCells prototype bindings not applied to instances in matrix
  • Next by Date: Re: typeFromFileExtension in Leopard SDK
  • Previous by thread: Re: stopping an application
  • Next by thread: Re: stopping an application
  • Index(es):
    • Date
    • Thread