• 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: Labelling files and folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Labelling files and folders


  • Subject: Re: Labelling files and folders
  • From: "John S. Baltutis" <email@hidden>
  • Date: Wed, 14 Feb 2001 17:04:29 -0800

If you want the same label attached to every file and folder inside the folder, then this works [9.0.4 and AS 1.4.3] (requires Sdndi's Additions's TypeText command). The left and right arrows are ASCII character 28 and 29, respectively.

tell application "Finder"
activate
select folder "XYZ"
open selection
TypeText "A" with Command
TypeText (ASCII character 29) with Command
TypeText "A" with Command
set label index of selection to x --x is a label selection 0-7 (top to bottom)
TypeText (ASCII character 28) with Command
close container window of folder "XYZ"
end tell

HTH

Bob Bader <email@hidden> wrote:
To: <email@hidden>

I am looking for a script that will search through a folder (and infinite
levels of sub folders) looking at all the files.

For example I want to take a folder and put a label on every file in that
folder. However there could be any number of sub folders with files and
more sub folders in the target folder.


  • Prev by Date: Re: applescript-users digest, Vol 2 #370 - 14 msgs
  • Next by Date: Re: Mount volume, slash problem
  • Previous by thread: Time string (was a digest)
  • Next by thread: Re: Labelling files and folders
  • Index(es):
    • Date
    • Thread