4 Replies Latest reply on Feb 28, 2013 3:47 AM by Beliakov

    How to write script calling with parameter [CS6-js (Mac)]

    Beliakov Level 1

      I'm doing script for produsing some sound:

      var mString = "tell application \"Play Sound\"\rplay \"Mac:Users:a.ivanov:Sounds:" + "copied.wav" + "\"\rend tell"

      app.doScript(mStrtest, ScriptLanguage.applescriptLanguage);

      This work well.

       

      Now, i'd like to call this script from other script with any desired wav-file (not only "copied.wav" )). How to write down correctly calling other script with param.

       

      Thanks