Created
November 22, 2011 18:26
-
-
Save backflip/1386442 to your computer and use it in GitHub Desktop.
OS X Folder Action to make Screenshot either public or not
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
on adding folder items to theWatchedFolder after receiving theDetectedItems | |
set _public to "Macintosh HD:Users:me:Dropbox:Public:Screenshots" | |
set _private to "Macintosh HD:Users:me:Dropbox:Photos:Screenshots" | |
try | |
set _choice to button returned of (display dialog "Share on DropBox?" buttons {"No", "Yes"} default button 2 cancel button "No") | |
if _choice = "Yes" then | |
tell application "Finder" | |
move theDetectedItems to _public | |
end tell | |
end if | |
on error | |
tell application "Finder" | |
--move theDetectedItems to _private | |
open folder theWatchedFolder | |
activate | |
end tell | |
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