Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on run {input, parameters}
- tell application "System Events"
- if (name of processes) does not contain "Tweetie" then
- tell application "Tweetie" to run
- end if
- end tell
- set the_app to name of (info for (path to frontmost application))
- if the_app is "Safari.app" then
- tell application "Safari"
- set input to input & " " & (get URL of the front document as Unicode text)
- end tell
- else if the_app is "Firefox.app" then
- tell application "Firefox"
- activate
- tell application "System Events"
- keystroke "l" using {command down}
- keystroke "c" using {command down}
- end tell
- set input to input & " " & (the clipboard)
- end tell
- end if
- open location "tweetie:" & input
- return input
- end run
Add Comment
Please, Sign In to add comment