• 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
address book: find out whether the selection contains persons or groups
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address book: find out whether the selection contains persons or groups


  • Subject: address book: find out whether the selection contains persons or groups
  • From: olli <email@hidden>
  • Date: Mon, 8 Nov 2004 22:28:21 +1100

hi there

in an address book script which works on the current selection i want to check whether the seletion contains persons or groups.

how can i achieve this? i tried something like

<x-tad-smaller>tell</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>application</x-tad-smaller><x-tad-smaller> "Address Book"
</x-tad-smaller><x-tad-smaller>set</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>sel_list</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>to</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>selection</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>set</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>p</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>to</x-tad-smaller><x-tad-smaller> (</x-tad-smaller><x-tad-smaller>item</x-tad-smaller><x-tad-smaller> 1 </x-tad-smaller><x-tad-smaller>of</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>sel_list</x-tad-smaller><x-tad-smaller>)
</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>p</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>is</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>class</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>of</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>person</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>then</x-tad-smaller><x-tad-smaller>
--</x-tad-smaller><x-tad-smaller> do person things</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>beep</x-tad-smaller><x-tad-smaller> 1
</x-tad-smaller><x-tad-smaller>end</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>p</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>is</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>class</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>of</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>group</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>then</x-tad-smaller><x-tad-smaller>
--</x-tad-smaller><x-tad-smaller> do group things</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>beep</x-tad-smaller><x-tad-smaller> 1
</x-tad-smaller><x-tad-smaller>end</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>if</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>end</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>tell</x-tad-smaller><x-tad-smaller>

but it doesn't work. any idea, what to do?

thanks, olli
</x-tad-smaller>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: address book: find out whether the selection contains persons or groups
      • From: Michelle Steiner <email@hidden>
    • Re: address book: find out whether the selection contains persons or groups
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: How to extract the email address in a the message body
  • Next by Date: Re: How to extract the email address in a the message body
  • Previous by thread: Re: How to extract the email address in a the message body
  • Next by thread: Re: address book: find out whether the selection contains persons or groups
  • Index(es):
    • Date
    • Thread