├── .gitignore ├── BBEdit ├── Create New File.applescript ├── Go To Line.applescript ├── Open in BBEdit.applescript └── Select Word.applescript ├── Chrome ├── New Chrome Window.applescript └── New Chrome Window.sh ├── FaceTime └── Start FaceTime Call.applescript ├── Finder ├── CopyRelativeFilePath.applescript ├── CreateFileInCurrentFolder.applescript ├── DiskStationMount.applescript ├── DiskStationMountSMB.applescript ├── DoesFileExist.applescript ├── FolderActionRemoveAttributes.applescript ├── Get Path To Script.applescript ├── Lock Screen.applescript ├── Mount CIFS Shares.applescript ├── New Finder Window.applescript ├── New Finder Window.sh ├── ToggleVisibleFileExtension.sh └── Update Finder Desktop.applescript ├── Hardware └── Get Battery Percentage.applescript ├── Mail ├── Add Selected Message to Notes.applescript ├── Add Selected Message to Things.applescript ├── Add Selected Messages Multiple to Things.applescript ├── Export Messages as EML.applescript ├── Export Messages as EML.license ├── Show Raw Mail Message in Mail.applescript ├── Show Raw Mail Message.applescript ├── Show Raw Mail Message.sh ├── VacuumMailDatabase.applescript └── makefile ├── Mission Control └── Switch Spaces.applescript ├── Numbers └── CellContents.applescript.txt ├── Python ├── applescript.py └── test.py ├── README.md ├── Reminders ├── ListReminders.applescript └── Purge Completed Reminders.applescript ├── Safari ├── ChangeTab.applescript ├── Clear Safari URLs.applescript ├── Find Safari Tabs.applescript ├── Get Pinned Tabs.applescript ├── Restore Safari URLs.applescript ├── SafariURL.applescript ├── Save Open Safari Tabs to Reminders.applescript ├── Save Safari Tabs to Notes.applescript ├── Save Safari URLs From All Windows.applescript ├── Save Safari URLs.applescript └── TinyURL.applescript ├── System ├── ConnectBluetooth.applescript ├── Login Items.applescript ├── OS Proper Name.applescript ├── Quicksort.applescript ├── SelectAudioDevice.applescript ├── Type A File.applescript └── menu_click.applescript ├── Terminal ├── New Terminal Window.applescript └── New Terminal Window.sh ├── Text └── clipboard.applescript ├── Things ├── CreateTodo.applescript ├── GetTodosFromList.applescript └── SetPropertiesOfTodo.applescript ├── Todoist └── CopyRemindersToTodoist.applescript ├── WEMO └── All Lights Off WEMO.applescript ├── X10 └── Turn Office Light On.applescript ├── iMessage └── SMS to IFTTT.applescript └── iTunes └── Return info on Audio CD.applescript /.gitignore: -------------------------------------------------------------------------------- 1 | *.scpt 2 | *.zip 3 | *.bbprojectd 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /BBEdit/Create New File.applescript: -------------------------------------------------------------------------------- 1 | try 2 | tell application "Finder" 3 | 4 | set opn to 0 5 | set fn to "new.txt" 6 | 7 | set answer to text returned of (display dialog "Filename to create:" default answer fn) 8 | 9 | if answer is "/" then 10 | set opn to 1 11 | else if character -1 of answer is "/" then 12 | set fn to text 1 thru -2 of answer 13 | set opn to 1 14 | else 15 | set fn to answer 16 | end if 17 | 18 | if character -1 of answer is "." then 19 | set fn to answer & "txt" 20 | end if 21 | 22 | try 23 | set p to target of window 1 24 | on error 25 | set p to desktop as alias 26 | end try 27 | set f to make new file at p with properties {name:fn} 28 | set selection to f 29 | if opn is 1 then 30 | open f using (path to application "BBEdit") 31 | end if 32 | end tell 33 | end try 34 | -------------------------------------------------------------------------------- /BBEdit/Go To Line.applescript: -------------------------------------------------------------------------------- 1 | set line_number to text returned of ¬ 2 | (display dialog ¬ 3 | "Line" with title ¬ 4 | "Go To Line" default answer ¬ 5 | "1" buttons {"Cancel", "Go To"} ¬ 6 | default button 2 ¬ 7 | with answer) 8 | 9 | tell application "BBEdit" to tell window 1 10 | --set the text of window 1 to line_number 11 | if (line_number is "0") then 12 | set line_number to count lines 13 | end if 14 | --select line (line_number as integer) 15 | --select insertion point after (character (1) of line line_number) 16 | select insertion point before line (line_number as integer) 17 | end tell 18 | -------------------------------------------------------------------------------- /BBEdit/Open in BBEdit.applescript: -------------------------------------------------------------------------------- 1 | -- Downloaded From: http://c-command.com/scripts/finder/open-in-bbedit 2 | -- Last Modified: 2010-11-27 3 | 4 | on run 5 | tell application "Finder" 6 | set _list to {} 7 | set _items to selection 8 | if _items is {} then 9 | set _folder to folder of the front window as string 10 | copy _folder to end of _list 11 | else 12 | repeat with _item in _items 13 | set _item to _item as alias 14 | copy _item to end of _list 15 | end repeat 16 | end if 17 | end tell 18 | bb(_list) 19 | end run 20 | 21 | on open (_list) 22 | bb(_list) 23 | end open 24 | 25 | 26 | on bb(_list) 27 | tell application "BBEdit" 28 | open _list 29 | activate 30 | end tell 31 | end bb 32 | -------------------------------------------------------------------------------- /BBEdit/Select Word.applescript: -------------------------------------------------------------------------------- 1 | tell application "BBEdit" 2 | tell window 1 3 | set sel_offset to characterOffset of selection 4 | set cur_line to startDisplayLine of selection 5 | try 6 | select (last word of display_line cur_line ¬ 7 | whose characterOffset ≤ sel_offset) 8 | on error 9 | select display_line cur_line 10 | end try 11 | end tell 12 | end tell 13 | -------------------------------------------------------------------------------- /Chrome/New Chrome Window.applescript: -------------------------------------------------------------------------------- 1 | 2 | tell application "Google Chrome" 3 | tell (make new window) 4 | end tell 5 | activate 6 | end tell 7 | -------------------------------------------------------------------------------- /Chrome/New Chrome Window.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # open a new Chrome window using default window parameters 4 | 5 | osascript <