Page 1 of 1
Remove Spaces from File Names
Posted: 16 Nov 2009 03:37
by visualplastik
Have about 170 files to remove spaces from. Possible with scripts?
Also haven't tried any scripts yet, do you just paste in the try script panel?
Thanks
Re: Remove Spaces from File Names
Posted: 16 Nov 2009 04:34
by serendipity
visualplastik wrote:Have about 170 files to remove spaces from. Possible with scripts?
Also haven't tried any scripts yet, do you just paste in the try script panel?
Thanks
Hi and Welcome!
Try the below command from address bar or try script panel:
Also, if you are interested in scripts read more about it:
http://www.xyplorer.com/tour/index.php?page=scripting
http://88.191.26.34/XYwiki/index.php/Scripting
Re: Remove Spaces from File Names
Posted: 16 Nov 2009 06:05
by visualplastik
Ah man thats like magic, thx!
Re: Remove Spaces from File Names
Posted: 16 Nov 2009 06:17
by serendipity
visualplastik wrote:Ah man thats like magic, thx!
Yup, scripting can make life so much easier.
Just so that you know what that script means, here is the explanation:
:: = Its for XY to recognize that a script is starting
rename = XY command for renaming
s = abbr for for "search and replace"
" >" = Replace all instances of space [ ] with nothing []
another example:
"A>B" = replace all As with Bs
Re: Remove Spaces from File Names
Posted: 16 Nov 2009 10:46
by admin
serendipity wrote:visualplastik wrote:Ah man thats like magic, thx!
Yup, scripting can make life so much easier.
Just so that you know what that script means, here is the explanation:
:: = Its for XY to recognize that a script is starting
rename = XY command for renaming
s = abbr for for "search and replace"
" >" = Replace all instances of space [ ] with nothing []
another example:
"A>B" = replace all As with Bs
I would have suggested this script:
The "a>b" syntax works as well, but rather as a special case. In general form it means: replace all single characters listed left of ">" with the string right of ">".
Re: Remove Spaces from File Names
Posted: 16 Nov 2009 16:27
by serendipity
admin wrote:serendipity wrote:visualplastik wrote:Ah man thats like magic, thx!
Yup, scripting can make life so much easier.
Just so that you know what that script means, here is the explanation:
:: = Its for XY to recognize that a script is starting
rename = XY command for renaming
s = abbr for for "search and replace"
" >" = Replace all instances of space [ ] with nothing []
another example:
"A>B" = replace all As with Bs
I would have suggested this script:
The "a>b" syntax works as well, but rather as a special case. In general form it means: replace all single characters listed left of ">" with the string right of ">".
Yup my bad, "rename s, " ", p;" is much simpler.
Re: Remove Spaces from File Names
Posted: 16 Nov 2009 16:32
by admin
serendipity wrote:Yup my bad, "rename s, " ", p;" is much simpler.
But would not work from address bar because I forgot the "::".
Better:
For newbies: the 3rd argument "p" makes it show a preview before doing the rename.