I'm trying to create an archive and place some files on it.
I have created a button to ask for the archive name (to create a new archive) and them I add some file with data to the archive.
My script is not working and no file is created.
Anyone can explain me what am I doing wrong?
Code: Select all
on mouseUp
ask file "Please name your file:"
put (it & ".b2p") into projectPath
answer projectPath
revZipOpenArchive projectPath, "write"
revZipAddUncompressedItemWithData projectPath, "config.xml", "<?xml version='1.0'?>" \
&& "<settings></settings>"
revZipCloseArchive projectPath
end mouseUp
Many thanks
- Miguel Pinto