Export from Address Book?

Is it possible to export groups from Address Book?

Don’t want to do anything too difficut just export a group(s) from address book as a vCard.

Can anyone help?

This will allow you to choose a group and then export all of the cards from that group as individual vcards:

For saving all of the contacts as a single vcard, you don’t really need a script:

http://www.macworld.com/weblogs/mac911/2005/02/singlevcards/index.php

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Thanks for the reply. I need to export the group as a single vCard. I’m going to be running the script via Pod2Go at set times.

I had a reply on the Apple Discusions:

set PathName to (choose folder)
tell application "Address Book"
	set GroupName to item 1 of (choose from list (get (name of groups)))
	if GroupName is not false then
		set myGroup to vcard of people of group GroupName
		set vcardinfo to myGroup as string
		my makeExportFile(PathName, GroupName, vcardinfo)
	end if
end tell

on makeExportFile(PathName, GroupName, vcardinfo)
	try
		set target_name to GroupName & ".vcf"
		set target_file to (PathName as text) & target_name
		tell application "Finder" to make new file at PathName ¬
			with properties {name:GroupName & ".vcf", creator type:"adrb"}
		set the open_target_file to ¬
			open for access file target_file with write permission
		set eof of the open_target_file to 0
		write vcardinfo to the open_target_file starting at eof
		close access the open_target_file
	on error theErrMsg number theErrNumber
		return theErrNumber
	end try
end makeExportFile

So between the Script you have supplied and this one I think I’ll have my script sorted.

Thanks for the reply
Ben.