8 Replies Latest reply on Jun 15, 2009 10:40 AM by Harbs.

    DoScript Turducken ?! [JS] [AS]

    Randomsen Level 1

      Is there any other way, besides storing a string value into a script argument to run a  do script turducken style?

      This works, although highly impractical I'm still curious how to do it in one line...

       

      tell application "Adobe InDesign CS3"

          tell script args
              set value name "my_applescript" value "display alert \"DOSCRIPT TURDUCKEN\""
          end tell
          do script " var my_applescript = app.scriptArgs.getValue(\"my_applescript\");app.doScript((my_applescript), ScriptLanguage.applescriptLanguage);" language javascript
         
      end tell

       

      If declare a string value within a statement that already has escaped quotes, it results in the  error: unterminated string constant.

       

      ~mike