Page 10 of 14

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 01 Jul 2013 14:01
by LittleBiG
The dialog after clicking on "Add to Zip..." context menu preselects the whole filename. It would be better, if it selected only the filename without the .zip extension.

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 01 Jul 2013 17:29
by admin
Yup, done.

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 01 Jul 2013 23:03
by serendipity
Thanks for enhancing zip_extract() :appl: .
Now I can extract specific files (checked by user) to current folder using this simple script, just select a zip file and run the script:

Code: Select all

//Create list
  $ziplist=zip_list(,"|",0); 
//Remove Tabs
  $ziplist=replace($ziplist,"<tab>", ""); 
//Create input select window
  $extract=inputselect("Check Items to extract to current folder",$ziplist,"|",3,,,,"<curitem>"); 
//Extract checked files to current folder
  zip_extract (,<curpath>,$extract,"|");
Or this one liner, :) :

Code: Select all

    zip_extract (,<curpath>,inputselect("Check Items to extract to current folder",replace(zip_list(,"|",0),"<tab>", ""),"|",3,,,,"<curitem>"),"|");

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 07:57
by admin
Cool!

Next version you can get the generic icons:
zip_extract (,<curpath>,inputselect("Check Items to extract to current folder",replace(zip_list(,"|",0),"<tab>", ""),"|",11,,,,"<curitem>"),"|");

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 15:28
by serendipity
Thanks for generic option.
BTW, I am getting inconsistencies with some zip files where i see only alert icons.
Also, with Marco's unofficial beta archive which is shared via dropbox I see first item Catalogdefault name missing and alert icon. Is it because of the long name or something?

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 15:28
by serendipity
Deleted duplicate post.

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 15:39
by Marco
Yes, I guess it's due to overlong filename.

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 16:56
by serendipity
Marco wrote:Yes, I guess it's due to overlong filename.
But if i copy the file to another location (desktop or my docs) and try that script (or simply Zip view - F11) it seems alright. So i am guessing its the long path with dropbox folder. Can you confirm this?

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 17:00
by admin
Can you post the link to such a problem archive?

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 17:06
by serendipity
admin wrote:Can you post the link to such a problem archive?
Not sure if Marco is around, so will share one from his archive:
https://www.dropbox.com/s/h026rpfegiaci ... b01%5D.zip

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 17:07
by admin
Works fine here. :|

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 17:10
by serendipity
admin wrote:Works fine here. :|
Here too, but if you move it to a path which is overlong then it does not. I guess there is a limit.

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 17:34
by serendipity
After some testing the magic number for the path+file name seems to be 406 characters until which all is fine, if i have one more extra character i start to lose items from zip view (starting from top).

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 19:15
by admin
serendipity wrote:After some testing the magic number for the path+file name seems to be 406 characters until which all is fine, if i have one more extra character i start to lose items from zip view (starting from top).
OK, ZipFolder technology is a shell function and all shell functions fail when paths get > 260.

Re: ZIP Support (so I can finally retire "PowerDersk Pro")

Posted: 02 Jul 2013 21:31
by serendipity
admin wrote:
serendipity wrote:After some testing the magic number for the path+file name seems to be 406 characters until which all is fine, if i have one more extra character i start to lose items from zip view (starting from top).
OK, ZipFolder technology is a shell function and all shell functions fail when paths get > 260.
Thought so, no big deal.