Answer Folder Breaking on Long Folder names in OSX --Help!
katir at hindu.org
Thu Dec 21 16:46:35 EST 2006
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
return the longfilepath of pPath
now stored in my trusty "Scripter's Scrapbook"
where I found another, more complex
raw function for this same duty.
> I've already submitted this as a bug already,
> (#4206 in case you want to vote)
> But rather urgently need a work around.
> Key Ray sent one before for drag and drop.. some PosIx thing..
> And I'm off to see if I find and timplement that for answer folder.
> which is returning hashed strings for long folder names on OSX.
> Any solutions?
> p.s. (mini rant) *really* should get fixed in 2.7.5. Imagine a seasoned
> or naive
> new user coming and finding this... "Oh my....."
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
Get Hinduism Today Digital Edition. It's Free!
More information about the Use-livecode