vcard ( FirstName; LastName; Org; Title; Phone; Fax; Mobile; Email
Rate this function: Average rating: 3.7 (7 votes) Discuss this Custom Function
Chris Pye, Mactec
http://www.mactec.com.au
Returns text formatted as a vCard
Sample Input:
| vcard ( "Fred" ; "Bloggs" ; "F Bloggs & Co" ; "Mr" ; "0754 321 789" ; "0754 321 799" ; "0413 284 343" ; "fred@bloggsco.net" ; "1 Test Lane" ; "Suburb" ; "State" ; "5035" ; "Fredland" ) |
|
Sample Output:
BEGIN:VCARD
VERSION:2.1
N:Bloggs;Fred;;Mr;
FN:Fred Bloggs
ORG:F Bloggs & Co;
TEL;work:0754 321 789
TEL;fax:0754 321 799
TEL;cell:0413 284 343
EMAIL;INTERNET;work:fred@bloggsco.net
ADR;work:;;1 Test Lane;Suburb;State;5035;Fredland
END:VCARD |
|
Description:
Creates a vCard from contact fields.
I created this function as simple and portable way of exporting vCards from any Filemaker solution. This function takes contact info and formats it into the vCard format as text. The result field can be exported as tab separated text and saved with the .vcf file extension which can then be opened in the Apple Address Book and other software that supports the vCard format.
Please note that you need to use the "Export Field Contents" script step to maintain the returns at the end of each line. Using export record will strip the returns, and the vcard file will not open.
I started off thinking that this function should be kept simple, but then I thought it might be easier to delete unwanted fields rather than adding them latter.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
captialLetters ( numWords ; text) |
| |
(Thu, Jul 02, 9:53am) |
| 2. |
Base64ToAscII ( string ) |
| |
(Sun, Jun 28, 11:47am) |
| 3. |
AscIIToBase64 (string) |
| |
(Sun, Jun 28, 11:36am) |
| 4. |
ToggleFlag_cf ( myfield ; myVL ; pos ; neg ) |
| |
(Fri, Jun 26, 12:41pm) |
| 5. |
IsDaylightSavings ( TS ) |
| |
(Thu, Jun 18, 1:56pm) |
| 6. |
DaylightSavingsEnds |
| |
(Thu, Jun 18, 1:38pm) |
| 7. |
DaylightSavingsBegins |
| |
(Thu, Jun 18, 1:35pm) |
| 8. |
DayofMonthbyWeek ( DayofWeekWanted_Sunday_1 ; WeekWantedasNum ; MonthasNum ; YearasNum ) |
| |
(Thu, Jun 18, 1:31pm) |
 |
|