• 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: Getting finder Labels?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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"


  • Prev by Date: Re: Applescript to run at shutdown...
  • Next by Date: Re: Figured it out....
  • Previous by thread: Re: Getting finder Labels?
  • Next by thread: Re: Getting finder Labels?
  • Index(es):
    • Date
    • Thread