激活应用程序但保留脚本 运行 Applescript

Activate App but keep script running Applescript

我想用 Applescript 打开另一个应用程序(applescript 小程序),但仍要转到脚本的下一行。

我虽然它会自动执行此操作,但由于某些原因它不会。

这是我的代码:

...
if selectedMenu is "1" then
        set theDisplay to "⬟"
        my display(theDisplay)
        tell application "/Users/Patrick/Documents/Programming/Applescript/Applications/NoWatch.app/Contents/Resources/Both.app" to activate
        tell application "/Users/Patrick/Documents/Programming/Applescript/Applications/NoWatch.app/Contents/Resources/VNC.app" to quit saving no
        tell application "/Users/Patrick/Documents/Programming/Applescript/Applications/NoWatch.app/Contents/Resources/SSH.app" to quit saving no
...

我在激活后包含了这部分以防万一这是造成这种情况的原因。

此外,关闭我激活的应用程序后,脚本继续正常运行。

 ignoring application responses
    tell application "Finder" to activate
 end ignoring