Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Applescript - return value from 'do Javascript'

$
0
0

I'm running a javascript via Applescript, and I want to return a value back to the calling applescript. When I try the following test:

 

tell application "Adobe Illustrator"

set theScript to "return 'Test';"

set theResult to do Javascript theScript

end tell

 

I get a message "'Illegal 'return' outside of a function body".

 

Is there a way to return a value back to the applescript?


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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