The script seems to have a lot of different logic and functionality, which looks good, but it would help people who might want to use it to describe what it does in more detail.
This is a introduction of it for more detail which had not posted yet due to my poor English.
Just as its name implies, Pack is to create folders which the selected files put into, while Unpack is to eliminate folders which is the inverse process.
There are functions, advantages and more about what it does of the command below.
With the command Unpack MODE=unpack running, if you are in the nomal folder tabs, it will unpack folders just as what I posted above. It will automatically avoid bugs that normal command will go wrong when the selected folders to be unpacked has the same name as the items the selected folders contain. And, if you are in the file collection tabs, it will copy the sub items of the selected folders to desttab avoiding unpacking it.
With the command Unpack MODE=view running, it will create a filecolletion to show the sub items of the folders. Except file collection itself, no any changes made to the actual files on disk in this mode.
It's still unclear exactly what pack and unpack do. Pack "creates folders", but which folders, and why? What is the aim?
Maybe some examples of what the command does would make things more clear. For example, "if you have these files and folders, then run pack, you get these results".
With my understanding of English I learned, maybe not that accurately,I use Pack just to represent the funtion which putting files into one or several new folders created at the same time. While Unpack is just amost the inverse process. If no bugs,maybe I would post the command Pack which is also writen before and find time to have a introduction in some detail if possible.
I have tried your both button but it's do nothing for me. Can you please tell us in detail how does the button works what is the aim? Please give us some example for understand.
You should Drag the file Unpack.dcf (5.7 KB) to the user custom command window first before you can enjoy it. All about the details I have posted on the first floor. You can have a look.
Drag the "UnpackFolders.dcf" file UnpackFolders.dcf (257 Bytes) to your toolbar to make a button which runs the new command.
Click OK in the Customize dialog to save your changes.
What does unpack Mean?
Unpack mean Select One or Multiple targeted folder Then click on the Unpackfolder.dcf button. It will Move All the content (Files & Folders) to the 1 level UP & Leave your Targeted folder/folders as an empty folder. That's All.
Yes, you are right. And it supports not only one target folder but also several. You can also get more details and usage of the command from the previous floor.