aiyo Posted February 18, 2013 Author Share Posted February 18, 2013 Thanks it worked after actioning a url. I should probably have read your post just above mine, sorry... I know it's not the best solution, but right now I can't find a way to make Alfred do the application cache in the background. So this is the only way I can update it without letting the user wait... I might add a "reload cache" option at some point... Link to comment
aiyo Posted February 18, 2013 Author Share Posted February 18, 2013 Thanks it worked after actioning a url. I should probably have read your post just above mine, sorry... If you don't mind I'm curious of what apps you add to the workflow. Maybe I should add it to the default list Link to comment
anas Posted February 19, 2013 Share Posted February 19, 2013 If you don't mind I'm curious of what apps you add to the workflow. Maybe I should add it to the default list I use Papers2 to keep track of research papers I have read or want to read. When I find something on google scholar I like to just open the url in Papers2 to import the paper. Don't know if it is useful in general ... This is the custom command I use: open -a /Applications/Papers2.app "$THEURL" Link to comment
swilcox Posted February 19, 2013 Share Posted February 19, 2013 I use Papers2 to keep track of research papers I have read or want to read. When I find something on google scholar I like to just open the url in Papers2 to import the paper. Don't know if it is useful in general ... This is the custom command I use: open -a /Applications/Papers2.app "$THEURL" I use Papers2 as well. I'd like to hear more about what you're doing here, I don't quite understand. It would be great if the Send URL workflow could be used to send a URL to Papers2. Link to comment
aiyo Posted February 19, 2013 Author Share Posted February 19, 2013 I use Papers2 to keep track of research papers I have read or want to read. When I find something on google scholar I like to just open the url in Papers2 to import the paper. Don't know if it is useful in general ... This is the custom command I use: open -a /Applications/Papers2.app "$THEURL" I use Papers2 as well. I'd like to hear more about what you're doing here, I don't quite understand. It would be great if the Send URL workflow could be used to send a URL to Papers2. I have added Papers2 to the default list. The applications only show up in the workflow if they are available on the system. The latest version is available here: https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow Link to comment
anas Posted February 19, 2013 Share Posted February 19, 2013 I have added Papers2 to the default list. The applications only show up in the workflow if they are available on the system. The latest version is available here: https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow Thanks, works great! Seems I didn't need my custom command and was just overcomplicating things Link to comment
swilcox Posted February 19, 2013 Share Posted February 19, 2013 I have added Papers2 to the default list. The applications only show up in the workflow if they are available on the system. The latest version is available here: https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow Tested with Papers2 (as before, I had to Copy URL ... to get the app cache to refresh). Perfect! Link to comment
GamerChase Posted February 20, 2013 Share Posted February 20, 2013 Any chance of adding the option to send the URL to Tweetbot, or into Facebook? Link to comment
aiyo Posted February 20, 2013 Author Share Posted February 20, 2013 Any chance of adding the option to send the URL to Tweetbot, or into Facebook? If you want to help me a bit (I don't have Tweetbot) it might be possible to add Tweetbot. First run this command and tell whats happens (Either Tweetbot opens the link or the link is opened in the default browser): open -a /Applications/Tweetbot.app http://www.alfredapp.com Then run this command and post back the result (this gives the Bundle ID og Tweetbot: mdls /Applications/Tweetbot.app/ | grep "kMDItemCFBundleIdentifier" Cheers UPDATE: Instead of the first command try this (It might tweet the link 'www.alfredapp.com'): open "tweetbot:///post?text=http%3A%2F%2Fwww.alfredapp.com" Link to comment
anas Posted February 21, 2013 Share Posted February 21, 2013 If you want to help me a bit (I don't have Tweetbot) it might be possible to add Tweetbot. First run this command and tell whats happens (Either Tweetbot opens the link or the link is opened in the default browser): open -a /Applications/Tweetbot.app http://www.alfredapp.com Then run this command and post back the result (this gives the Bundle ID og Tweetbot: mdls /Applications/Tweetbot.app/ | grep "kMDItemCFBundleIdentifier" Cheers UPDATE: Instead of the first command try this (It might tweet the link 'www.alfredapp.com'): open "tweetbot:///post?text=http%3A%2F%2Fwww.alfredapp.com" This seems to work, it starts a tweet with the link embedded. The Bundle ID is com.tapbots.TweetbotMac Link to comment
anas Posted February 21, 2013 Share Posted February 21, 2013 I didn't mean to quote the whole post, the last suggestion works: open "tweetbot:///post?text=http%3A%2F%2Fwww.alfredapp.com" Link to comment
aiyo Posted February 21, 2013 Author Share Posted February 21, 2013 This seems to work, it starts a tweet with the link embedded. The Bundle ID is com.tapbots.TweetbotMac I didn't mean to quote the whole post, the last suggestion works: open "tweetbot:///post?text=http%3A%2F%2Fwww.alfredapp.com" I have added Tweetbot to the workflow, test it out and see if it works as you expected (remember Tweetbot will only show up after you have used Send URL to copy a link or open a link in another app) https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow Link to comment
anas Posted February 21, 2013 Share Posted February 21, 2013 I have added Tweetbot to the workflow, test it out and see if it works as you expected (remember Tweetbot will only show up after you have used Send URL to copy a link or open a link in another app) https://github.com/aiyodk/Alfred-Extensions/raw/master/AlfredApp_2.x/Send-URL/Send-URL.alfredworkflow It works, but the placement of the new tweet pop-up is strange (created above the window). I haven't found a way yet to fix that in bash, if I do come up with something I will let you know. Link to comment
aiyo Posted February 21, 2013 Author Share Posted February 21, 2013 It works, but the placement of the new tweet pop-up is strange (created above the window). I haven't found a way yet to fix that in bash, if I do come up with something I will let you know. The custom url just ask Tweetbot to create a new tweet with the given url. Tweetbot is responsible to everything else. Link to comment
anas Posted February 21, 2013 Share Posted February 21, 2013 The custom url just ask Tweetbot to create a new tweet with the given url. Tweetbot is responsible to everything else. True, your workflow is definitely not at fault. I am just trying to figure out why this is the default behaviour and if there is something that can be done on the bash end to fix it Link to comment
aiyo Posted February 21, 2013 Author Share Posted February 21, 2013 True, your workflow is definitely not at fault. I am just trying to figure out why this is the default behaviour and if there is something that can be done on the bash end to fix it My point was that it is internal methods in Tweetbot that are responsible for displaying the pop-up and therefore any bugs related should be send to Tapbots.com There is nothing you can do in bash. The custom url that is used has nothing to do with bash I just happen to use the 'open' command. Link to comment
anas Posted February 22, 2013 Share Posted February 22, 2013 My point was that it is internal methods in Tweetbot that are responsible for displaying the pop-up and therefore any bugs related should be send to Tapbots.com There is nothing you can do in bash. The custom url that is used has nothing to do with bash I just happen to use the 'open' command. You are of course right! I thought since when you click on the new tweet icon or press command+n the location of the popup is different there might be something that can be done, but alas all was in vain. I will have to contact tapbots Link to comment
lmartins Posted March 21, 2013 Share Posted March 21, 2013 Would it be possible to have the option to send the url to Pocket ? (http://getpocket.com/) Link to comment
aiyo Posted March 24, 2013 Author Share Posted March 24, 2013 Would it be possible to have the option to send the url to Pocket ? (http://getpocket.com/) Hi, Pocket.app (from the App Store) don't seem to be able to open a link through the "open" command. And don't support applescript. To post a link through getpockets.com's API requires a user token. I have not found a easy and satisfying way to store passwords and tokens safely for use in Alfred workflows. Therefore I have no plan for adding features to my workflow requiring password or tokens (at least not before I find a solution to this problem). Cheers Link to comment
altryne Posted March 29, 2013 Share Posted March 29, 2013 Would it be possible to have the option to send the url to Pocket ? (http://getpocket.com/) You can try this one I just posted http://www.alfredforum.com/topic/1618-pocket-workflow-with-oauth-login/ Link to comment
jajaranza Posted April 2, 2013 Share Posted April 2, 2013 I don't know why, but it doesn't work properly: on my iMac Alfred shows only Safari and Tweetbot as application to send the url, although I have Firefox, Chrome and obviously Mail installed. On the other hand, on my "crappy" MacBook the extension works without problems? Any ideas? Link to comment
Sridhar Katakam Posted April 2, 2013 Share Posted April 2, 2013 Thanks for this. Waiting for support for Firefox. i.e, detect active tab URL in Firefox and send it to other browsers. Link to comment
aiyo Posted April 2, 2013 Author Share Posted April 2, 2013 Thanks for this. Waiting for support for Firefox. i.e, detect active tab URL in Firefox and send it to other browsers. Support for fetching URLs from Firefox is not likely to come anytime soon... Firefox have no support for Applescript and the few hacks I have seen, don't work well (sometimes shows a wrong URL). Cheers, Jonas Link to comment
Sridhar Katakam Posted April 2, 2013 Share Posted April 2, 2013 Support for fetching URLs from Firefox is not likely to come anytime soon... Firefox have no support for Applescript and the few hacks I have seen, don't work well (sometimes shows a wrong URL). Cheers, Jonas Ok. Until then I will use http://www.darktrojan.net/software/addons/openwith Link to comment
aiyo Posted April 2, 2013 Author Share Posted April 2, 2013 I don't know why, but it doesn't work properly: on my iMac Alfred shows only Safari and Tweetbot as application to send the url, although I have Firefox, Chrome and obviously Mail installed. On the other hand, on my "crappy" MacBook the extension works without problems? Any ideas? Try open a link (though Send URL) with one of the apps the shows up (or copy it as a Markdown/HTML link), after that the workflow should refresh it's application cache. Cheers, Jonas Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now