You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.
Hi. I just found this great library, and it looks awesome!
It runs fine, testing with Chrome JavaScript console.
But I can't get it to work with JXA.
I get this error:
When running this code:
varapp=Application.currentApplication()app.includeStandardAdditions=trueDate.today();/** * @version: 1.0 Alpha-1 * @author: Coolite Inc. http://www.coolite.com/ * @date: 2008-05-13 * @copyright: Copyright (c) 2006-2008, Coolite Inc. (http://www.coolite.com/). All rights reserved. * @license: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/. * @website: http://www.datejs.com/ */Date.CultureInfo={name:"en-US",englishName:"English (United
The code from the entire Date-en-US.js file is at the bottom of my Script Editor file, I just cut off the code when I pasted it here.
Same file runs fine in a simple HTML page using Chrome JavaScript console.
Any suggestions as to how I can make this work with JXA?
TIA.
The text was updated successfully, but these errors were encountered:
I don't know much about JXA, but maybe it's a problem related to Datejs expanding the native Date()-function? Is this allowed in JXA? I didn't found out with a quick Google search.
Hi. I just found this great library, and it looks awesome!
It runs fine, testing with Chrome JavaScript console.
But I can't get it to work with JXA.
I get this error:
![image](https://cloud.githubusercontent.com/assets/11052885/11948062/fe734f48-a834-11e5-9248-871288814f4d.png)
When running this code:
The code from the entire Date-en-US.js file is at the bottom of my Script Editor file, I just cut off the code when I pasted it here.
Same file runs fine in a simple HTML page using Chrome JavaScript console.
Any suggestions as to how I can make this work with JXA?
TIA.
The text was updated successfully, but these errors were encountered: