Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Applescript to run javascript

$
0
0

ok...

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"         set myScript to POSIX path of myFile                tell my application myApp            activate            run script file myScript         end tell    end if
end tell

Viewing all articles
Browse latest Browse all 37788

Trending Articles



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