long path error in Finder -- known bug?
long path error in Finder -- known bug?
- Subject: long path error in Finder -- known bug?
- From: Olof <email@hidden>
- Date: Wed, 13 Mar 2002 11:39:02 -0800
This script produces a garbage result. A known bug, perhaps?
The result is good up to 14 segments. At 15, when the path goes over 256
characters, the result becomes garbage.
- Olof
Preps Engineering Team
ScenicSoft
____
to makeFolderAt(newName, inFolder)
tell application "Finder"
set nf to make new folder at inFolder with properties {name:newName}
return (nf as alias)
end tell
end makeFolderAt
tell application "Finder"
set diskAlias to get startup disk as alias
end tell
set nthFolder to makeFolderAt("long path test15", diskAlias)
repeat with a from 1 to 15
set nthFolder to makeFolderAt("long path test" & a as text, nthFolder)
end repeat
--> alias "5x 5D <p [; 58 FK"
____
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.