Brian Dunning's FileMaker Custom Functions

CreateVCardFile ( FirstName ; LastName ; CompanyName ; Phone ; Email ; WEB ; hAddress1 ; hAddress2 ; hZip ; hCity ; hCountry ; wAddress1 ; wAddress2 ; wZip ; wCity%2

Create a vCard file on users desktop, ready for launch URL to add contact to address book. Requires troi File plugin.

  Average rating: 3.0 (2 votes) Log in to vote

Ole Kristian Ek Hornnes   Ole Kristian Ek Hornnes - Show more from this author
ProgramDesign
https://programdesign.no

Share on Facebook Share on Twitter

  Sample input:
CreateVCardFile ( "Jhon" ; "Doe" ; "Example Company" ; 12345678 ; "jhon@doe.com" ; "https://jhondoe.com" ; "Main Streent Home 1" ; "Left door" ; "0123" ; "Oslo" ; "Norway" ; "Main Workstreet 1" ; "Left Door" ; 0278 ; "Oslo" ; "Norway" )
  Sample output:
/Macintosh HD/Users/ole/Desktop/Jhon_Doe.vcf

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

For implementation in a contact register. Use this function in a little two-liners script:

Set Variable $path = CreateVCardFile ( .... )
Open URL ( "file:/" & $path ) ;

Connect it to a button and thats all.

If you dont want to mess up the users desktop, you can change "Get(DesktopPath)" Get(TemporaryPath), or any other desired location of the file.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: