Skip to content

Instantly share code, notes, and snippets.

@timvisher
Created January 8, 2014 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timvisher/8321366 to your computer and use it in GitHub Desktop.
Save timvisher/8321366 to your computer and use it in GitHub Desktop.
tell application "Finder"
set subroutines to (load script file "subroutines.scpt" of ?
folder "Dropbox" of home as alias)
set lunch_and_learn_file to file "lunchandlearn.org" of folder "Dropbox" of home
end tell
tell application "Google Chrome"
set todo_line to "* TODO [[" & (get URL of active tab of front window) & "][" & (get title of active tab of front window) & "]]" & (ASCII character 10)
end tell
tell subroutines to write_to_file(todo_line, ?
lunch_and_learn_file, ?
true)
tell application "Google Chrome" to close active tab of front window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment