• 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: AppleScript for Contacts on 10.10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript for Contacts on 10.10.5?


  • Subject: Re: AppleScript for Contacts on 10.10.5?
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 15 Aug 2015 09:44:20 +1000

On 15 Aug 2015, at 3:12 am, Stephen Cronin <email@hidden> wrote:

Confirm that launching the app causes the failure to disappear.

BTW:  Xcode would not compile embedded code in a project…

This IS a rudimentary behavioral change in the basic ‘Contacts’ app yes?

I wonder if it's all related to the app's name change some time ago, and the hack to make old scripts continue working.

IAC, it looks like there's a fairly simple solution:

tell application id "com.apple.AddressBook" -- Contacts
set x to first person
end tell

That compiles here regardless of whether Contacts is running.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: 
 >AppleScript for Contacts on 10.10.5? (From: Stephen Cronin <email@hidden>)
 >Re: AppleScript for Contacts on 10.10.5? (From: Steve Mills <email@hidden>)
 >Re: AppleScript for Contacts on 10.10.5? (From: Stephen Cronin <email@hidden>)

  • Prev by Date: Re: date syntax not working on 10.10.5?
  • Next by Date: Finder — Resizing the Name Column To-Fit with System Events — Yosemite Version
  • Previous by thread: Re: AppleScript for Contacts on 10.10.5?
  • Next by thread: Finder — Resizing the Name Column To-Fit with System Events — Yosemite Version
  • Index(es):
    • Date
    • Thread