Address book: Enable Company Checkbox

hey all,

does anyone happen to have a script that can enable the company check box on a selected number of cards.

when you edit the a card there is an option to define the card as a company by clicking on the check box.

Any help would be appreciated.

Here you go

tell application "Address Book"
	
	set theentry to selection
	
	repeat with i from 1 to number of items in theentry
		set this_item2 to item i of theentry
		
		set company of this_item2 to true
		save addressbook
	end repeat
end tell

thanks alot greatly appreciated :slight_smile: