Jump to content

Magpie – open current tab in ANY browser


Recommended Posts

I got tired of opening links in my work browser vs my personal vs safari for PiP video support, etc... So, I created Magpie. Hope you find it useful.

Also, I am taking votes for which browsers to focus on or new additions to support next  https://forms.gle/itMAx9E84RDYqkhm9

 

Download from Github

Currently Supported Browsers

  • Safari
  • Chrome
  • Arc
  • Firefox
  • Tor

 

Adding support soon

  • Brave
  • Edge
  • Opera
  • Vivaldi
  • Orion 

 

Usage

image


arguments

  • ois – open in Safari
  • oic – open in Google Chrome
  • oia – open in Arc
  • oif – open in Firefox
  • oit – open in Tor Browser
Edited by RedcoatAsher
add packaged workflow
Link to comment

Welcome @RedcoatAsher,

 

Thank you for sharing. A few tips for the workflow:

  • It’s best to provide a download link the Releases section of GitHub (that’s what they’re for) instead of in the repo itself.
  • The image shared above is dead.
  • Versions shouldn’t have the v in them. Look at the top of the canvas how it now shows vv1.0.0.
  • The icon is nice (and so is the name), but it has a square background on top of the rounded square background, which is weird. You should be able to right-click → Quick Actions → Remove background.
  • In general, having a delay might not be too reliable since it depends on the current load. Have you tried your scripts without the delay?
  • Always prefer with input as argv over with input as {query}.
  • Here’s a neat trick: because you’re using the script name as the argument for each browser you don’t need the Conditional or that many Run Scripts. You can delete all of that and use just one Run Script set to:
/usr/bin/osascript ./scripts/copyCurrent.scpt
/usr/bin/osascript ./scripts/${1}.scpt
  • Also, take a look at the Automation Tasks, specifically the ones for Frontmost Browser. They make it trivial to extract the URL from browsers which are automatable (notably most of them except for Firefox).

 

Hope that’s not overwhelming, just a couple suggestions from what I noticed on first view. Let me know if you need clarification on any of that. Again, welcome to the forum! Hoping to see more from you.

 

P.S.: I tried to check your website from GitHub, but the URL appears dead. Letting you know in case you hadn’t noticed.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...