(POSIX file "/System") as text
(POSIX file "/System1") as text -- A non existing item (file or
(POSIX file "/Volumes/Data") as text
(POSIX file "/") as text
Clearly, the boot disk appears as an exception wrt file -> string
coercion in AppleScript: differing conventions are applied
according to the target. This is perhaps a very desirable behavior,
but unless clearly justified and stated in the language definition,
it tends to appear at least slightly inconsistent.
I don't see any exception.
If the passed Unix path ends with a slash, we get an HFS path ending
with a colon.
If the passed Unix path doesn't end with a slash, we get an HFS path
without an ending colon.
It seems to be coherent.
Yvan KOENIG (from FRANCE samedi 20 décembre 2008 19:33:56)
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: