Created
January 8, 2014 18:05
-
-
Save timvisher/8321366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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