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 tori File plugin.

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

Ole Kristian Ek Hornnes   Ole Kristian Ek Hornnes
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.

Under construction. Email me your wish list for improvements.