• 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: NSAppleScript - what is going on here?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript - what is going on here?


  • Subject: Re: NSAppleScript - what is going on here?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Mon, 23 Mar 2009 07:12:01 -0700


On Mar 23, 2009, at 6:28 AM, Michael Tsai wrote:

On Mar 23, 2009, at 12:19 AM, Adam R. Maxwell wrote:

Using the MDItem C API had none of the AppleScript/Apple event problems, and was a small fraction of the code.

On the other hand, MDItem will probably fail if the file is on a volume for which Spotlight is disabled or its index isn't up-to-date.

Thanks for pointing that out; I just wrote a quick test and it does fail on my iDisk. Good thing I don't need it now that NSFileManager doesn't strip Finder comments...


If anyone wants the Apple event version, let me know and I'll dig it up from svn history; it's an order of magnitude faster than using AppleScript.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >NSAppleScript - what is going on here? (From: Steve Cronin <email@hidden>)
 >Re: NSAppleScript - what is going on here? (From: "Adam R. Maxwell" <email@hidden>)
 >Re: NSAppleScript - what is going on here? (From: Steve Cronin <email@hidden>)
 >Re: NSAppleScript - what is going on here? (From: Michael Ash <email@hidden>)
 >Re: NSAppleScript - what is going on here? (From: "Adam R. Maxwell" <email@hidden>)
 >Re: NSAppleScript - what is going on here? (From: Michael Tsai <email@hidden>)

  • Prev by Date: Core Animation slow down
  • Next by Date: NSObliquenessAttributeName, labelFontOfSize, & Italic
  • Previous by thread: Re: NSAppleScript - what is going on here?
  • Next by thread: Re: NSAppleScript - what is going on here?
  • Index(es):
    • Date
    • Thread