ZIP / UnZip in v10.2

Mike Matthews - Omnis omnis at lineal.co.uk
Tue Jan 31 11:16:30 UTC 2023


Thanks Reg, is the NPM part and getting it deployed?

I’m reading this tech note I found yesterday:
https://omnis.net/developers/resources/technotes/tnex0006.jsp

Looks interesting, and as you say, there are other benefits in here.

Thanks

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 31 Jan 2023, at 10:49, Reg Paling <reg.paling at lokanet.com<mailto:reg.paling at lokanet.com>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.



Hi Mike,

I use a node.js OW3 Worker Object for a cross-platform solution.

You have to break through some barriers to get node.js working properly and
deploying to end-user sites properly, but after that it is very
straightforward.  I already need node.js for some other functionality
which manages certificates and encryption, so it has been worth it for me.
I will use node.js for more in the future, I'm sure.

Omnis comes with a node module called omnis_zip and it's just a matter of
enabling it  by following the instructions in the manual.  To be honest
though, you'll probably find yourself fiddling around to get it to reliably
deploy to your end users.  Let me know if you need help with that.

Regards,
Reg


On Tue, Jan 31, 2023 at 7:59 PM Phil (OmnisList) <phil at pgpotter.co.uk<mailto:phil at pgpotter.co.uk>>
wrote:

Hi Mike,

It wasn't really written as a stand alone commercial product, I just
felt I required it in some other projects I was doing...
I've had it for O$6, O$8, and now O$10.2, universal as well.

regards
Phil Potter
Based in Chester in the UK.

On 30/01/2023 17:45, Mike Matthews - Omnis via omnisdev-en wrote:
Hello Phil,

I only use AppleScript to do the Zip function using Archive, built in
OSX for zipping.  So not wedded to AppleScript at all.

But your cross platform solution is best of all, and one I was looking
for.  Do you keep it current fro v10.2 and beyond?

Thanks

Mike



On 30 Jan 2023, at 17:41, Phil (OmnisList) <phil at pgpotter.co.uk<mailto:phil at pgpotter.co.uk><mailto:
phil at pgpotter.co.uk<mailto:phil at pgpotter.co.uk>>> wrote:

Caution: This is a message which has originated from outside the
organisation. Ensure the sender is trusted and the content is safe before
opening links or attachments.



Hi Mike,

How do others Zip files on Windows currently?

I created a xcomp to do that cross platform...
Means it always works, no issues....

But, won't help you with Applescript or command line stuff.

regards
Phil Potter
Based in Chester in the UK.

On 29/01/2023 13:13, Mike Matthews - Omnis via omnisdev-en wrote:
Hello All,

We have written AppleScripts to zip and unzip files on OSX, all fine.

For Windows, to unzip, we have used Powershell recently.  To Zip on
Windows we still use 7Zip.exe which I want to avoid. I suspect we will use
Powershell to Zip, as well as unZip, going forward.

Omnis has compress() and uncompress() functions, but you need to know
the original file length to uncompress() which is odd, and nasty.

How do others Zip files on Windows currently?

Thanks

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple,
Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:omnis at lineal.co.uk><mailto:omnis at lineal.co.uk><mailto:
mike.matthews at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>>


https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.lineal.co.uk&c=E,1,KKW7euCtm0Yr8VRkLspVvomra3yTyISpHAm6h-knzG4v6-N8wO2j_xanO2EC36VzL3OR-6feXeMUdLmP1TEeus4zjuej3yoWoZkLUntgaXXgf0nEY1qBNFAvz1Kq&typo=1
<
https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.lineal.co.uk%2f&c=E,1,TyZmkOh4IqvTE8MS-jWZhWrg2fl8g7n3dB82SHOuASVE6QZUfflefIuUp11taAAjNcPznQus4xsy3elfafY_ACb7vJLVe6vcTBz6afBQrDfBj2ndQUEePyVLaw,,&typo=1



https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.sqlworks.co.uk&c=E,1,kdJQqj4g_TOoDLZbRySuz72T0-zXgvueEhHUicYKMt4sYGD9KvwmyFoH2fyhugKZCUCw82RzOs_HYiq7DM1zSZS_U2kb9e-pGA5IXL6MRZPE9tgLDoEc&typo=1
<
https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.sqlworks.co%2f&c=E,1,Khg2b_RZg2yVP95Sob3Bg0eQsKJe9fc_3tx4sfEPyn4My8xhDEQWMAH1UjVD4PB2Biofi1xWK3tbWaC3lzioGk7kbrw2iSg6g0eYvRmKLLgLUFAmToZJL4w,&typo=1




_____________________________________________________________
Manage your list subscriptions athttps://
linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,ccsQXIk6PR8_J8nZk2XoBnMSVAJPH7wtbgyQlsm-51jly59XTjab8SykzaxV3Ud2AMX26TKbG_G7ro-pGG0GFPNFW9j6qK0NoqBOAqrVeB9MQw,,&typo=1
Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions athttps://
linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,9I9CXy1BizKB6DwM_fcquu8MlV5AwuDMCEgIVg2b1ItwyQbtXPjFe6Ys__TfhgtJ76VErOEgI_MO7Db1sT630AqSFMgKl1VtOv5vfl34aXJ3e00NmA,,&typo=1
Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions athttps://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,dpvahblFZ_jwbNbBvZCG1UDYdTFg3up3ia33baNN-wfjnU5TyQ7cx46jFN6WENovUgCEDfXVM6-pnP83t1IVoROPNoMPLWDy0Gxa1mdJJTb5H_M,&typo=1
Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,ZqxhzmEPeoxbFfHBIxqx7RzEiXY_fT9RBv2Bd0wyJX9LeXk4DkN4z-R_Ws9GjDuz6m_cAatNrl4ciM2kyFJX8xjc0AQJUQQWQbVciSfsT4iz9TQs&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,W9oVXbchoN_xjuW9kL-8tVwbrmDEzKOHBMqlqlg8Ff_KjFXh_s-Zl_Ei37-FOP5gxaudrFaoMfOgZsi0ZXqaOKcLGmHvYflLsYJLh8-NP1Id-eeSJ1dnyQ,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list