Problem with «Posix path» on Snow Leopard…

Hi everybody,

I have a strange problem with Mac OS X 10.6.3:


set pp to "Macintosh HD:Users:martin:Desktop:Logs:" as text
POSIX path of pp
-- returns "Macintosh HD:Users:martin:Desktop:Logs:"

Everytime the path ends with Logs, it doesn’t return the Posix path.

This one works:


set pp to "Macintosh HD:Users:martin:Desktop:Logsi:" as text
POSIX path of pp
-- returns "/Users/martin/Desktop/Logsi/"

Both paths do not yet exist.

Do you also encounter this problem?

Weird greetings from Germany,

Martin

Hi Martin,

I don’t have Snow Leopard, but does the relative path work?

set pp to POSIX path of (path to desktop) & "Logs/"

It works for me. Weird. Maybe you should restart? Reinstall? :open_mouth:

Yes, this code returns “/Users/martin/Desktop/Logs/”. I really don’t understand the problem…

It’s the first time I am really puzzled about AppleScript.


set pp to (path to desktop)
set pp to (pp & "Logs:" as text)
POSIX path of pp
-- returns "Macintosh HD:Users:martin:Desktop:Logs:"

I already restarted my MacBook Pro. But it also happens on my other Macs and at work :frowning:

I will try to set the language settings to English now, maybe the bug is only “available” in the German localization…*

  • Switching the language did not help…

Weird, Martin;

This works for me on a MBP (early 2008) OS X 10.6.3:

set pp to POSIX path of "ACB-MBP:Users:adambell:Desktop:Logs"

Found a workaround, but the problems still bugs me :expressionless:


set pp to (path to desktop)
set pp to (pp & "Logs:" as text)
POSIX path of (file pp)
-- returns "/Users/martin/Desktop/Logs/"

i don’t see the problem.
Personally I´m always using the syntax in post #2, then the problem will never occur