creating an archive in applescript

how do you create an archive (essaintally making a .zip file) in applescript? i have tried doing


tell application "Finder"
make (archive of x)
end tell

but it treats “archive” as a variable. does anyone know the non-variable equivalent?

this has been solved here: other thread