• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Passing variable from javascript to applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Struggling with a script
  • Next by Date: Re: scripting Word top copy text - should be simple, but ain't
  • Previous by thread: Passing variable from javascript to applescript
  • Next by thread: Re: Passing variable from javascript to applescript
  • Index(es):
    • Date
    • Thread