Skip to content

Instantly share code, notes, and snippets.

@finsprings
Created September 12, 2010 16:14
Show Gist options
  • Select an option

  • Save finsprings/576210 to your computer and use it in GitHub Desktop.

Select an option

Save finsprings/576210 to your computer and use it in GitHub Desktop.
on run {input, parameters}
set now to (do shell script "date '+%Y-%m-%d-%H-%M-%S'") as string
set home to (path to home folder) as string
set filename to home & "Dropbox:notesy:" & input & " (" & now & ")" & ".txt"
set snippet to the clipboard as «class utf8»
set fd to open for access filename with write permission
write snippet to fd as «class utf8»
close access fd
say "created " & input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment