Revision: 29798
Updated Code
at August 4, 2010 23:38 by Macgeeky
Updated Code
tell application "Firefox" activate tell application "System Events" to keystroke "l" using {command down} tell application "System Events" to keystroke "c" using {command down} set linken to the clipboard if the (count of windows) is not 0 then set tittel to name of front window set tweet to tittel & ": " & linken set the clipboard to tweet end tell tell application "Echofon" activate tell application "System Events" key code 120 using control down delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.1 key code 125 key code 125 delay 0.3 key code 36 end tell end tell tell application "System Events" to keystroke "n" using {command down} tell application "System Events" to keystroke "v" using {command down} tell application "System Events" to keystroke "s" using {command down}
Revision: 29797
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 4, 2010 23:28 by Macgeeky
Initial Code
tell application "Firefox" activate tell application "System Events" to keystroke "l" using {command down} tell application "System Events" to keystroke "c" using {command down} set linken to the clipboard if the (count of windows) is not 0 then set tittel to name of front window set tweet to tittel & ": " & linken set the clipboard to tweet end tell -- open window of application "Echofon" tell application "Echofon" activate tell application "System Events" key code 120 using control down delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.05 key code 124 delay 0.1 key code 125 key code 125 delay 0.3 key code 36 end tell end tell tell application "System Events" to keystroke "n" using {command down} tell application "System Events" to keystroke "v" using {command down} tell application "System Events" to keystroke "s" using {command down}
Initial URL
http://www.macgeeky.no/send-tittel-og-url-fra-nettleser-til-tweetdec
Initial Description
1) Open Automator (Mac) -> Choose: Service -> Applescript -> paste this script -> save. \r\n\r\n2) Open System preferences -> Keyboard -> Services -> Find the service you just saved in Automator, and dobbel-click at the right side of the name of the service -> Enter an unused keyboard shortcut. \r\n\r\n3) Congrats! Whenever you want to tweet both the title and URL of the webpage (in Firefox) you\'re looking at with Echofon - use the keyboard shortcut you just entered, and the title and URL will be transfered to Echofon. The URL will even be shortened automatickly.
Initial Title
Firefox - send tittel og url til Echofon
Initial Tags
url, twitter
Initial Language
AppleScript