|
|
Pass variables back and forth between Applescript and Javascript
Um, all you have to do is to include a return value in your JavaScript command:
Jon PS For the record, "do JavaScript" is a Safari-specific AppleScript command, not a generic AppleScript command. Some people might be confused from the original post.
Pass variables back and forth between Applescript and Javascript
Oh, and it works equally well for other types of returned values (NB: let AppleScript escape your text using the 'quoted form of ' command; manually adding quotes can lead to lots of problems):
Jon |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.48 seconds |
|