Created
December 13, 2011 17:23
Revisions
-
danreedy revised this gist
Dec 13, 2011 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ set t to "" set t to do shell script "security 2>&1 find-generic-password -gl ScreenSaverPassword" set KeyKind to "generic password" set text item delimiters to "acct" -- Get Account name set tlst to every text item of t set acct to item 2 of tlst set text item delimiters to "\"" set tlst to every text item of acct set text item delimiters to "\"" -- Get Password set tlst to every text item of t set pw to item 2 of tlst tell application "Spotify" to play tell application "System Events" to keystroke return delay 1 tell application "System Events" to keystroke pw delay 1 tell application "System Events" to keystroke return -
danreedy created this gist
Dec 13, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ tell application "Spotify" to pause tell application id "com.apple.ScreenSaver.Engine" to launch