Answer Folder Breaking on Long Folder names in OSX --Help!

Klaus Major klaus at major-k.de
Thu Dec 21 16:53:02 EST 2006


Hi Swami,

> Panic over... I found it:
>
> FUNCTION stsLongFilePath pPath
>   SWITCH (the platform)
>   CASE "MacOS"  -- assumes OS X
>     put "set tPath to" && quote & pPath & quote & cr & \
>         "set tPath to (POSIX file tPath) as string" & cr & \
>         "POSIX path of tPath" into tScript
>     do tScript as "AppleScript"
>     return (char 2 to -2 of the result)  -- strips quotes
>     break
>   CASE "Win32"
>     return the longfilepath of pPath
>     break
>   END SWITCH
> END stsLongFilePath
>
> now stored in my trusty "Scripter's Scrapbook"
>  where I found another, more complex
> raw function for this same duty.

but there are a lot more bugs concerning long filenames on OS X!

See nr. 3886 and 4147, but yes this REALLY should be fixed in 2.7.5.



Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list