# Mac 'Shortcut'

**URL:** <https://ifnotnil.com/t/mac-shortcut/1612>\
**Category:** General Programming\
**Created:** [28 March 2021 20:55 UTC](https://ifnotnil.com/t/mac-shortcut/1612 "2021-03-28T20:55:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![doj](https://ifnotnil.com/user_avatar/ifnotnil.com/doj/32/530_2.png) [@doj](https://ifnotnil.com/u/doj)\
**Post date:** [28 March 2021 20:55 UTC](https://ifnotnil.com/t/mac-shortcut/1612/1 "2021-03-28T20:55:46Z")

</div>

I am trying to automate what sounds like a simple thing, unless you have never done it before (on a Mac at least).

I have an application that allows multiple instances to be launched using terminal.

the terminal is used to create stdout (so I am told), which allows more than one instance, each instance must be started from a new terminal window.

what I would like to do is have a ‘shortcut’ or alias of some type that presents its self as a desktop object that I just click on and it starts that instance running.

/Applications/jtdx.app/Contents/jtdx --rig-name=vhf

or

/Applications/jtdx.app/Contents/jtdx --rig-name=hf

surely this is as simple as making a pot of coffee once you know how!

Thanks

Mark

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [28 March 2021 23:35 UTC](https://ifnotnil.com/t/mac-shortcut/1612/2 "2021-03-28T23:35:01Z")

</div>

An applescript saved & compiled as an “application”

this one liner saved as a compield application with no startup screen opens more NEW copies of Safari

```auto
do shell script "open -n -b com.apple.Safari"

```

args would go after com.apple.Safari

there are other parameters that the open command can use

---

<div class="post-metadata">

**Author:** ![doj](https://ifnotnil.com/user_avatar/ifnotnil.com/doj/32/530_2.png) [@doj](https://ifnotnil.com/u/doj)\
**Post date:** [29 March 2021 02:09 UTC](https://ifnotnil.com/t/mac-shortcut/1612/3 "2021-03-29T02:09:21Z")

</div>

Ok Norman, that was all new to me, never looked at apple script before.

after a lot of messing about I eventually got it working and now have a nice launch able  
object to click, next is to make an ICNS file to give the image a meaning.

this is what I ended up with, the tricky part was having to actually add the ‘–args’ part rather than just the argument its self.

do shell script “open -n -a /Applications/jtdx.app/Contents/MacOS/jtdx --args --rig-name=hf”

Thanks for the help.
