Re: Position of an element in a list
Re: Position of an element in a list
- Subject: Re: Position of an element in a list
- From: Shane Stanley <email@hidden>
- Date: Thu, 3 Aug 2017 09:07:50 +1000
On 2 Aug 2017, at 10:16 pm, Yvan KOENIG <email@hidden> wrote:
>
> Here is what I got under two systems.
Thanks, Yvan -- that matches what I saw. It also suggests there was a change
made in how AppleEventDescriptors -- which is what any value that can't be
bridged to a Cocoa equivalent is converted to -- are compared.
So this:
use framework "Foundation"
set x to current application's NSAppleEventDescriptor's descriptorWithBoolean:1
set y to current application's NSAppleEventDescriptor's descriptorWithBoolean:1
x's isEqualTo:y
returns true under 10.12 (and presumably 10.11), and 0 (for false) under 10.10.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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