Page 2 of 3

Re: Customized columns

Posted: 04 Nov 2014 19:37
by yusef88
I don't t know what's wrong maybe because I use XP ; XY hangs and after that nothing show in column

Code: Select all

 $mediaInfo = "C:\Program Files\MediaInfo\MediaInfo.exe";
 $length = regexreplace(runret("$mediaInfo --Inform=General;%Duration/String3% ""<cc_item>"""), "\.\d*\r?\n");
 return $length;

Re: Customized columns

Posted: 04 Nov 2014 19:50
by highend
Why do you post a screenshot of MediaInfo (GUI version)?

Re: Customized columns

Posted: 04 Nov 2014 19:58
by yusef88
it pops up several times by itself when browsing a folder contains videos files

Re: Customized columns

Posted: 04 Nov 2014 20:12
by highend
Em, you NEED to use the cli version, not the gui one^^

Re: Customized columns

Posted: 04 Nov 2014 20:27
by yusef88
Please check out this little video

Re: Customized columns

Posted: 04 Nov 2014 20:33
by highend
A MediaInfo GUI pops up. And? How many times do I have to repeat that you need the CLI version?

Re: Customized columns

Posted: 04 Nov 2014 20:39
by yusef88
why are screaming at me :roll: :(
I've no idea what's CLI version :?:
_____
found it at download page and thanks

Re: Customized columns

Posted: 04 Nov 2014 22:38
by PeterH
yusef88 wrote:why are screaming at me :roll: :(
I've no idea what's CLI version :?:
_____
found it at download page and thanks
If you are asked to use the CLI version and don't know what it is you should ask, and not take something else, I think.

Re: Customized columns

Posted: 05 Nov 2014 07:58
by Calade
Hi,

Is there an help to use MediaInfo, if I wqnt use others tags ?

I found the tags list not vey helpfull.
And in which language your script is written ? VBScript, Javascript or another one ?

Re: Customized columns

Posted: 05 Nov 2014 09:18
by highend
The cli package has a contrib directory with "CLI_Help.doc".

It's written in XY's scripting language.

Re: Customized columns

Posted: 05 Nov 2014 15:47
by yusef88
PeterH wrote:
yusef88 wrote:why are screaming at me :roll: :(
I've no idea what's CLI version :?:
_____
found it at download page and thanks
If you are asked to use the CLI version and don't know what it is you should ask, and not take something else, I think.
reading hastily and non synchronization replies made this misunderstanding anyway grateful to his script

Re: Customized columns

Posted: 05 Nov 2014 22:46
by Houckster
XYCustom Column1.jpg
XYCustom Column1.jpg (12.3 KiB) Viewed 2319 times
I'm new to the forum and I hope I'm posting my question in the correct location. If not please direct me to the proper location.

My problem is that I need to show the EXIF creation date for Image files because I use the date as part of the file name. This information, of course is available in Lightroom 5 but it would be much more convenient if I could use XYplorer.

I am told I need to use a custom column and I have worked on this. The columns I've created show the times for JPG files but not for raw files like ARW, MRW, CR2 etc even though I've modified the custom columns to show these formats. See the attachment. The information for the RAW file types is not displayed.

Can someone please advise?

Thanks

Re: Customized columns

Posted: 05 Nov 2014 23:27
by highend
Try this:

Download Exiv2 (http://www.exiv2.org/exiv2-0.24-win.zip)
Extract it

Follow the guide from my third post in this thread (how to create a custom column with a script)

The script part:

Code: Select all

 $exifTool = "D:\Users\Highend\Downloads\exiv2-0.24-win\exiv2.exe";
 $fullDate = regexreplace(runret("$exifTool -q -g Exif.Image.DateTime -Pv ""<cc_item>"""), "\r?\n");
 return replace(gettoken($fullDate, 1, " "), ":", ".") . " " . gettoken($fullDate, 2, " ");
Ofc you have to modify the path for exiv2...

Re: Customized columns

Posted: 06 Nov 2014 00:56
by Houckster
I'll try it. Thanks!!!

Re: Customized columns

Posted: 07 Nov 2014 15:47
by highend
And, did it work?