@cvp, I am testing with app "MyLifeOrg 3", which does not publish an URL Scheme. Using your method, I get the following identifier : 'net.mylifeorganized.MLO2'. However, opening URL 'MLO2://' fails ("Safari cannot open the page, the address is not valid").
Needless to say, the app is available as a target for the "Open app" action in Shortcuts...
I have come across the following (https://talk.automators.fm/t/shortcuts-url-scheme/1940/3) : Shortcuts still supports the Workflow URL Scheme, which means one can use the following URL : 'workflow://run-workflow?name=Test' to open the app. (Where 'Test' is the name of the Shortcut script, which contains one action : 'OpenApp MyLifeOrg 3')
However, this is clumsy, as :
- First, Safari asks for confirmation ("Open this page in "Shortcuts" ?) : @JonB : you guessed right !
- Second, the Shortcuts app appears briefly
- Third, at last the target app is displayed
Other suggestions and ideas on how to launch an arbitrary application, even if it does not publish an URL Scheme, are welcome !
Edit : have also tried the "official" Shortcut URL Scheme, using the method described in https://talk.automators.fm/t/shortcuts-url-scheme/1940/2: shortcuts://x-callback-url/run-shortcut?name=Test&id=CD61E01D-22CF-43B8-966B-19AA134F0456&source=homescreen. The result is the same as with the old Workflow URL Scheme above.