• 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
Is there a way to run Javascript in an Applescript script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there a way to run Javascript in an Applescript script?


  • Subject: Is there a way to run Javascript in an Applescript script?
  • From: Jim Brandt <email@hidden>
  • Date: Fri, 15 Mar 2013 06:18:22 -0500

Is there a way to run _javascript_ in an Applescript script?

I have an HTML document which used to have hard-coded dates in it in the form yyyy-mm-dd.

Recently, the HTML code changed to use _javascript_ to display the dates, so the code now looks like this:

<script type="text/_javascript_">tstamp = new Date(1363144928000);document.write(tstamp.toLocaleString());

I would like to decipher this into the date it represents so I can use that date in my script. Is it possible to pass the string to _javascript_ and get the date back, either as a date variable or as a string that represents the date?

TIA,

Jim
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is there a way to run Javascript in an Applescript script?
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Excel and Filemaker pro 12
  • Next by Date: Re: Is there a way to run Javascript in an Applescript script?
  • Previous by thread: Re: Excel and Filemaker pro 12
  • Next by thread: Re: Is there a way to run Javascript in an Applescript script?
  • Index(es):
    • Date
    • Thread