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
-- Globals | |
global books_db | |
global annotations_db | |
-- Customize for your machine | |
set books_db to "~/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary-1-091020131601.sqlite" | |
set annotations_db to "~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/AEAnnotation_v10312011_1727_local.sqlite" | |
------------------------------------------------------- | |
set as_tid to AppleScript's text item delimiters |
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
#!/usr/bin/env ruby | |
# Get passed in arguments | |
projectName = ARGV[0] | |
drupalVersion = ARGV[1] | |
vmRepo = 'https://github.com/geerlingguy/drupal-vm.git' | |
baseDirectory = '/#{Dir.home}/Sites/' | |
vmDirectory = baseDirectory + projectName + '_vm/' |
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 "Messages" | |
log out service "<work-account1>" | |
log out service "<work-account2>" | |
end tell | |
tell application "Mail" | |
set enabled of account "<work-account>" to false | |
end tell | |
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 "Messages" | |
log in service "<work-account1>" | |
log in service "<work-account2>" | |
end tell | |
tell application "Mail" | |
set enabled of account "<work-account>" to true | |
end tell | |
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
#!/usr/bin/osascript | |
on run | |
tell application "Reminders" | |
set theList to "Automation" | |
repeat with i from 1 to (count of every reminder of list theList) | |
set theReminder to reminder i of list theList | |
set reminderName to the name of theReminder | |
set reminderId to the id of theReminder | |
if theReminder is not completed then | |
tell application "Finder" to get folder of (path to me) as Unicode text |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>Label</key> | |
<string>com.nateofnine.FlaggedMailToReminders</string> | |
<key>Program</key> | |
<string>/usr/bin/osascript</string> |
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
#!/usr/bin/osascript | |
on run | |
-- This script is designed to work with Gmail and OSX Mavericks | |
-- Make sure Mail.app is actually running | |
if not (application "Mail" is running) then | |
return | |
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
drafts://x-callback-url/create?text=%23Automation%0A | |
Refresh%20blog&action=&x-success=launchpro:&key=xxx |
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 "Terminal" | |
activate | |
do script "cd YOUR_JEKYLL_DIR && jekyll build && rsync -avzr --delete YOUR_JEKYLL_DIR/_site/ -e ssh YOUR_USER@YOUR_SERVER:/PATH_TO_WEB_ROOT/ && exit" | |
end tell |