Is there a way to run Javascript in an Applescript script?
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