Re: Getting finder Labels?
Re: Getting finder Labels?
- Subject: Re: Getting finder Labels?
- From: Richard Morton <email@hidden>
- Date: Fri, 9 Nov 2001 14:09:31 +1100
Brian Johnson's message of 7/11/01 11:17 AM contained:
>
What is the appropriate method by which to get the text string of the
>
Finder's "Label" fields for a file?
It appears to need 2 steps - get the index, then the name:
set f to choose file -- alias
tell application "Finder"
set n to label index of f -- integer (0-7)
if n = 0 then -- the file isn't labelled
set labelName to "None"
else -- the file is labelled
set labelName to name of label n of Finder preferences -- string
end if
end tell
Cheers,
Richard Morton
-- Great Lies of the Music Business: "It's the hottest pickup you can
get"