Created
March 28, 2013 13:48
-
-
Save apricot13/5263239 to your computer and use it in GitHub Desktop.
An applescript to monitor a folder and add a red label to any new files/folders added.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- I want edited folders to be red. | |
property red : 2 | |
on adding folder items to this_folder after receiving added_items | |
try | |
tell application "Finder" | |
-- set label of the 'watched' folder to red | |
set label index of this_folder to red | |
-- for the items added | |
repeat with item_ in added_items | |
if kind of item_ is "Folder" then --if its a folder then make it red | |
set label index of item_ to red | |
else -- else make it red....! | |
set label index of item_ to red | |
end if | |
end repeat | |
end tell | |
on error | |
display dialog "Error occured" | |
return | |
end try | |
end adding folder items to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment