Page 1 of 1

show vCard details in columns

Posted: 24 Jun 2014 20:19
by yusef88
show constants mobile number and other details in columns
===
i mean when browse folder contains vCard

Re: show vCard details in columns

Posted: 25 Jun 2014 16:07
by bdeshi
Add new "Special Properties" columns, search for column headers of contact details (e-mail, first name ...) . not all column titles match Explorer's exactly.
contactColumns.png

Re: show vCard details in columns

Posted: 25 Jun 2014 22:41
by yusef88
search for column headers of contact details
not found :veryconfused:

Re: show vCard details in columns

Posted: 26 Jun 2014 17:10
by bdeshi
What's not found?

Re: show vCard details in columns

Posted: 26 Jun 2014 17:29
by yusef88
there's no column header with contact details (e-mail, first name)..xp sp3

Re: show vCard details in columns

Posted: 26 Jun 2014 17:33
by bdeshi
Oh, sorry look in just "Properties"....
(I had a wee mix-up :) )

Re: show vCard details in columns

Posted: 26 Jun 2014 17:42
by yusef88
even "property" does not contain such stuff :roll:
may i ask you for a screenshot,please

Re: show vCard details in columns

Posted: 26 Jun 2014 17:57
by bdeshi
Sure, here.
unnamed.png
I'm running Window 8.1, maybe these columns don't exist in XP. If that's the case, then you may need to use CustomColumn scripts to read the data straight from the file. (which should be easy, the files are in plain text in xml structure.)

Re: show vCard details in columns

Posted: 26 Jun 2014 19:37
by yusef88
well i found them in win7 but non of them show numbers
===
content of vcf file as shown in preview

Code: Select all

BEGIN:VCARD
VERSION:2.1
N;CHARSET=utf-8:;name
FN;CHARSET=utf-8:name
TEL;CELL;VOICE:number
END:VCARD
?

Re: show vCard details in columns

Posted: 27 Jun 2014 08:13
by bdeshi
I tested with just .contact files (because you mentioned the %userprofile%\contacts folder).
But you apparently use vcf files. Even Windows Explorer doesn't display the needed info for these in the columns.
Now I think this is what you were actually asking for in the first place...

Anyways, here's a CC script which should extract home phone number from vcf files.

Code: Select all

Snip: CustomColumn 1
  XYplorer 14.20.0300, 6/27/2014 12:08:15 PM
Action
  ConfigureColumn
Caption
  vcf.Home.Phone
Type
  3
Definition
  //tel;home
   $in = readfile("<cc_item>");
   $id = "tel;home*";
   $ln = gettokenindex($id,$in,<crlf>,iw);
   $out= regexreplace(gettoken($in,$ln,<crlf>),"^[^\:]+\:",);
   return $out;
Format
  0
Trigger
  1
Item Type
  0
Item Filter
  .vcf;
[/size](You know the drill, enter ::snippet; into addressbar and paste the code, then create a new column, choose the newly created "VCF.Home.Phone" from custom columns list.)

If you want to get other information, duplicate the customColumn, and replace the value of $id with the unique string that identifies that information field
(for example, to get first name, the value of $id should be: $id = "FN*";) .

Re: show vCard details in columns

Posted: 27 Jun 2014 18:05
by yusef88
first:i really appreciate your efforts
second:nothing appears in column
a little addition in your code make it works..big thanks

Code: Select all

$id = "TEL;CELL; HOME*";

Re: show vCard details in columns

Posted: 28 Jun 2014 06:59
by bdeshi
Even though the screenshot shows nothing, the post implies you got working, so...
My pleasure! :D

Re: show vCard details in columns

Posted: 28 Jun 2014 17:52
by yusef88
forgot updating it..thanks again