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.