So now the only thing I have to ask is just how to unzip a zip file. I have 3 folders to unzip in the Documents folder. I only need to unzip it into a "Contents" folder inside the documents folder and that's all already. Any help?
Is it confusing? haha. Meaning I have in the documents folder "Content.zip" and a folder named "Contents" where I want to put three of my folders inside the zip file into the folder "Contents"
Oh it's in another card and the Content zip file is already in my documents folder alr.
put (specialFolderPath("engine") & "/Content.zip") into filePath put url ("binfile:" & filePath) into destFilePath put destFilePath into url ("binfile:"& (specialFolderPath("Documents") & "/Content.zip"))
on mouseUp if the environment = "development" then touchEnd 1 send unZip to me in 0 milliseconds end mouseUp
command unZip put specialFolderPath("documents") & "/Content.zip" into TempFile put specialFolderPath("documents") & "/Contents" into TargetFile revZipOpenArchive TempFile, "read ...
Oh ya and there are three folders in my Content.zip now already named "JS", "Images" and "Style" only. Is it possible to extract all three of them at once into the names they should be to the documents folder from the engine folder?
##Edit : Tried answering them one by one on top, only tList isn't ...
repeat with n = 1 to 11 put (specialFolderPath("engine") & "/Content/p"&n&".html") into filePath put url ("binfile:" & filePath) into destFilePath put destFilePath into url ("binfile:"& (specialFolderPath("Documents") & "/Contents/p"&n&".html")) end repeat