Page 1 of 1
how to put script in Custom Columns?
Posted: 23 Mar 2014 23:19
by yusef88
Re: how to put script in Custom Columns?
Posted: 24 Mar 2014 00:01
by SkyFrontier
13.80.0134 (latest beta), assuming you already have a 'new column':
right click the new column header, pick the last entry, 'configure custom columns...';
select an '(undefined)' item in the list, click the 'edit' button;
on 'type', select 'script' - pay attention to the 'item filter' and 'item type' options, defining target extensions for the former;
place your script as described in
http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=11321 , which contains some working sample scripts.
-please not the importance of 'return', there!
I guess that's all.
Re: how to put script in Custom Columns?
Posted: 24 Mar 2014 00:32
by yusef88
i put this script and it seems to copy all list items (temporary internet files) to desktop so i canceled the custom column..thanks for the answer
Code: Select all
copyas "*.mp3", "%userprofile%\desktop";
Re: how to put script in Custom Columns?
Posted: 24 Mar 2014 10:40
by autocart
The script will be executed
on rebuild of list (i.e. on tab or folder change)
for each item!!
Scripts in custom columns are meant to generate a result that should be displayed in the column.
For this to be made possible there is special scripting command/keyword "return", as also shown in SkyFrontier's link.
Scripts with file operations probably make no sense in this context.
See also:
http://www.xyplorer.com/xyfc/viewtopic. ... 95#p100913
Re: how to put script in Custom Columns?
Posted: 24 Mar 2014 12:11
by yusef88
thanks for the clarification