Skip to content

Instantly share code, notes, and snippets.

@roolo
Created February 25, 2012 00:45
Show Gist options
  • Select an option

  • Save roolo/1904953 to your computer and use it in GitHub Desktop.

Select an option

Save roolo/1904953 to your computer and use it in GitHub Desktop.
Auto Labeling by Folder Actions

Save add - yellowize.scpt into ~/Library/Scripts/Folder Action Scripts. Then ⌃+click on some folder and select Folder Actions Setup. Attach the scpt file and try to copy something into tested folder

on adding folder items to this_folder after receiving these_items
tell application "Finder"
repeat with one_item in these_items
set label index of one_item to 3
end repeat
end tell
end adding folder items to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment