• 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: NSWorkspace openFile: bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspace openFile: bug?


  • Subject: Re: NSWorkspace openFile: bug?
  • From: John Stiles <email@hidden>
  • Date: Fri, 5 Jan 2007 11:51:53 -0800


On Jan 5, 2007, at 11:46 AM, Sean McBride wrote:

You could use
AppleEvents directly if you're that concerned.

I tried reading the docs for this, but got discouraged too quickly....how exactly would I go about doing this using AE?

Agreed. AEs are messy, I was also put off quickly. The AppleScript method I showed you works fast enough, even on my G4.

AppleScript is a huge mess. (Low level AEs aren't so terrible, OTOH, but you wouldn't want to write any complex interactions with them.)
AppleScript is convenient for interacting with Growl, though, since you can avoid linking in a several-hundred-K framework. :) I use NSAppleScript to drive Growl in one of my apps, and I was pleased with the results. In my case, size is an issue and an 300K of extra code wouldn't have been justifiable, so I'm glad they support AppleScript!


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSWorkspace openFile: bug? (From: Paul Borokhov <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: John Stiles <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: Paul Borokhov <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: John Stiles <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: Paul Borokhov <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: NSWorkspace openFile: bug?
  • Next by Date: Re: NSWorkspace openFile: bug?
  • Previous by thread: Re: NSWorkspace openFile: bug?
  • Next by thread: Re: NSWorkspace openFile: bug?
  • Index(es):
    • Date
    • Thread