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
(* | |
No color = 0 | |
Orange = 1 | |
Red = 2 | |
Yellow = 3 | |
Blue = 4 | |
Purple = 5 | |
Green = 6 | |
Gray = 7 | |
*) |
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
import webbrowser | |
import urllib | |
# http://duckduckgo.com/?q=asdf | |
ddg_url = "googlechromes://duckduckgo.com/?" | |
query_url = "q=" | |
# input | |
prompt = "> " | |
query = raw_input("Query: \n" + prompt) |
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
import webbrowser | |
import urllib | |
# omnifocus:///add?name=[prompt]¬e=[prompt] | |
omnifocus_url = "omnifocus:///add?" | |
task_name_url = "name=" | |
note_url = "note=" | |
# input | |
prompt = "> " |
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
import webbrowser | |
import urllib | |
dayone_url = "dayone://post?entry=" | |
feeling_question = "How do you feel today?" | |
achievement_question = "What are you trying to achieve today?" | |
thought_question = "Is there a negative thought or positive on your mind you want to get out?" | |
tag = "#diary" | |
# input |
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" | |
if not (exists process "iTunes") then return | |
end tell | |
tell application "iTunes" | |
tell playlist "Rating = 5" | |
set trackCount to count of tracks | |
set randomTrackNumber to random number from 1 to trackCount | |
set trackTitle to name of track randomTrackNumber | |
set trackArtist to artist of track randomTrackNumber |
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
(* | |
Add to Reading List | |
Script for Apple Mail to find http and https links in emails and add them to Safari's Reading List automatically. | |
Best practice: setup with "any recipient contains '+reading'". Actions "mark as read", "execute AppleScript", "delete message", "stop evaluating rules" | |
Created by Andreas Zeitler on 2012-10-07 | |
Mac OS X Screencasts. www.macosxscreencasts.com | |
*) |
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
set channelNumbers to 12 | |
set fileName to "/Users/you/Projects/SONGNAME" | |
set nr to 1 | |
set extension to ".WAV" | |
set dmfFileName to "'/Users/you/Projects/SONGNAME.DMF'" | |
repeat while nr ≤ channelNumbers | |
-- display dialog nr | |
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
-- Day Projects | |
-- | |
-- Created by Zettt on 2011-11-28 | |
-- Mac OS X Screencasts. | |
-- | |
-- This script creates "Day Projects" in OmniFocus. | |
-- | |
-- I use these "Day Projects" to put stuff, that I need to | |
-- do on a specific day, but aren't big enough to be their own project. | |
-- Things like "Call the doctor on Wednesday" or |
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
srand # seed random | |
require 'csv' | |
wordArray = Array.new | |
definitionArray = Array.new | |
if File.exists?("/Users/zettt/Archive/Vocab/idioms.csv") | |
CSV.open('/Users/zettt/Archive/Vocab/idioms.csv', 'r') do |row| | |
# p row[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
mkdir $HOME/Desktop/AppIcons/ | |
for CURRENTAPP in "$@"; do | |
APPDIR="$1" | |
ICON=`defaults read "$APPDIR/Contents/Info" CFBundleIconFile|sed -e 's/\.icns$//'` | |
ICONFILE="$APPDIR/Contents/Resources/$ICON.icns" | |
APPNAME=`basename "$APPDIR" .app` | |
OUTFILE="$HOME/Desktop/AppIcons/${APPNAME}.icns" | |
cp -f "$ICONFILE" "$OUTFILE" | |
shift |