Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Applescript to run javascript

$
0
0

Hi all,

 

I got error in this script. Could anyone help on this?

 

tell application "Finder"

    activate

    set myApps to {"CS3", "CS4", "CS5"}

    set selectedApp to choose from list myApps with prompt "Choose Application:" with title "Launch Application"

    if the result is not false then

        set myApp to "Adobe InDesign " & selectedApp

        display dialog myApp

        set myFile to "Applications:" & myApp & ":Scripts:Scripts Panel:Sample.jsx"

       

        tell my application myApp

            activate

            run script file myFile   // error "Adobe InDesign CS4 got an error: A unknown token can’t go after this “)”." number -2740

        end tell

    end if

end tell

 

Regards

Suresh


Viewing all articles
Browse latest Browse all 15932

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>