Re: Spotlight Workaround
Re: Spotlight Workaround
- Subject: Re: Spotlight Workaround
- From: Martin Orpen <email@hidden>
- Date: Wed, 1 Jun 2005 18:23:55 +0100
On 1 Jun 2005, at 17:55, I wrote:
tell application "Script Editor"
set foo to text of document 1
set bar to path of document 1
end tell
tell application "Finder"
set comment of my POSIX file bar to foo
end tell
Which, for metadata purposes, can obviously be shortened to:
tell application "Script Editor" to set {foo, bar} to {text,
path} of document 1
tell application "Finder" to set comment of my POSIX file bar to
foo
BTW: What's the limit on the comment length?
I've used this on some big scripts and haven't found one that
couldn't be accommodated yet :-)
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden