Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing variable from javascript to applescript



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Passing variable from javascript to applescript (From: Chris Swain <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.