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
-- base on | |
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Tweetbot") then | |
tell application "Tweetbot" to activate | |
end if | |
if not (exists application process "iTunes") then |
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
--Original form | |
-- TweetViaTwitter.applescript | |
-- Copy title and URL in the front most window of Safari to Twitter with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Wedge") then | |
tell application "Wedge" to activate | |
end if | |
if not (exists application process "iTunes") then | |
tell application "iTunes" to activate |
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
-- base on | |
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Wedge") then | |
tell application "Wedge" to activate | |
end if | |
if not (exists application process "iTunes") then |
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
-- base on | |
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Appetizer") then | |
tell application "Appetizer" to activate | |
end if | |
if not (exists application process "iTunes") then |
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
try | |
tell application "Finder" to set fdir to (target of front Finder window) as text | |
tell application "Terminal" | |
do script "cd " & (quoted form of POSIX path of fdir) | |
end tell | |
tell application "System Events" | |
set visible of process "Terminal" to true | |
set frontmost of process "Terminal" to true | |
end tell | |
on error errorMessage number errorNumber |
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" | |
repeat with X in application processes | |
if visible of X is true then | |
set visible of X to false | |
else | |
set visible of X to true | |
end if | |
end repeat | |
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
-- base on | |
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Tweetdeck") then | |
tell application "TweetDeck" to activate | |
end if | |
if not (exists application process "iTunes") then |
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
-- base on | |
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Twitterrific") then | |
tell application "Twitterrific" to activate | |
end if | |
if not (exists application process "iTunes") then |
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
-- base on | |
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
tell application "System Events" | |
if not (exists application process "Janetter") then | |
tell application "Janetter" to activate | |
end if | |
if not (exists application process "iTunes") then |
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
itnsps=`osascript -e "tell application \"System Events\"" -e "if (exists application process \"iTunes\") then" -e "return \"yes\"" -e "else" -e "return \"no\"" -e "end if" -e "end tell"` | |
lasttrack=`tail /tmp/itunestrack` | |
if [ "$itnsps" = "yes" ] | |
then | |
itnsplst=`osascript -e "tell application \"iTunes\"" -e "return (get player state as string)" -e "end tell"` | |
if [ "$itnsplst" = "playing" ] | |
then |
OlderNewer