Paths, Aliases, Containers

I’m trying to get the container of a file I’ve dropped onto a droplet, but I keep getting an error:

Here is my code:

set save_folder to (container of (path to item 1 of these_items))

This doesn’t work either:

set save_folder to (container of (path to item 1 of these_items)) as string

What am I doing wrong?

Hi,

only the Finder and System Events know, what a container is

tell application "Finder" to set save_folder to container of item 1 of these_items

Note: no path to

Thank you!