sean808080's ohmbase

  • Home
  • all my flavors
  • my flickr pictures
  • @sean808080 on twitter
    • Edit
    • Delete
    • Tags
    • Autopost

    TweetIt from NetNewsWire now using Bit.ly

     

    Click here to download:
    Tweet it w BitLy.scpt (18 KB)

    As I was reading the news with Netnewswire today, I thought it'd be
    nice to tweet a news item that I wanted to share.


    Of course a quick search brought me to a coder named Tinu's excellent
    script to do just that.

    Unfortunately, I'm a big bit.ly user and his script didn't use bit.ly
    as the url shorten service so I modified his script to use bit.ly
    authentication and history.

    How nice to be able to send twitter messages from netnewswire and then
    check on their shortened URLs in my bit.ly dashboard.

    Here's the script in case you are a netnewswire who is also a user of
    bit.ly as I am. :-)


    How do you use it?

    +++
    --usage enter your bit.ly login and api_key in the second and third
    lines of the script
    --save to ~/Library/Application Support/NetNewsWire/Scripts
    --Now you can access the script from the scripts menu on NetNewsWire.

    +++


    Hat tip to tinu at http://bit.ly/a4wfBB for giving me the base to build upon.

    Curious about netnewswire, an awesome and FREE mac newsreader? Learn
    more here: http://bit.ly/9o0ZbW

    • 4 March 2010
    • Views
    • 16 Comments
    • Permalink
    • Favorited 1 Times
    • Loy Lee
    • Tweet
    • Tweet

    Comments 16 Comments

    Mar 04, 2010
    patrix said...
    Awesome. This was exactly what I needed. Much thanks.
    Mar 04, 2010
    sean 808080 said...
    glad you can use it too. I just got it into my noggin that it needed to work with bit.ly. Like using it this way. Cheers.
    Mar 04, 2010
    Tinu Cleatus said...
    Great stuff Sean!! I'm sure many users will prefer this. Thanks.
    Mar 05, 2010
    sean 808080 said...
    @tinu thanks! I'm glad to help improve on your awesome script. cheers! Any chance you'll be using bit.ly now too?
    Mar 05, 2010
    Tinu Cleatus said...
    I'd feel really bad if Tr.im goes down but I have actually now moved to droplr for everything from files to urls :)
    Mar 08, 2010
    Loy Lee liked this post.
    Mar 12, 2010
    patrix said...
    Strangely after I deleted and reinstalled today (didn't work yesterday), it started working. Probably just a Twitter fart.

    Tinu, if you are using Chrome, try the Shareaholic extension. Great all-in-one extension to share URLs and works with your URL shortener of choice.

    Apr 24, 2010
    Miky said...
    wow many thanks script Tweet it today no work...your script is perfect
    insert login and api still work ;)
    you can avoid any time to confirm this? http://img215.imageshack.us/img215/3224/screenshot20100424a1623.png

    thx

    Jul 29, 2010
    Emmanuel said...
    the script goes wrong
    Jul 29, 2010
    patrix said...
    Yup. The script has been giving an error message since today. Did Twitter or Bit.ly change anything? Let me know if you modify the script. Much thanks.
    Jul 29, 2010
    Emmanuel said...
    I have not changed anything
    Sep 03, 2010
    Emmanuel said...
    The script is now fully inoperative
    Sep 03, 2010
    sean 808080 said...
    I no longer use NetNewsWire. I read my newsfeeds entirely on an iPad nowadays.

    Feel free to have a go at it if you like. It's quite simple.

    Cheers
    Jan 29, 2011
    loyaliser loyaliser said...
    Just change the set bitly curl line to the following and it will start working again... voila!

    set bitly to "curl --stderr /dev/null \"http://api.bit.ly/v3/shorten?format=txt&longUrl=" & feed_url & "&login=" & login & "&apiKey=" & api_key & "\""

    Don't forget to set your bitly login and apiKey at top of the script.

    Enjoy!

    Mar 07, 2011
    Mark Watson said...
    Do I need to set something in twitter? Script claims to post successfully but actually:

    do shell script "curl --user 'user:pass' --data-binary 'status=Is this true? http://bit.ly/xxxxxE' http://twitter.com/statuses/update.json"
    --> "{\"errors\":[{\"code\":53,\"message\":\"Basic authentication is not supported\"}]}"

    Mar 08, 2011
    sean 808080 said...
    Sorry. I no longer use netnewswire. Additionally Twitter has changed
    their authentication protocol so this script would need to be
    re-written to use xauth.

    Leave a Comment

  • sean 808080's Posterous

    coder of iGongyo: the chant app for iPhone
    now available in iTunes! http://bit.ly/iGongyoiTunes
    <<<>>>
    author of PM Simplicity: a primer on project management
    available for download at http://pmsimplicity.com
    <<<>>>
    Online Index

    My Google Profile

    pick a mandolin

    ski some

    paddle an old town canoe

    project manager in tech

    interpreter in asl

  • About sean 808080

    coder of iGongyo: the chant app for iPhone
    now available in iTunes! http://bit.ly/iGongyoiTunes
    <<<>>>
    author of PM Simplicity: a primer on project management
    available for download at http://pmsimplicity.com
    <<<>>>
    Online Index

    My Google Profile

    pick a mandolin

    ski some

    paddle an old town canoe

    project manager in tech

    interpreter in asl

  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
  • Follow Me

      FacebookFriendfeedmetaweblogmetaweblog

Theme created for Posterous by Obox