Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>"Basically my aim is to open a browser with an URL which is different for each of the menu item."</p> </blockquote> <p>Something like the following AppleScript can be used to open a URL in the default web browser, using AppleScript:</p> <pre><code>tell application "Finder" to open location "http://learnbymac.com" </code></pre> <p>Something like the following shell script can be used to open a URL from the shell:</p> <pre><code>open -a "Finder" "http://learnbymac.com" </code></pre> <p>Using the Finder to open URLs is better than using Safari because when you use the Finder to open URLs, you get the default browser rather than always getting Safari.</p> <blockquote> <p>" i will launch an app / exe from the shell script by passing path to the file &amp; service name so that the app can construct url based on the service name by reading the file details from the data base and loads the url in the browser."</p> </blockquote> <p>You may have to provide the name of your service in your workflow's "Run Shell Script" action when you launch your app. This might be best anyways because then if the user changed the name of the Service, your software would still run. I know that it would be ideal to not duplicate the name of the Service having it once in the workflow's bundle and again in your "Run Shell Script" action, but I don't know how to get the name of the currently running Service.</p> <p>-- Kaydell<br> <a href="http://mailto%3akaydell@yahoo.com" rel="nofollow">kaydell@yahoo.com</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload