Retweet script for Twitterrific

Simple AppleScript to make it easy to retweet from Twitterrific.

It uses GUI scripting to access the text input box in Twitterrific, so you need to activate this by enabling access from assistive devices in the Universal Access Preferences.


tell application "Twitterrific"
	set thisTweet to selection
	set thisText to post of thisTweet
	set thisUser to screen name of thisTweet
end tell
tell application "System Events"
	tell process "Twitterrific"
		tell group 1 of splitter group 1 of window 1
			set value of text field 1 to "Retweet: @" & thisUser & " " & thisText & " "
		end tell
	end tell
end tell