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
-- Before we do anything, see if there's even an instance | |
-- of Chrome running. | |
tell application "System Events" | |
set numChrome to count (every process whose name is "Google Chrome") | |
end tell | |
if numChrome > 0 then | |
tell application "Google Chrome" | |
set frontIndex to active tab index of front window | |
set theUrl to URL of tab frontIndex of front window |
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
(* | |
### SCRIPT NAME | |
Save Files to Evernote (via Hazel) | |
### DESCRIPTION | |
Allows for smarter document creation on OS X: if Evernote is running, use | |
Applescript to add the document; otherwise, use the user's Evernote | |
email address. |
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
-- Determine whether OmniFocus is running. | |
tell application "System Events" | |
set omnifocusActive to count (every process whose name is "OmniFocus") | |
end tell | |
if omnifocusActive > 0 then | |
-- OmniFocus is running, so insert a task into it directly. | |
tell application "OmniFocus" to tell document 1 | |
make new inbox task with properties {name:"TASK TITLE"} | |
end tell |
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
(* | |
### SCRIPT NAME | |
OmniFocus+ | |
### DESCRIPTION | |
Allows for smarter task entry on OS X: if OmniFocus is running, use | |
Applescript to add the task; otherwise, use the user's Mail Drop | |
email address. |
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
(* | |
### SCRIPT NAME | |
Add Emails to OmniFocus | |
### DESCRIPTION | |
A simple script aimed at working with "todo" emails. The script | |
accomplishes two things: |
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
(* | |
### SCRIPT NAME | |
Send nvALT Checkboxes to Omnifocus | |
### DESCRIPTION | |
Automatically scans nvALT files (via Hazel) and, upon finding "checkboxes," | |
sends them to OmniFocus as tasks. |
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 "Evernote" | |
activate | |
create note from file theFile notebook {"Personal Archive"} tags {"receipt/statement"} | |
end tell |
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
on hazelProcessFile(theFile) | |
set p to POSIX path of theFile | |
set l to paragraphs of (do shell script "grep '\[ x \]' " & quoted form of p) | |
tell application "OmniFocus" to tell document 1 | |
repeat with v in l | |
set taskName to (do shell script "n="" & v & ""; echo ${n:6}") | |
set taskNote to "Created from nvALT: nvalt://find/" & my encode_text(my remove_extension(my basename(p)), true, false) | |
make new inbox task with properties {name:taskName, note:taskNote} | |
end repeat |
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
bp () { | |
if [ "$#" -ne 0 ] || [ "$1" = "-h" ] || [ "$1" = "–help" ] | |
then | |
echo "Usage: $0" >&2 | |
return 1 | |
fi | |
# Fill these out with values you like. | |
local tag_string=“draft” | |
local notebook=“Sentinote” |
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 "Evernote" | |
activate | |
create note from file theFile notebook {"Personal"} tags {"receipt/statement"} | |
end tell |