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
# remove_CLI_tools.sh | |
# written by cocoanetics:http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/ | |
# modified by yoneken | |
#!/bin/sh | |
RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom | |
RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist | |
RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom | |
RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist |
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
property dueTag : "due" | |
property startTag : "start" | |
property repeatTag : "repeat" | |
property todayTag : "today" | |
property pastDueTag : "overdue" | |
property upcomingTag : "upcoming" | |
property doneTag : "done" | |
property inProgressTag : "inprogress" | |
property errorTag : "error" | |
property removeTags : {upcomingTag, todayTag, pastDueTag, inProgressTag} |
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 "Safari" | |
tell front document | |
set theURL to URL | |
set theName to (do JavaScript "(getSelection())") | |
if length of theName is equal to 0 then set theName to name | |
end tell | |
end tell | |
tell application "TaskPaper" | |
tell front document | |
tell project named "Inbox" |
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 "Safari" | |
tell front document | |
set theURL to URL | |
set theName to (do JavaScript "(getSelection())") | |
if length of theName is equal to 0 then set theName to name | |
end tell | |
end tell | |
tell application "TaskPaper" | |
tell front document | |
tell project named "Inbox" |
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
(* | |
Tag Value Editor script | |
by Ryan Oldford | |
Uses handlers from MacScripter forum users (see below for full credits) | |
This script is used to make it easier to edit tag values in TaskPaper. | |
The script reads all tags for the current entry, lets the user choose | |
the tag they will edit, lets the user write the new tag value, then | |
updates the tag value. |
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 "Google Chrome" | |
set theTitle to title of active tab of front window | |
set theURL to URL of active tab of front window | |
end tell | |
tell application "OmniFocus" | |
set theDoc to default document | |
set theTask to theTitle | |
set theNote to theURL | |
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
(* | |
Parse Start and Due Dates script | |
By Ryan Oldford | |
Based on work by andyferra (https://gist.github.com/andyferra/64842) | |
change_case taken from http://www.macosxautomation.com/applescript/sbrt/sbrt-06.html | |
This script is used with TaskPaper to provide better start and due date support, as well as support for repeating tasks. | |
The script searches for @due and @start tags, converts their values to standard date code values, | |
then adds the appropriate "diff" tag whose value indicates how far away the due or start date is (negative = past, 0 = today). | |
Any tasks with a @repeat tag that are done are edited to remove the done tag and have their due tags updated. |
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
property dueTag : "due" | |
property startTag : "start" | |
property repeatTag : "repeat" | |
property todayTag : "today" | |
property pastDueTag : "overdue" | |
property upcomingTag : "upcoming" | |
property doneTag : "done" | |
property inProgressTag : "inprogress" | |
property errorTag : "error" | |
property removeTags : {upcomingTag, todayTag, pastDueTag, inProgressTag} |
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
# ~/.osx — http://mths.be/osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "MacBookPro" | |
scutil --set HostName "MacBookPro" | |
scutil --set LocalHostName "MacBookPro" |
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
# ~/.osx — http://mths.be/osx | |
# root check | |
if [[ $EUID -ne 0 ]]; then | |
echo "################################"; | |
echo "## YOU ARE NOT RUNNING AS ROOT #"; | |
echo "################################"; | |
echo "#"; | |
echo "# USAGE: sudo $0"; | |
exit; |