Custom Columns
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Custom Columns
Let's open a new topic for one of the most revolutionary things ever added to XY!
Here is a first screenshot to water your mouth. You will note extended shell properties finally shown in columns, and you will note a column whose contents are completely controlled by a script. In this case the script refers to the item itself, just to show that it can. But absolutely everything is possible!
Here is a first screenshot to water your mouth. You will note extended shell properties finally shown in columns, and you will note a column whose contents are completely controlled by a script. In this case the script refers to the item itself, just to show that it can. But absolutely everything is possible!
FAQ | XY News RSS | XY Twitter
Re: Custom Columns
Sorry, but seeing return in the script caused me to ignore everything else in your post and I'm now extremely excited about the upcoming announcement of user-functions in 14.00.
Re: Custom Columns
It was the "Dimensions" column that caught MY attention ;-)
How soon can we download?
How soon can we download?
ste(phen|ve) kunkel
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom Columns
Relax, it's just a pseudo return.TheQwerty wrote:Sorry, but seeing return in the script caused me to ignore everything else in your post and I'm now extremely excited about the upcoming announcement of user-functions in 14.00.
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom Columns
Maybe tomorrow...kunkel321 wrote:How soon can we download?
It's totally exciting. This might be the most astonishing feature I ever added in the last 17 years...
FAQ | XY News RSS | XY Twitter
Re: Custom Columns
Somehow I was afraid of hearing something like that :-(admin wrote:Relax, it's just a pseudo return.TheQwerty wrote:Sorry, but seeing return in the script caused me to ignore everything else in your post and I'm now extremely excited about the upcoming announcement of user-functions in 14.00.
Maybe tomorrow???admin wrote:Maybe tomorrow...kunkel321 wrote:How soon can we download?
It's totally exciting. This might be the most astonishing feature I ever added in the last 17 years...
What's about Kölle Alaaf?
Win11 Pro 223H2 Gerrman
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom Columns
That's the "maybe" part...
Now off to the madness - D'r Zoch kütt!
Now off to the madness - D'r Zoch kütt!
FAQ | XY News RSS | XY Twitter
Re: Custom Columns
I've written this simple script which collects the "Dimensions" and places them in an Extra Column
Code: Select all
"ImageDimension"
selfilter "*.jpg ; *.jpeg ; *.png ; *.tif ; *.ico ; *.bmp; *.gif";
extratag(1, "Dimensions");
$SelectedItems = get("SelectedItemsPathNames", "|");
foreach($Item, $SelectedItems, "|") {
$Dimensions = property("Dimensions", "$Item");
tag "$Dimensions",$Item , ex1;
}
totmad1 (totally mad one)
Re: Custom Columns
Right right.. it's a "pseudo return" in 13.90, but when user-functions are fully added to 14.00 it'll be a real return.admin wrote:Relax, it's just a pseudo return.TheQwerty wrote:Sorry, but seeing return in the script caused me to ignore everything else in your post and I'm now extremely excited about the upcoming announcement of user-functions in 14.00.
Pretty please?
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom Columns
Here's a shot showing how easy it will be to create a column that displays the first 12 characters of each *.txt file.
- Attachments
-
- 2014-03-03_112534.png (24.04 KiB) Viewed 4080 times
FAQ | XY News RSS | XY Twitter
Re: Custom Columns
I've only just gotten my toes wet so far but it looks pretty good!
Some useful but too slow Column Scripts...Most useful for me so far seems to be just:
Could the scripts for a list-refresh be "bundled" together as if in the same session? Then they could share global variables across the refresh and thus "cache" expensive calls (CatalogReport above). I realize permanent variables could be used but then you have the overhead in keeping it from going stale or expiring the cache.
You didn't completely throw away the idea for User-Defined Context-Sensitive Columns did you? I hope not because I thought that was a really clever way to re-use columns!
Also, snippet support would be very helpful for sharing columns!
Some useful but too slow Column Scripts...
Code: Select all
"Hash"
$i = "<cc_item>";
if (Exists($i) == 1) {
return hash('md5', $i, 1);
} else {
return '<Skipped>';
}
Code: Select all
"In Catalog"
$i = "<cc_item>";
$c = CatalogReport(,'{Location}', 0);
if (0 == GetTokenIndex($i, $c, "<crlf>", 'i')) {
return 'no';
} else {
return 'yes';
}
Code: Select all
return filetype("<cc_item>");
You didn't completely throw away the idea for User-Defined Context-Sensitive Columns did you? I hope not because I thought that was a really clever way to re-use columns!
Also, snippet support would be very helpful for sharing columns!
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom Columns
I will add <cc_isFolder>.
>Could the scripts for a list-refresh be "bundled" together...
Well, not now. Phase 2 or 3... maybe...
>You didn't completely throw away the idea for User-Defined Context-Sensitive Columns did you? I hope not because I thought that was a really clever way to re-use columns!
No, it will certainly come. But probably only in phase 2.
>Also, snippet support would be very helpful for sharing columns!
Sure, it's on my list.
>Could the scripts for a list-refresh be "bundled" together...
Well, not now. Phase 2 or 3... maybe...
>You didn't completely throw away the idea for User-Defined Context-Sensitive Columns did you? I hope not because I thought that was a really clever way to re-use columns!
No, it will certainly come. But probably only in phase 2.
>Also, snippet support would be very helpful for sharing columns!
Sure, it's on my list.
FAQ | XY News RSS | XY Twitter
Re: Custom Columns
Hey guys, I'm new here so sorry for asking a dumb question.
Is the script a VB Script? If so, what would I use for these file properties in Win7?:
-Sample Rate (for audio files, like .wav, .mp3, .flac, etc...)
-Audio bit depth - the current bit depth in the select property screen doesn't work on audio (maybe it's for images only?)
-Audio channels - there doesn't seem to be an option for this in the select property window.
Many thanks for the help!
Dave
Is the script a VB Script? If so, what would I use for these file properties in Win7?:
-Sample Rate (for audio files, like .wav, .mp3, .flac, etc...)
-Audio bit depth - the current bit depth in the select property screen doesn't work on audio (maybe it's for images only?)
-Audio channels - there doesn't seem to be an option for this in the select property window.
Many thanks for the help!
Dave
Re: Custom Columns
Sorry: no! It's XYplorers private scripting langue - you can get info under "Help / Help on Scripting Commands"...SFXAudio wrote:Is the script a VB Script?
Win11 Pro 223H2 Gerrman
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Custom Columns
v13.80.0102
: return readfile(<cc_item> , , 12) popup an scripting error message "Access is denied" then the column not works
: View > Reset Tree will make Custom Column disappear
: There should be an option to enable Auto Size Column for startup / tab switch / view change. Can't live without it.
: Custom column should be cached for each tab. It seems whenever I revisit the Tab, that column is re-created and significantly slow-down XY (especially for large folder)
"Copy Data" feature does not work with Full Row Select => It's ok, I can turn off Full Row Select, but with FRS off, let's make "Full Name-Column Select" which means clicking on empty area within Name Column will select instead of having to click on file name
: return readfile(<cc_item> , , 12) popup an scripting error message "Access is denied" then the column not works
: View > Reset Tree will make Custom Column disappear
: There should be an option to enable Auto Size Column for startup / tab switch / view change. Can't live without it.
: Custom column should be cached for each tab. It seems whenever I revisit the Tab, that column is re-created and significantly slow-down XY (especially for large folder)
"Copy Data" feature does not work with Full Row Select => It's ok, I can turn off Full Row Select, but with FRS off, let's make "Full Name-Column Select" which means clicking on empty area within Name Column will select instead of having to click on file name
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488