My applescript's app name is "myApp", I'm just wondering why it's not killing my app after the Launch of Tableau.
"on run" is working as expected, and killing the host app after launching Tableau, but "on open" is not behaving as expected, when I'm passing clicked filename as parameter:
on open fileRef
do shell script "/Applications/Tableau\\ Desktop\\ 2019.1.app/Contents/MacOS/Tableau -DConnectPluginsPath=/Users/myUser/Downloads/connector " & quoted form of POSIX path of fileRef & " killall myApp"
end open
on run
do shell script "/Applications/Tableau\\ Desktop\\ 2019.1.app/Contents/MacOS/Tableau -DConnectPluginsPath=/Users/myUser/Downloads/connector & killall myApp"
end run
Thanks.