Re: Need Automatic Folder Color Labeling Script
Re: Need Automatic Folder Color Labeling Script
- Subject: Re: Need Automatic Folder Color Labeling Script
- From: Aaron Gates <email@hidden>
- Date: Mon, 30 Apr 2007 15:03:48 -0500
- Thread-topic: Need Automatic Folder Color Labeling Script
Thanks for your quick response! Unfortunately, unless I am doing something
wrong, it doesn't work. The attach script doesn't attach an action to a
folder and the "set label to red" script doesn't change the label to red.
Also, I will try to explain the situation a little better.
There are prenumbered job folders. We'll call them "JOB-1" through "JOB-5".
I copy a structure of folders into each job folder when I start working on
the job. We'll call them "WORK-1" through "WORK-5". Inside of the work
folders, depending on which one it is, there may be a couple more sub
folders, we'll call them "SUB-1" and "SUB-2". I would only like the folders
from the WORK level down to change to red if something is added. I don't
need anything from the JOB level and up to change. Also, would it be
possible that if something was added to a sub folder, that all the folders
in that string, up to the WORK level folders would turn red...in essence
leaving a trail to the information? Then when I open a JOB folder I would
see something like WORK-2 and WORK-3 colored red and I would know to head
there and keep following the trail until I got to the information. All the
files that are added to these folders are fairly large so maybe even a
script containing a condition that relies on exceeding a certain amount of
information stored in a folder might work.
I don't know if it works this way but, I thought if this script was applied
to the blank folder structure that I copy in, it would copy in with the
folder structure each time I copy it.
I know this is probably as clear as mud now but any help would be greatly
appreciated. THANKS!
-Aaron
On 4/30/07 2:23 PM, "Michelle Steiner" <email@hidden> wrote:
> On Apr 30, 2007, at 11:55 AM, Aaron Gates wrote:
>
>> I'm a recent switchover to Apple and I'm trying to figure out a way to
>> organize one of my folder structures (job folders). I always drag a
>> standardized set of folders into each job folder and then organize
>> my files
>> into them. Is there a simple script that would allow me to have the
>> the
>> folders within that set of folders automatically turn red when a
>> file is
>> placed in them and leave the empty folders colorless?
>
> I'm trying to figure out exactly what you want. You have a top-level
> job folder. Let's name it "top" for the purpose of this discussion.
>
> Inside top you have a group of folders, let's call them level1-1,
> through level1-n.
>
> You want a folder at level1 to turn red whenever a file is placed
> inside it, but to leave all the other level1 folders white until
> files are placed inside them, right?
>
> Save the following script as "set label to red" in the folder "folder
> actions" of the folder "scripts" of the folder "Library" of your
> startup disk.
> on adding folder items to this_folder after receiving these_items
> tell application "Finder"
> set label index of this_folder to 1
> end tell
> end adding folder items to
>
> Then save this script to the same place as "attach actions"
>
> on adding folder items to this_folder after receiving these_items
> tell application "System Events"
> repeat with this_item in these_items
> attach action to this_item using "set label to red"
> end repeat
> end tell
> end adding folder items to
>
> When you create a top-level folder ("top" in this example), attach
> the second script ("attach actions") to it. Then when you move the
> level1 folders into "top", the script attached to top should attach
> the "set label to red" script to each level1 folder.
>
> Then when you add an item to a level1 folder, it should turn red.
>
> I have not tested these scripts, but I believe they should work.
>
> -- Michelle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden