Re: JSA -- now I believe this is a bug (JSA or AS)
Re: JSA -- now I believe this is a bug (JSA or AS)
- Subject: Re: JSA -- now I believe this is a bug (JSA or AS)
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 18 Dec 2014 11:46:16 -0500
> On Dec 18, 2014, at 11:06 , has <email@hidden> wrote:
>
> Deivy Petrescu wrote:
>
> > set k to run script "Math.tan((Math.PI)/3)" in “Javascript”
> > Result: 1
> >
> > the problem happens with all trig functions.
>
> It has nothing to do with JS Math functions:
>
> run script "1.6" in "JavaScript"
> --> 1
>
> JXA's OSACoerceToDesc handler is broken. SE asks JXA to convert the script's result value to an AEDesc of typeWildCard - i.e. whatever type JXA thinks most appropriate - and JXA returns an AEDesc of typeInteger. For a floating point number. With a non-zero fraction. In a language that doesn't even _have_ integers.
>
> Can't imagine why I keep saying JXA is a broken POS...
>
> has
has,
your complaints are not going to deaf ears.
However, we all come from AS background (or most of us) and AS has had many issues throughout the years, which, one way or another, were fixed or we were able to move past and AS allowed us to be efficient in whatever we wanted to do.
I have to say that, I really love AS.
Whenever I think of a way to automate something AS comes immediately to mind.
JS, on the other hand, I have a love hate relationship.
But there are many aspects of JSA that makes an AS scripter life easier.
Are you are of Banner? Schools pay an "f fortune” for the software. Or as the crash logs let us know a “WTF” amount of money.
With Numbers and AS I created something that runs lap around it, at least for the faculty.
And even using Banner with AS I can do in less than a second (have to review the result, but because of Banner not AS) work that would, take me about 30 minutes to complete, per course.
Now, there are somethings is JSA that I find really interesting, and I’ll try my shot at using them.
We will wait and see if the "irremediably broken” language can be fixed.
Deivy Petrescu
email@hidden
_______________________________________________
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