Below is my action script. It is failing on “extract /Applications/“program a.zip” -d /Applications”. I need to unzip the program a.zip into the applications folder. Does anyone have any suggestions?
continue if { (size of it = 1819415 and sha1 of it = “73c060ecc5f0c17a156b725a6133831277d7462c”) of file “big438B.tmp” of folder “__Download”}
extract big438B.tmp
if {not active of action OR exists file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}
delete “{pathname of file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}”
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
else
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
oh also, the extract command won’t work on zip files. You’ll need to use a third party decompression tool, or instead of uploading your zip file through the software distribution wizard, point it at the extracted files and it will compress them for you (into a big1234.tmp) file. The ‘extract’ command will work on the resultant .tmp file.
Thank you so much for your help so far. The reason why I compressed it was because the extracted files I’m attempting to place in the Application folder is an .app application. The issue that I’m having is BigFix (I beleive it’s more of a Windows issue) will not compress/zip .app.
If I select File with the Mac Software Deployment Wizard it views the .app as a folder.
If I select Folder (including Subfolders) I get an “An error was encountered while preparing the download for this task. Please check the file path, folder path, or URL you specified. Class DirectoryNotFoundError”
I even attempted to place the .app into a folder then that select folder, but I get the same error.
Interesting… I just tried to use the Mac Software Deployment wizard using a .app file of my own and it worked fine. All I did was provide the path to the .app file and checked the ‘include subfolders’ option.
If you want to distribute the zip file, you can try that and use OS X’s built in commandline ‘unzip’ tool. Unfortunately I don’t know if unzip is included on all distributions.
Interesting… I just tried to use the Mac Software Deployment wizard using a .app file of my own and it worked fine. All I did was provide the path to the .app file and checked the ‘include subfolders’ option.
If you want to distribute the zip file, you can try that and use OS X’s built in commandline ‘unzip’ tool. Unfortunately I don’t know if unzip is included on all distributions.
Jesse
I see why mine wont compress now. Windows gives me an error that ._Iconcan't be compressed because it includes characters that can't be used in a compressed folder, such as (appears to be some sort of bold period)
I get an invalid action script error, “Unable to parse action script for Action1 line 10: Unknown action command.”
However, I know the command does work in the Mac OSX terminal. I know there’s a way to pass a command to a command prompt in Windows (runhidden cmd.exe /c). Is it possible to do the same in Mac OSX something to the effect of