AppleScript to tweet via Notification Center

The Click to Tweet button in Notification Center is just crying out for a way to activate it without taking your hands off your keyboard. Over at StackExchange, user Ewwis posted the following AppleScript. Save this and launch it with, say, LaunchBar or another launcher. It displays a dialog where you can post your tweet, then, when you click on OK, displays Notification Center and sends your tweet.

display dialog "Tweet?" default answer "" buttons {"OK"} default button 1
set mytweet to text returned of result

tell application "System Events"
    tell process "Notification Center"
        click menu bar item 1 of menu bar 1
        click button 1 of U ...





Add to digg
Add to Reddit
Add to Slashdot
Email this Article
Add to StumbleUpon



via MacOSXHints.com http://feeds.macosxhints.com/click.phdo?i=c38f3c5ca5cc1afe038d033882f22d26