AppleScript error - The variable people is not defined.
Running 10.9.4 on an iMac
Some time ago I started using the following AppleScript:
tell application "Contacts"
set the clipboard to (vcard of people) as text
do shell script "pbpaste > Contacts.vcf"
set the clipboard to ""
end tell
This worked fine until yesterday when it failed with the following error:
export.scpt:59:65: execution error: The variable people is not defined. (-2753)
I tried a number of times and even rebooted but it keeps giving the error (in fact I remember it started giving this error in March but I didn't get to the bottom of it and a couple of weeks later it started working again so I forgot about it). I know very little about AppleScript and am hoping that someone can suggest a fix.
Thanks