256 char limit on alias path?
256 char limit on alias path?
- Subject: 256 char limit on alias path?
- From: Ryan Hofschneider <email@hidden>
- Date: Mon, 01 Apr 2002 01:01:29 -0800
Howdy all:
Under Mac OS X 10.1.2 I am running an AppleScript like this:
tell application "Finder"
set dir to (folder of the front window)
return dir as alias
end tell
Selecting a folder in the Finder with a "path" with a length of 256
characters (not including last delimiting colon) works:
e.g. will return
alias "Mac OS
X:Users:Ryan:12345678901234567890123456789012345678901234567890:12345678901234567890123456789012345678901234567890:
12345678901234567890123456789012345678901234567890:12345678901234567890123456789012345678901234567890:
1234567890123456789012345678901:"
But any longer "path" will fail with an error: "can't make class
cfol .... into alias".
Is this a well-known problem? Any suggestions for a work around? And
maybe a related question: in my example above, is it possible to coerce
'dir' to a typeFileURL and return that instead?
Thanks,
Ryan
_______________________________________________
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.