Re: Adding Spotlight comment data to folder/file
Re: Adding Spotlight comment data to folder/file
- Subject: Re: Adding Spotlight comment data to folder/file
- From: Kevin Muldoon <email@hidden>
- Date: Mon, 11 Jul 2011 21:31:06 -0400
Program is a drag/drop app that asks user for the work order number and creates a directory structure customized for the client. Submitted files are copied into a date stamped folder within that job 'Supplied Folder'.
I thought it would be handy to place user name/computer name which used the program within the comments field of that date stamped folder, therefore giving an extra level of tracking should it be needed. I mention spotlight because that is what the comments field is now labeled as you hit command-i on a file/folder.
I'm leery of calling AS through ScriptingBridge since the directories are created programmatically in Obj-C. I have experienced Apple Events not recognizing the presence of files/folder created by, lets say a shell script, until some moments later.
Well, as I indicated, it's only a bit of icing on the cake. I'm just a bit shocked such an trivial task in a scripting language requires such heavy lifting in Obj-C (or more accurately, C).
On Jul 11, 2011, at 8:17 PM, Kyle Sluder wrote:
> On Mon, Jul 11, 2011 at 5:07 PM, Kevin Muldoon <email@hidden> wrote:
>> Oh my dear lord above. I think I'll one line it with a scripting bridge call. If it works.
>
> The bigger question is why you want to put stuff in this field? It's
> intended for the user. If you want to generate additional Spotlight
> data, you should write a Spotlight importer.
>
> --Kyle Sluder
Kevin Muldoon
e: 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