Skip to content

Instantly share code, notes, and snippets.

@backflip
Created November 22, 2011 18:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save backflip/1386442 to your computer and use it in GitHub Desktop.
Save backflip/1386442 to your computer and use it in GitHub Desktop.
OS X Folder Action to make Screenshot either public or not
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