Re: Contacts » Select 'All Contacts'
Re: Contacts » Select 'All Contacts'
- Subject: Re: Contacts » Select 'All Contacts'
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 20 Nov 2013 08:40:56 -0800
- Thread-topic: Contacts » Select 'All Contacts'
Title: Re: Contacts » Select 'All Contacts'
On 11/20/13, 4:27 AM, "Christopher Stone" <email@hidden> wrote:
I want to select the 'All Contacts' group rather than every individual contact.
Ah. Well, it's not actually a group, so a 'groups whose name is "All Contacts"' attempt wouldn't work. It's really just a UI construct, so it would need GUI scripting like your Keyboard Maestro.
Even setting 'selected' of a group that is currently selected to false doesn't do anything, as you've probably discovered. You could log that as a bug. It should, or could, revert the display to the default which is 'All Contacts', but it doesn't. If it did, you could select a particular group then de-select it.
Similarly,
set selection to {my card}
[or any other person], which works if said person happens to be part of the group currently selected and displayed, does not work if a group not including said person is currently displayed. By rights, it should select the person anyway which might have reverted to the list of All Contacts. But it doesn't do that either. It just does nothing.
It could be argued that AppleScript is for working on the data without resorting to the UI, so that 'select' and similar attempts to manipulate the UI are not the point, or at least not the developers' priority. But given that the dictionary does offer 'selection' and 'selected', neither as r/o, not being able to de-select a group by setting it to false is a bug. Of course that could be 'fixed' by just displaying nothing instead of All Contacts, but hopefully that wouldn't be what happens.
Sorry I couldn't help.
--
Paul Berkowitz
_______________________________________________
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