Hi,
In an Automator workflow, you can use this script into the "Run AppleScript" action.
----
on run {input, parameters} -- script for Automator
-- create an archive in the parent folder, it use the name of the folder, it overwrite an existing archive and return the path of the archive
return fileZipper(item 1 of input) -- input is a list and it contains the path of the folder
end run
on fileZipper(thisItem)
set tPath to thisItem as text
if tPath ends with ":" then
set oTid to text item delimiters
set text item delimiters to {":"}
set tPath to text 1 thru text item -2 of tPath
set text item delimiters to oTid
end if
set zipFile to (tPath & ".zip") as text
do shell script "/usr/bin/ditto -c -k -rsrc --keepParent " & (quoted form of POSIX path of tPath) & " " & quoted form of POSIX path of zipFile
return zipFile as alias
end fileZipper
-----
This script create a new archive or overwrite an existing archive with the same name that the folder.
The destination is the parent folder of your selected folder.
if you want to move this archive to a specific folder, add the "Move Finder Items" action after the "Run AppleScript" action.