Rename & Move
Posted: 07 Oct 2008 19:24
It's my first ever quite serious script!
It selects all the items in the current folder, renames them as the name of the folder, moves them up a level in the tree and deletes the now-empty folder.
I know it's not as hardcore as Jacky's updater, but at least I'm getting there
On a side note: I'd love for scripting to be applicable to a selection of folders so you select them and it applies to contents of each one. Also, it would be good for stepping to be applicable on a per-script basis rather than apply to all at the same time.
It selects all the items in the current folder, renames them as the name of the folder, moves them up a level in the tree and deletes the now-empty folder.
Code: Select all
Set($cf,<curfolder>);
Sel(a);
Rename(bat,$cf);
Focus(L);
MoveTo("..");
#523;
SelFilter($cf, d, Name);
Focus(L);
#170;On a side note: I'd love for scripting to be applicable to a selection of folders so you select them and it applies to contents of each one. Also, it would be good for stepping to be applicable on a per-script basis rather than apply to all at the same time.