• 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
Importing vcards into address,moving last import group to another group
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Importing vcards into address,moving last import group to another group


  • Subject: Importing vcards into address,moving last import group to another group
  • From: Kirk Pitts <email@hidden>
  • Date: Wed, 30 Mar 2005 09:23:34 -0500

I am trying to import a set of vcards in a folder, then have the vcards moved into a new group based on the name of the folder.
I am building the script on another computer and don't have the code but scripting the import and creating the group work fine. But I can't seem to move the names from the last import group into the new group. Can you access the last import group with applescript.


 This is a simple version of the script I am trying to use.
 Any ideas on how to do this.

 set vcardsimport to (path to desktop folder) & "vcards" as string
 set vcards_alias to vcardsimport as alias
 tell application "Address Book"

 make new group with properties {name:"vcards"}
 open vcards_alias
 save addressbook
 add (every person whose group is "Last import") to group "ap"

 save addressbook
 end tell
 The "add (ev..." line gives the error.
 How can you import a folder full of vcards then add them to a group.
_______________________________________________
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


  • Prev by Date: Re: Keychain and text returned
  • Next by Date: Scripting System Preferences
  • Previous by thread: Re: controlling battery charge limits
  • Next by thread: Scripting System Preferences
  • Index(es):
    • Date
    • Thread