• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A weird problem scripting Contacts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A weird problem scripting Contacts


  • Subject: Re: A weird problem scripting Contacts
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 20 Jul 2017 16:24:38 +0200

> Le 20 juil. 2017 à 15:37, Deivy Petrescu <email@hidden> a écrit :
>
>
>> 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)


If I remember well, AddressBook was the old name of the application which is
now named Contacts.
Always if I remember well, Contacts is not the unique application behaving this
way but I am too lazy to search in my archives the list of apps doing that.

Yvan KOENIG running Sierra 10.12.6 in French (VALLAURIS, France) jeudi 20
juillet 2017 16:24:28


 _______________________________________________
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

References: 
 >A weird problem scripting Contacts (From: Deivy Petrescu <email@hidden>)
 >Re: A weird problem scripting Contacts (From: Yvan KOENIG <email@hidden>)
 >Re: A weird problem scripting Contacts (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: A weird problem scripting Contacts
  • Next by Date: Save of CSV Formatted File Fails on Excel 15.36 under Sierra
  • Previous by thread: Re: A weird problem scripting Contacts
  • Next by thread: Re: A weird problem scripting Contacts
  • Index(es):
    • Date
    • Thread