Folder Actions Question
Folder Actions Question
- Subject: Folder Actions Question
- From: Stuart Milliken <email@hidden>
- Date: Fri, 5 Sep 2008 23:07:15 +0800
> Depending on how you coded it, it's highly possible that is
happening.
However, unless you post the code, it is difficult to say for sure.
The script is as follows. Thanks for looking.
Stuart
on adding folder items to thisFolder after receiving someItems
tell application "Finder"
set label index of thisFolder to 4 --blue
end tell
end adding folder items to
on removing folder items from thisFolder after losing someItems
tell application "System Events"
set filesInFolder to every file of thisFolder whose visible is true
set n to count filesInFolder
set foldersInFolder to every folder of thisFolder whose visible is
true
set n to n + (count foldersInFolder)
end tell
tell application "Finder"
if n = 0 then
set label index of thisFolder to 7 --gray
else
set label index of thisFolder to 4 --blue
end if
end tell
end removing folder items from
_______________________________________________
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