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
(* | |
Please change your folder and project names to whatever you use in OmniFocus. I have the acceptable task count at 1 but change this to whatever you feel comfortable with. | |
Author: Brandon Pittman | |
URL: http://brandonpittman.net | |
*) | |
set taskCount to 1 | |
tell application "OmniFocus" |
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 "System Events" | |
tell process "Finder" | |
if window 1 exists then | |
tell application "Finder" | |
set thePath to get quoted form of POSIX path of (target of front Finder window as text) | |
return "cd " & thePath & return | |
end tell | |
else | |
display alert "Finder doesn't have a window open." as warning giving up after 2 | |
end if |
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 "System Events" | |
set the_dialog to display dialog "What would you like to prepend to the selected notes?" default answer "" | |
set prepend_text to text returned of the_dialog | |
end tell | |
tell application "Evernote" | |
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 "System Events" | |
set the_dialog to display dialog "What would you like to append to the selected notes?" default answer "" | |
set append_text to text returned of the_dialog | |
end tell | |
tell application "Evernote" | |
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
#!/bin/bash | |
/usr/local/bin/brew upgrade | |
/usr/local/bin/brew update | |
~/.rvm/rubies/ruby-head/bin/gem update | |
~/.rvm/rubies/ruby-head/bin/gem update --system | |
/usr/local/bin/npm update |
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 "System Events" | |
set new_name to text returned of (display dialog "Rename this file to..." default answer "" with title "Rename File" with icon POSIX file "/Applications/BBEdit.app/Contents/Resources/BBEditApplication.icns") | |
end tell | |
tell application "BBEdit" | |
set theFile to file of front document | |
end tell | |
tell application "Finder" | |
set ext to "." & name extension of file theFile |
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" | |
set the_notes to selection | |
set the_dialog to display dialog "What would you like to title these notes?" default answer "" | |
set the_title to text returned of the_dialog | |
set the_count to 1 |
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" | |
set instagram_photos to find notes "tag:instagram intitle:Untitled" | |
repeat with photo_title in instagram_photos | |
open note window with photo_title | |
end repeat | |
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
#!/bin/bash | |
# I use an elaborate system of "dayfile-#{date}" along with monthfile and | |
# weekfile to track my goals. I then log them in Day One. | |
# Sets the time you want to do the logging at. The "10#" prevents the shell from lopping off leading 0s." | |
let cutoff="10#$(date +"%H%M")" | |
if (($cutoff > 2349)) | |
then |
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
"\d{1,9}":\{"title":"[A-Za-z \d:\.\&]+","rating":\d\.\d,"tmdb_id":\d{1,9},"released":"\d{4}-\d{2}-\d{2}","watched":"\d{4}-\d{2}-\d{2} \d{2}:\d{2}"\} |
OlderNewer