Re: NSAppleScript - what is going on here?
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