Skip to content

Instantly share code, notes, and snippets.

View ashkrosh's full-sized avatar

Ashkan Roshanayi ashkrosh

View GitHub Profile
@ashkrosh
ashkrosh / TextExpander to Text Shortcuts.applescript
Created December 15, 2015 15:39 — forked from Zettt/TextExpander to Text Shortcuts.applescript
TextExpander Snippet to iOS/OS X Text Shortcuts. Read more: http://tmblr.co/ZFavEy-uZJ-M
set clickDelay to 0.3
set abbreviationList to {}
set snippetsList to {}
set disallowedGroups to {"AutoCorrect", "AutoCorrect Deutsch Snippets", "AlteNeue Rechtschreibung", "Deutsche Akronyme"}
set disallowedSnippetContents to {"%e", "%d", "%a", "%A", "%m", "%1m", "%b", "%B", "%y", "%Y", "%H", "%I", "%1H", "%1I", "%M", "%1M", "%S", "%1S", "%p", "%@+", "%@-", "%key:", "%clipboard", "%|", "%<", "%^", "%>", "%v", "%-", "%+", "%fill:", "%fillpart:", "%filltext:", "%fillpopup:", "%fillarea:"}
-- open the Text tab of Keyboard preferences
tell application "System Preferences"
activate
delay 5
@ashkrosh
ashkrosh / gist:c6b92f4a0b8815546796c851ed3f99bb
Last active August 3, 2016 08:35 — forked from mtheoryx/gist:3286362
Set Microsoft Lync status with applescript
tell application "Microsoft Lync"
activate
end tell
tell application "System Events"
tell process "Microsoft Lync"
tell menu bar 1
tell menu bar item "Status"
tell menu "Status"
click menu item "Be Right Back"