show vCard details in columns

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

show vCard details in columns

Post by yusef88 »

show constants mobile number and other details in columns
===
i mean when browse folder contains vCard
To see the attached files, you need to log into the forum.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: show vCard details in columns

Post 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
To see the attached files, you need to log into the forum.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: show vCard details in columns

Post by yusef88 »

search for column headers of contact details
not found :veryconfused:

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: show vCard details in columns

Post by bdeshi »

What's not found?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: show vCard details in columns

Post by yusef88 »

there's no column header with contact details (e-mail, first name)..xp sp3
To see the attached files, you need to log into the forum.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: show vCard details in columns

Post by bdeshi »

Oh, sorry look in just "Properties"....
(I had a wee mix-up :) )
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: show vCard details in columns

Post by yusef88 »

even "property" does not contain such stuff :roll:
may i ask you for a screenshot,please

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: show vCard details in columns

Post 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.)
To see the attached files, you need to log into the forum.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: show vCard details in columns

Post 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
?
To see the attached files, you need to log into the forum.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: show vCard details in columns

Post 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*";) .
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: show vCard details in columns

Post 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*";
To see the attached files, you need to log into the forum.
Last edited by yusef88 on 27 Jun 2014 18:19, edited 1 time in total.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: show vCard details in columns

Post by bdeshi »

Even though the screenshot shows nothing, the post implies you got working, so...
My pleasure! :D
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: show vCard details in columns

Post by yusef88 »

forgot updating it..thanks again
To see the attached files, you need to log into the forum.

Post Reply