• 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: Color Labels in Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color Labels in Panther


  • Subject: Re: Color Labels in Panther
  • From: Bill Briggs <email@hidden>
  • Date: Thu, 27 Nov 2003 22:02:32 -0400

At 11:11 AM +1100 28/11/03, Steve wrote:
Want a folder action to color label folders when placed into a folder. This needs to be a panther script, as other scripts don't run.

Since everyone in the US is on the couch recovering from overeating, or too much wine, I'll get you started.

Broken down into simple steps...

on adding folder items to this_folder after receiving added_items
tell application "Finder"
set theItem to folder "test" of folder "DATA" of folder "bill" of folder "Users" of disk "Data"
set Fs to every folder of this_folder -- in case there are files tossed in that you don't want labeled
repeat with i from 1 to count of Fs
set the_f to item i of Fs
set label index of the_f to 3 -- use the index that you want for the right colour
end repeat
end tell
end adding folder items to

Set the label index to suit yourself. Or set it to "i mod 7" to get different colours on the labels. Fun!

- web
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Color Labels in Panther
      • From: Bill Briggs <email@hidden>
References: 
 >Color Labels in Panther (From: Steve <email@hidden>)

  • Prev by Date: Color Labels in Panther
  • Next by Date: Re: Color Labels in Panther
  • Previous by thread: Color Labels in Panther
  • Next by thread: Re: Color Labels in Panther
  • Index(es):
    • Date
    • Thread