Re: Passing variable from javascript to applescript
Re: Passing variable from javascript to applescript
- Subject: Re: Passing variable from javascript to applescript
- From: Emmanuel <email@hidden>
- Date: Tue, 25 Apr 2006 21:51:44 +0200
At 8:34 PM +0100 4/25/06, Chris Swain wrote:
tell application "Safari"
activate
set the_SMILES to do JavaScript "
var drawing = document.JME.smiles();
document.form.smi.value = drawing;
return drawing;"
display dialog the_SMILES
end tell
Do check the dictionary: you have to tell what window you're sending
"do Javascript" to:
[...] do JavaScript [...] in document 1, or in window 1.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden