exTant(_path) # Takes an HFS, Posix, or ~/Posix path as input.
-------------------------------------------------------------------------------------------
--ยป HANDLERS
-------------------------------------------------------------------------------------------
on exTant(_path) # Takes an HFS, Posix, or ~/Posix path as input.
try
if _path is "~" or _path is "~/" then
set _path to (POSIX path of (path to home folder as text))
else if _path starts with "~/" then
set _path to (POSIX path of (path to home folder as text)) & text 3 thru -1 of _path
end if
if _path starts with "/" then
alias POSIX file _path
else
alias _path
end if
return true
on error
return false
end try
end exTant
-------------------------------------------------------------------------------------------