Jump to content

morocons

Member
  • Posts

    11
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by morocons

  1. Hello!

     

    I'm trying to create a workflow where my current open URL in safari would be copied and opened in another browser, such as firefox. I'm new to making workflows so I'm not sure how to do this. I'm running alfred v2.3 powerpack. 

     

    Thank you!

     

    Here's a workflow that contains an AppleScript that grabs the current URL in Safari, opens it in Chrome, then closes the existing tab in Safari. I use it with a hotkey. It's my understanding that Firefox support for AppleScript is wonky at best, so I'm not sure how one would go about doing what you're looking for (in Alfred, at least).

     

    https://www.dropbox.com/s/6e2vd97hy7wvtts/Open%20Safari%20Tab%20in%20Chrome.alfredworkflow?dl=0

  2. Here’s how you can do it in Chrome, and other browsers. You’ll also find code to allow you to shorten all the lines you use to get the url from Safari (reducing it to one).

     

    Thanks, Vitor. I had seen this when putting together the workflow, and I tried using the Safari command in the URL part of it. Unfortunately, I think the script does something specific with respect to Safari and the URL that breaks when I replace the lines with the one line from your post, and I'm not competent to figure out what it might be (though I suspect it has to do with how the script gets and then encodes the URL) or how to fix it.

  3. Updated: Hopefully, this might be of use to someone. This workflow contains four scripts, one to send the clipboard contents to an iOS device using Command-C, two to send a URL to Safari in iOS using Command-C, from either Safari or Chrome, and the fourth to send a phone number to iOS (thanks, Paul!). Also, thanks to Vítor for the help with the scripts!

     

    https://www.dropbox.com/s/xcb99na9b7csgv4/Command-C.alfredworkflow?dl=0

     

    Instructions: replace all instances of "Someone's iPhone" in the scripts with your device name.

  4. Hi, everyone. I'm looking for help on building a workflow that, when triggered with a keystroke, would return a list of Safari Reading List items in Alfred. My understanding is that Reading List items are stored in Safari's bookmarks file, so the workflow would have to parse those items and then return them to Alfred, probably through a script filter?

     

    I don't really script, so this is proving above my capabilities. I found this script (https://github.com/anoved/ReadingListReader), which seems like it would be useful, but I'm not sure how to go about incorporating it into a workflow that does what I'd like it to do.

     

    I'd appreciate any help. Thanks,

     

    David

  5. It's based on the country code of the location returned from the IP lookup. It would be possible to set a preference for it. In the mean time, you could edit line 45 of forecast.php to be 

     

    $units = 'si';
    

     

     and that should take care of it.

     

    Perfect, thanks!

×
×
  • Create New...