Skip to content

Instantly share code, notes, and snippets.

@finsprings
Created August 29, 2010 03:39
Show Gist options
  • Select an option

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

Select an option

Save finsprings/555929 to your computer and use it in GitHub Desktop.
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:New Note " & 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment