Expand URL LB 6 action

Sharing and discussing custom actions for LaunchBar
prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Expand URL LB 6 action

Postby prenagha » Mon Jun 23, 2014 5:57 pm

Action that takes a string URL as input and expands it by resolving all redirects and returning the final result URL back to LaunchBar. Useful for resolving t.co and bit.ly ... type "short" URLs into real URLs.

https://github.com/prenagha/launchbar#expand-url

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Expand URL LB 6 action

Postby prenagha » Mon Jun 23, 2014 5:58 pm


Zettt
Rank 2
Rank 2
Posts: 45
Joined: Sat Mar 28, 2009 1:04 pm
Location: Stuttgart
Contact:

Re: Expand URL LB 6 action

Postby Zettt » Mon Jun 30, 2014 11:59 am

Sounds like a cool starter. I'd like the LB Action to return the individual items as list. When the user selects an item it should be copied to the clipboard by default. If ⌘ is down, the item should open in the default browser.

Zettt
Rank 2
Rank 2
Posts: 45
Joined: Sat Mar 28, 2009 1:04 pm
Location: Stuttgart
Contact:

Re: Expand URL LB 6 action

Postby Zettt » Fri Jul 04, 2014 3:22 pm

Here's my first attempt at a LaunchBar Action. This is code signed and all. There are some issues with this, though it runs fine on my system.

I'd like to clarify how this actually works. After some consideration I've decided to stick with the actual LaunchBar 6 item implementation. The list of individual expansions is a list of actual URL's (using |url|). This means that the results are actionable:

  • ↩ opens the URL in the default browser
  • ⌘C copy
  • ⇧⌘C copy and paste in front window
  • All other commands? Right click a list item

https://app.box.com/s/yx26g5xuwxztd8adci6p


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: No registered users and 4 guests