Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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.

share|improve this question
    
You might be able to use the answers to this per question along with FastScripts to tweet. apple.stackexchange.com/questions/57668/… –  bmike Jul 28 '12 at 22:09
    
Perhaps you can try a widget such as Twidget ? –  lhf Dec 6 '12 at 1:29
add comment

2 Answers 2

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 :)

share|improve this answer
    
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 Jul 28 '12 at 21:53
    
How about using a shortcut to run an AppleScript? –  Moshe Jul 28 '12 at 21:53
    
@Moshe in my best Homer Simpson voice: "Explain how!" –  cbmeeks Jul 28 '12 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 Jul 28 '12 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. –  JJ56 Jul 28 '12 at 23:18
show 1 more comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.