• 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: how to create a copy of a person?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Address book: how to create a copy of a person?


  • Subject: Address book: how to create a copy of a person?
  • From: olli <email@hidden>
  • Date: Sun, 28 Nov 2004 01:18:49 +1100

hi there

with applescript i want to create a copy of a person in the address book.

i tried:
<x-tad-smaller>
</x-tad-smaller><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>source_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>people</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_props</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>properties</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>source_p</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>first name</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>p_props</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>to</x-tad-smaller><x-tad-smaller> "_Copy " & (</x-tad-smaller><x-tad-smaller>first name</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>p_props</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>as</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>string</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>target_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>make</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>new</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>at</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>of</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>people</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>with properties</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>p_props</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>save addressbook</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>
but i get an error "CannotCreateScriptCommandError". however, createing a new card with few props like {first name: "bob", last name: "builder"} works.

so what is the easiest way to duplicate a person in the addressbook?

thanks a lot,

olli
 _______________________________________________
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: how to create a copy of a person?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: open file on another machine
  • Next by Date: Decompiler?
  • Previous by thread: RE: Network / AS query
  • Next by thread: Re: Address book: how to create a copy of a person?
  • Index(es):
    • Date
    • Thread