Is it possible to automatically open OSX adressbook and import a vcf file?

Klaus Major klaus at major-k.de
Wed Jul 11 10:15:54 EDT 2007


Dag Willem,

> Hi there,
>
> I am playing with Andre Garzia's vObject Package and I like it.
> The demo card outputs a .vcf file. I am on OSX and when I drop this
> file on OSX adressbook it imports a new card.

If you are missing the nice VCF icon on OS X, add this line right before
writing the data to the VCF file:

...
set the filetype to "????????"
## write data to VCF file...

This way the Finder is forced to determine the correct file type and  
icon by the file suffix :-)

> Is there a way in Rev to automatically (after creating the .vcf file)
> open the adressbook and import the .vcf card?

I'm sure this is possible with AppleScript.
Open the AppleScript Editopr and then the "dictionary" of the  
Adressbook.app.

I think "open ..." is the correct command to open/import a VCF file.

> greetings,
>
> William

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list