Get path of parent folder of script location : Applescript

Try:

set UnixPath to POSIX path of ((path to me as text) & "::")

You should run the script from within a 'Tell Block' like:


tell application "Finder"
get path to me

set a to container of the result
return (a as alias)
-- Or just get the name of the Parent Container like;
set b to name of a
return b
end tell