...so yes, I'm going to be rude and ask if somebody else could make one for me.

Moderator: Mr_Noodle
tell application "Finder"
set posix_parent_dir to POSIX path of (container of (item theFile) as text)
end tell
return {hazelSwitchFile:posix_parent_dir}