Skip to content

Instantly share code, notes, and snippets.

@clayallsopp
Created February 27, 2011 23:16
Show Gist options
  • Save clayallsopp/846683 to your computer and use it in GitHub Desktop.
Save clayallsopp/846683 to your computer and use it in GitHub Desktop.
Addition to gist
property Downloads : "Macintosh HD:Users:clayallsopp:Downloads:"
on run
tell application "Finder"
set d to Downloads as alias
set folder_contents to every file in d
repeat with eachitem in folder_contents
if (name of eachitem ends with ".html") then
move eachitem to folder WebDev
end if
... etc etc
end repeat
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment