Thanks, Michael. That’s exactly the same, without dialog window
Yes, no need. If the app is not in the LS database you just get no bundle ID returned. As mentioned on your thread, usually you get the “Choose Application” window then. (Which can come in handy: if you’ve made a typo you can still select the app from the list.)