Automatically closing a scripted app
I have an application which needs to be started with options to enable some additional functionality and I wanted to be able to start it from Launchpad, or the Dock or Spotlight in the same way as the app without the options. Thought the easiest way to do this would be to write a script and save it as an app which I've done. Actually it's just a single command
do shell script "binary -option"
where "binary" is the executable in the MacOS folder of the target app.
This does the job of starting the target app but it leaves my scripted app open and unresponsive until I close the target app. This seems a bit untidy and must also be using resource. What is the best way to get the scripted app to close automatically as soon as it has opened the target app?
iMac 27″, macOS 10.14