Re: Labelling files and folders
Re: Labelling files and folders
- Subject: Re: Labelling files and folders
- From: "John S. Baltutis" <email@hidden>
- Date: Wed, 14 Feb 2001 11:27:22 -0800
Sorry if this is a duplicate, post.
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.