How to open one script with another
This might be fairly easy to answer. I have two scripts (i.e. ScriptA.app
and ScriptB.app
). My goal is to open ScriptB.app
from ScriptA.app
. I have tried this:
--ScriptA.app
tell application "开发者_运维知识库ScriptB.app" to activate
But all I got was a window asking me Where is ScriptB.app?
I scrolled through the list of applications but could not find ScriptB.app
or ScriptA.app
for that matter. I thought that was odd, as I saved both scripts as Applications
. Any ideas on what I could be doing wrong?
When I tried this, saving both apps in the Applications folder, it worked fine.
Also it still works if I move either A or B or both to the desktop.
精彩评论