Interesting….

This is almost something I was needing. However I need to:
1 – select a folder from Finder
2 – store the folder name to say “x”
2 – in that folder “x”, compress all files and sub-folders with path
3 – rename the zip file to x.zip

and I don’t know AppleScript. Can you show me?