I have a script where I am copying a zip file to a folder. Then renaming the zip file and then opening the zip file. I would assume that by renaming the zip file before opening or unarchiving it that the folder created by the unarchiving process would be the new file name. However, It seems as if since the upgrade to Mac OS X the unarchiving process is getting the name that the file was initially.
on CopyandUnZipFile(fileStructureToCustomerOrder, theFile, theFileName)
tell application "Finder"
copy file (theFile as string) to folder (fileStructureToCustomerOrder as string)
copy file (theFile as string) to folder (fileStructureToCustomerOrder & "Template:" as string)
set RenameFile to (fileStructureToCustomerOrder & theFileName) as alias
set the name of RenameFile to "Proofs.zip"
set FiletoOpen to fileStructureToCustomerOrder & "Proofs.zip"
open FiletoOpen as alias
end tell
end CopyandUnZipFile
Your help would be VERY appreciated