Re: A weird problem scripting Contacts
Re: A weird problem scripting Contacts
- Subject: Re: A weird problem scripting Contacts
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 20 Jul 2017 09:37:51 -0400
> On Jul 20, 2017, at 06:27 , Yvan KOENIG <email@hidden> wrote:
>
>>
>> Le 20 juil. 2017 à 00:19, Deivy Petrescu <email@hidden> a écrit :
>>
>> It is happening in 10.12.6
>> if I write the following script:
>>
>> Tell app “Contacts” to return every person
>>
>> person gets compiled as a variable.
>> If I change the script to
>>
>> Tell app “Address Book” to return every person
>>
>> it compiles to the first script and gets person correctly.
>> Can anyone reproduce this?
>>
>
> I an't reproduce it but may I ask : was Contacts open when you tested you
> script ?
> Here, with the system used in French the instruction doesn’t compile as long
> as the app is not open.
You are right Yvan.
If Contacts is open it compiles properly.
>
> This is not a new feature. It strikes for years.
>
> Here, tell app doesn't compile. I must use tell application.
> If I code :
> tell application "Address Book" to return every person
> it compiles as :
>
> tell application “Contacts" to return every person
However, —tell application “Address Book” to return every person— compiles to—
tell application “Contacts” to return every person—, correctly, even if
Contacts is not open.
So, this is a bug with AppleScript (not SE because the same problem occurs with
Smile)
>
>
> Yvan KOENIG running Sierra 10.12.6 in French (VALLAURIS, France) jeudi 20
> juillet 2017 12:23:16
>
>
> _______________________________________________
> 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
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