AnsweredAssumed Answered

how to zip a dynamic folder using a calculated applescript?

Question asked by thegamechanger on Feb 12, 2018
Latest reply on Feb 14, 2018 by user19752


I have written a script to export a series of container fields to an applescript-created folder on the client's desktop.

I could really use some help writing the "calculated applescript" to zip this newly created folder.   It's only the applescript I'm having issues with - specifically the shell script portion.


"set the_src to \"" & Payrolls::JobNamefilepath & "\"¶

set the_src to quoted form of POSIX path of the_src¶


set the_dest to \"" & Payrolls::JobNamefilename & "\"¶

set the_dest to quoted form of POSIX path of the_dest¶


do shell script \"zip  -jr  the_dest . -i the_src\""



The zip file name = Payrolls::JobNamefilepath = Get (DesktopPath) & JobName & ".zip"

The file to be zipped = Payrolls::JobNamefilename =  Get (DesktopPath) & JobName


The JobName and DesktopPath vary on the Job and the user so using Native Applescript is not an option (which is unfortunate since I have no issues scripting that.


I would be MOST appreciative of ANY tips on the proper scripting for the shell script command.


I am not interested in using a plug-in as I don't want to pay for it and I am sure this can be done without one.