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
(* | |
Modified by Jonathan Poritsky in the smallest way: | |
March 6, 2015: Switched from Growl to OS X Notifications | |
Created and since updated by Chris Suave. Full Details at: | |
http://cmsauve.com/projects/templates/ | |
For whatever reason the lasest version isn't working as well as this two year old version (save for the growl to notifications change I made). |
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 "Finder" | |
set theFile to selection as alias | |
tell application "System Events" to tell disk item (theFile as text) to set {theName, theExtension} to {name, name extension} | |
if theExtension is not "" then set theName to text 1 thru -((count theExtension) + 2) of theName -- the name part | |
set comment of theFile to theName | |
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
set l to {} | |
set r to "Archive" --Apple Mail Rule from which to pull addresses | |
set f to "Archive" --Name of folder to move messages from sender to | |
tell application "Mail" | |
set m to properties of rule conditions of rule r | |
repeat with v in m | |
set p to the expression of v | |
set l to l & ".*" & p & "|" as list | |
end repeat |
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 "Mail" | |
tell menu bar 1 | |
tell menu "Mail" | |
click menu item "Preferences…" | |
end tell | |
end tell | |
end tell | |
end tell | |
tell application "System Events" |
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 "Mail" | |
set m to (selection) | |
set s to (extract address from sender of item 1 of m) | |
set r to rule "Archive" | |
tell r to make new rule condition at end of rule conditions with properties {rule type:from header, qualifier:does contain value, expression:s} | |
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
{ | |
"extensions": | |
[ | |
"md", | |
"mdown", | |
"mmd" | |
], | |
"trim_trailing_white_space_on_save": false, | |
"font_face": "Pitch Medium", | |
"font_size": 15, |
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>font-name-aliases</key> | |
<dict> | |
<!-- N.B. 'system-font' is also available as an alias; it will be mapped to the actual system font at runtime. --> | |
<key>light</key> | |
<string>.SFNSText-Light</string> | |
<key>light-italic</key> |
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
html { | |
background-color: #f2f2f2; | |
color: #333; | |
} | |
body { | |
margin: 10%; | |
padding: 0; | |
border: 0; | |
font-size: 16px; | |
line-height: 1.6; |
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
{ "keys": ["super+ctrl+1"], "command": "insert_snippet", "args": {"contents": "# $0"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true }, | |
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true }, | |
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true }, | |
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true } | |
] | |
}, |
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 this to ~/Library/Application Support/Sublime Text 2/Packages/MarkdownEditing/Default (OSX).sublime-keymap | |
Will surround selected text with <del> tags when you type a tilde (~). Only works when text is selected. | |
Get Brett Terpstra's MarkdownEditing here: http://ttscoff.github.com/MarkdownEditing/ | |
{ "keys": ["~"], "command": "insert_snippet", "args": {"contents": "<del>${0:$SELECTION}</del>"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }, | |
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true } |