fireshadow52
fireshadow52

Reputation: 6506

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?

Upvotes: 2

Views: 114

Answers (1)

Richard Inglis
Richard Inglis

Reputation: 5948

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.

Upvotes: 1

Related Questions