4

I use CMD space a million times a day to find files, launch apps, etc.

Wouldn't it be cool if I could press a keyboard combination and get a box to send a tweet? I know I can do it through notification center but I'm looking for a method that doesn't require me to leave the keyboard.

2

2 Answers 2

3

The official Twitter app lets you define a shortcut in its settings (Global new tweet): enter image description here

As far as native Twitter integration goes, I really don't know :)

6
  • That's definitely a step in the right direction. But unfortunately, I have to have the Twitter app running. But that's not a huge deal. Unless someone can come up with a way to do exactly that without the app running, then I will give you the answer shortly.
    – cbmeeks
    Commented Jul 28, 2012 at 21:53
  • How about using a shortcut to run an AppleScript?
    – Moshe
    Commented Jul 28, 2012 at 21:53
  • @Moshe in my best Homer Simpson voice: "Explain how!"
    – cbmeeks
    Commented Jul 28, 2012 at 22:40
  • Although I am not 100% sure I believe Alfred may be able to tackle this somehow, would probably require the power pack though.
    – Gmenfan83
    Commented Jul 28, 2012 at 23:15
  • The PowerPack can enable the use of shortcuts to run applescripts, but the trouble is having this script in the first place.
    – JJJollyjim
    Commented Jul 28, 2012 at 23:18
1

You can send tweets using the Twitter libraries for Ruby or Python, but it requires signing up at dev.twitter.com.

#!/usr/bin/env ruby -KU -rubygems

require 'twitter'

Twitter.configure do |config|
  config.consumer_key = ""
  config.consumer_secret = ""
  config.oauth_token = ""
  config.oauth_token_secret = ""
end

tweet = `osascript -e 'try
tell application (path to frontmost application as text)
display dialog "" default answer ""
text returned of result
end
end'`.chomp

exit if tweet.empty?
Twitter.update(tweet)

AlfredTweet is a Twitter client written as an Alfred extension.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .