Jump to content


Photo

Send URL


  • Please log in to reply
77 replies to this topic

#1 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 05 February 2013 - 11:36 PM

I have finally converted my Send URL extension into a workflow.

 

Send-URL-Screenshot.png

 

The workflow selects the URL from the frontmost App or a URL from the Clipboard. Supported Apps are:

  • Safari
  • Webkit
  • Google Chrome (Beta/Dev/Canary)
  • Camino
  • Opera (and Opera Next)
  • Omniweb

 

You can then send the URL to a variety of Apps

 

  • Safari
  • Webkit
  • Google Chrome (Beta/Dev/Canary)
  • Camino
  • Opera (and Opera Next)
  • Omniweb
  • Firefox (and Aurora)
  • iCab
  • Sleipnir
  • Paparazzi!
  • Mail
  • Sparrow
  • Postbox
  • Gmail
  • VLC
  • Adium (as a chat to an online contact)
  • Droplr
  • downforeveryoneorjustme.com
  • and the clipboard

 

The workflow only list the Apps installed on you mac.

You can download Send URL here:

https://github.com/a....alfredworkflow

 

EDIT:

 

I have updated Send URL.  

The update fixes a bug where the workflow would not work if the URL contains a '&' and downforeveryoneorjustme.com is not working correctly.

I have also included options to copy the URL as a HTML or Markdown link (including the page title)


  • phyllisstein, jarhead, johsny and 8 others like this

#2 jarhead

jarhead

    Member

  • Member
  • PipPip
  • 45 posts
  • LocationNashville, TN

Posted 05 February 2013 - 11:57 PM

How hard would it be to add the option of grabbing the title of the current page and then returning a Markdown formatted link?



#3 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 06 February 2013 - 12:14 AM

How hard would it be to add the option of grabbing the title of the current page and then returning a Markdown formatted link?

 

That is definitely possible to add, but maybe it would work better in another workflow, one returning the link in different formats? I will look at it tomorrow...



#4 Carlos-Sz

Carlos-Sz

    Advanced Member

  • Member
  • PipPipPip
  • 737 posts

Posted 06 February 2013 - 04:47 AM

Nice workflow. Sometimes select the e.g. Safari URL then hit Command+C is not as fast doing all the work only with the keyboard.



#5 spacecadet9

spacecadet9

    Member

  • Member
  • PipPip
  • 51 posts

Posted 06 February 2013 - 12:27 PM

Oh, tasty!



#6 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 06 February 2013 - 03:09 PM

How hard would it be to add the option of grabbing the title of the current page and then returning a Markdown formatted link?

 

 

I have updated Send URL and it now includes options to copy to clipboard as a HTML or Markdown link.


  • jarhead likes this

#7 jarhead

jarhead

    Member

  • Member
  • PipPip
  • 45 posts
  • LocationNashville, TN

Posted 06 February 2013 - 04:11 PM

Just to ensure I'm using it correctly, when I have a page open in Chrome, I open Alfred & type URL which should then look as your screenshot does?

 

When I open Alfred and type URL, the URL is not listed as in your screenshot. Also, the workflow automatically launches Safari which is not running. The URL is not copied no matter what option is chosen. Ideas?

 

Also, If I choose send to Safari, it jumps to the workflow folder in Finder. Send to Chrome opens an index of the workflow folder.

 

2013-02-06_10-21-08.png



#8 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 06 February 2013 - 06:46 PM

Just to ensure I'm using it correctly, when I have a page open in Chrome, I open Alfred & type URL which should then look as your screenshot does?

 

When I open Alfred and type URL, the URL is not listed as in your screenshot. Also, the workflow automatically launches Safari which is not running. The URL is not copied no matter what option is chosen. Ideas?

 

Also, If I choose send to Safari, it jumps to the workflow folder in Finder. Send to Chrome opens an index of the workflow folder.

 

2013-02-06_10-21-08.png

 

This sound very weird... 

 

Make sure Chrome (or another supported browser) is the from most application. Then open Alfred and type "url" you should then get a list of options (like in the screenshot).

 

If this does not work, try to remove the workflow and download and install it again.



#9 jarhead

jarhead

    Member

  • Member
  • PipPip
  • 45 posts
  • LocationNashville, TN

Posted 06 February 2013 - 07:12 PM

This sound very weird... 

 

Make sure Chrome (or another supported browser) is the from most application. Then open Alfred and type "url" you should then get a list of options (like in the screenshot).

 

If this does not work, try to remove the workflow and download and install it again.

 

Deleting and reinstalling seems to have fixed the issue. Thanks.



#10 DavidK

DavidK

    Member

  • Member
  • PipPip
  • 34 posts

Posted 13 February 2013 - 01:24 AM

Glad you ended up converting it to a workflow, since this was one of my most used v1.0 extensions!

 

My only issue is that this version is quite a bit slower than the Alfred 1.0 Extension, mainly since it needs to "Find supported applications" before you can hit enter. For instance, if I'm in Chrome and I start Alfred and type "url saf" to send it to Safari, I need to wait a second or two in order for the script to filter the list. 

 

Any chance you could add another keyword input as an option so we don't have to wait for the "Script Filter"?

 

Dave



#11 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 13 February 2013 - 11:31 AM

Glad you ended up converting it to a workflow, since this was one of my most used v1.0 extensions!

 

My only issue is that this version is quite a bit slower than the Alfred 1.0 Extension, mainly since it needs to "Find supported applications" before you can hit enter. For instance, if I'm in Chrome and I start Alfred and type "url saf" to send it to Safari, I need to wait a second or two in order for the script to filter the list. 

 

Any chance you could add another keyword input as an option so we don't have to wait for the "Script Filter"?

 

Dave

 

 

Hi Dave,

 

I'm still working on making this workflow faster... The slowdown is due to the applescript fetching the URL (though I wrote 'Finding Supported Applications...').

I like being able to see the URL the workflow will act on, but at the same time it's slowing the workflow down... I might end up not displaying the URL if I can't find a way to fetch it faster

 

That said I have just updated the workflow and it should be a bit faster than before, but i'm still looking into what I can do to make it load instantly.

 

You can grab it here:

https://github.com/a....alfredworkflow

 

If you want to make a hotkey to send the URL to a specific browser you just need to pass the name of the browser on to the 'Run Script' module as showed in the pictures below below. (This only work in the newest version of the workflow)

 

http://d.pr/i/EHTU

http://d.pr/i/e2Jt

 

 

Cheers



#12 phyllisstein

phyllisstein

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • LocationNew York, NY

Posted 14 February 2013 - 03:01 PM

Neat-o! Thanks so much, this is great work. For some reason, though, Droplr isn't showing up for me. I'm not sure how to debug it, lost as I am when it comes to shell scripting; is it possible that the app-store version has a different bundle ID than the version on their website?


alp, Alfred.framework, and my assorted workflows are now abandonware. You can find them at https://github.com/p...stein/Workflows.

 


#13 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 14 February 2013 - 03:55 PM

Neat-o! Thanks so much, this is great work. For some reason, though, Droplr isn't showing up for me. I'm not sure how to debug it, lost as I am when it comes to shell scripting; is it possible that the app-store version has a different bundle ID than the version on their website?

 

Send URL are not looking after the bundle ID's but rather depends on Alfreds file cache as this is much faster. Alfreds application cache is however not complete (and is not intended to be) but dynamically generated when Alfred needs it.

Therefore try search for Droplr in Alfred and then try Send URL again, this should solve the issue and Droplr should keep showing up until you clear the application cache.

 

I'm working on a better solution, but at the same time I really don't wont to make the workflow any slower...



#14 derfla

derfla

    Member

  • Member
  • PipPip
  • 24 posts
  • LocationDresden, Germany

Posted 14 February 2013 - 04:34 PM

Thank you for sharing this workflow, it is my favorite!

But can you use unique uids for the items? So Alfred would put the most recently used item at the top of the list.



#15 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 14 February 2013 - 05:06 PM

Thank you for sharing this workflow, it is my favorite!

But can you use unique uids for the items? So Alfred would put the most recently used item at the top of the list.

 

I have chosen to make the list static in order to keep the URL (copy URL) on top in order to confirm/show the URL the workflow will use.



#16 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 14 February 2013 - 10:04 PM

I have updated the workflow ( again  :)  ) now it has it's own application cache. This way all apps should be found and it's also a little faster.

The first time the workflow loads it takes a few second to create the application cache, but after that it should be a bit faster!

 

You can grab it here : https://github.com/a....alfredworkflow (or any if the previous links)

 

Cheers


  • phyllisstein likes this

#17 Carlos-Sz

Carlos-Sz

    Advanced Member

  • Member
  • PipPipPip
  • 737 posts

Posted 16 February 2013 - 05:56 PM

@Jonas

 

I don’t know if it can be useful for you but here is a code to get Firefox URL:

 

 

 
Source:
 


#18 Jonas Eriksen

Jonas Eriksen

    Member

  • Member
  • PipPip
  • 115 posts
  • LocationDenmark

Posted 16 February 2013 - 10:48 PM

@Jonas

 

I don’t know if it can be useful for you but here is a code to get Firefox URL:

 

 

 
Source:
 

 

Great find. I have seen something similar before. The issue with this method is that that there is a delay between navigating to a URL in Firefox and to the URL gets written to sessionstore.js. Therefore this is not working as expected all the time.

 

I would really like to add firefox to the workflow but I have not seen any reliable method for fetching the URL.



#19 phyllisstein

phyllisstein

    Advanced Member

  • Member
  • PipPipPip
  • 368 posts
  • LocationNew York, NY

Posted 17 February 2013 - 03:05 AM

I have updated the workflow ( again  :)  ) now it has it's own application cache. This way all apps should be found and it's also a little faster.

The first time the workflow loads it takes a few second to create the application cache, but after that it should be a bit faster!

 

You can grab it here : https://github.com/a....alfredworkflow (or any if the previous links)

 

Cheers

That's great! Thanks so much; it works beautifully.


alp, Alfred.framework, and my assorted workflows are now abandonware. You can find them at https://github.com/p...stein/Workflows.

 


#20 swilcox

swilcox

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 18 February 2013 - 05:19 AM

Why is Mail not showing in the list of apps that I can send the URL to? I've searched for Mail (to refresh Alfred's cache), etc.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users