So, let’s cheat by using the terminology of an application known not to have the slightest idea about a "POSIX path":
set tempFolder to (path to documents folder) as text
tell application "System Events"
using terms from application "TextEdit"
POSIX path of tempFolder
end using terms from
end tell
and one now gets the same behavior as with that less convoluted one:
set tempFolder to (path to documents folder) as text
POSIX path of tempFolder
(in both cases, the internal code for POSIX path is now 'psxp')
HTH,
Axel
Thanks Axel
This is a perfect answer : explanation and workaround in a single message.
You made the point.