For whatever reason (perhaps it’s the slowness of Twitterific, or the lack of any other application to satisfy my Twitter-craving) I wanted to be able to Tweet from Quicksilver. A quick Google led me to an AppleScript to Tweet from Quicksilver, but alas…it was a year old and not functional.

So, two hours later - allow me to present an updated version of the script:

{% codeblock %}{% codeblock %}using terms from application "Quicksilver" on process text im_text repeat with im_delimiter_position from 1 to (length of im_text) if character im_delimiter_position of im_text = ":" then exit repeat end repeat set im_contact_name to characters 1 thru (im_delimiter_position - 1) of im_text as string set im_message to characters (im_delimiter_position + 2) thru (length of im_text) of im_text as string tell application "Adium"
		set user to first contact whose (status type is available and display name starts with im_contact_name)
		
		if not (exists (chats whose contacts contains user)) then
			tell account of user to (make new chat with contacts {user} with new chat window)
		end if
		
		send (first chat whose contacts contains user) message im_message
	end tell
	return nothing
end process text

end using terms from{% endcodeblock %}{% endcodeblock %}

The procedures for installation and usage are the same.

  • Paste the script into Script Editor and save it in {% codeblock %}~/Library/Application Support/Quicksilver/Actions{% endcodeblock %} as Send As IM.scpt.
  • <li>Cmd+Space, period, “Contact name: Message”, tab, S, enter.</li>
    

I now return you to your regular Twedule.