On 3/30/07 10:03 AM,
> On Mar 30, 2007, at 9:34 AM, Paul Berkowitz wrote:
>> Sorry, Michele, I changed the variable name inconsistently after
>> (there's a 'num' in the penultimate line that should be a 'foo').
>> Should be:
> I noticed, and fixed it.
> BTW, if the script creates the vcf file with the Finder, and then
> writes to that file with file commands, it works.
> It's a good workaround, but I'd still like to know why Address Book's
> "Save" command doesn't work.
It's not a workaround - that's what you do with 'vcard'. 'vcard' is text -
you should not expect to be able to use the 'save' command on text.
What you _might_ expect is to be able to:
save person 1 in file dest
where dest is the file path. (In apps where this works, it usually works
with just the path too, omitting the 'file'. It's a mistake, that has been
perpetuated since OS 7, that 'save' in the Standard Suite claims to take the
'alias' type as its 'in' parameter: it should take 'file'.)
But this has not been implemented for 'person' - you can't save a person,
although it would be nice if you could. Perhaps it works only for 'message'?
It is useful that 'vcard' property exists, so creating a vcf can be
achieved. But don't expect to 'save' it - it's just text, can't be saved.
Write the text to a file - that may be a workaround for the fact that you
can't save a person, but it's not a workaround for what you do with the
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