FourthWorld wrote: ↑Wed Feb 01, 2023 6:54 am
Same error code?
At this point I don't remember.
Many times nothing happens.
If not that, then the next most likely response is "no such program".
Which suggests that what Livecode is expecting for an application path is nothing I have thought to supply.
To avoid issues with an unsigned application generated by Livecode running on my machine I have switched to trying Apple distributed applications or ones that are distributed and are known to have an official signature.
Preview, BBEdit, PDFPen.
So since those are in the central Applications folder the path is:
Code: Select all
launch "/Applications/Preview.app"
I have tried it with and without the ".app"
I also tried adding the name of the disk drive, so:
Code: Select all
launch "/Macintosh HD/Applications/Preview.app"
I have also tried not including the leading '/'.
What I have found so far is that the application must already be running in order for this command to do anything.
Ultimately I don't need my target application to be frontmost since it is going to be a socket based communicator with a database that is accessed by the .lc scripts. My target application just needs to be running. I will probably launch my application via the logged in user at startup, but would like a means of re-launching it if it quits for some reason.
(and this command is supposed to work, independent of my interest in it.)