I need to relaunch my app in hidden state but am kinda stuck
I use this scriplet from jj to relaunch:
:set shScript to "sleep 2; open " & quoted form of POSIX path of (path to me)
do shell script "echo " & quoted form of shScript & " > /tmp/l" --> store in temp file
do shell script "chmod 755 /tmp/l; /tmp/l > /dev/null 2>&1 &" --> execute it "ignoring responses", and quit
quit
It works great, however, I can’t get it to start as hidden. I may have to go with a routine to hide the app itself upon restart but I prefer to get the hidden argument in the above script. Is there any way?