• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
256 char limit on alias path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: 256 char limit on alias path?
      • From: John W Baxter <email@hidden>
    • Re: 256 char limit on alias path?
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: Re: Mount Volume woes
  • Next by Date: Re: 256 char limit on alias path?
  • Previous by thread: Re: Re: Mount Volume woes
  • Next by thread: Re: 256 char limit on alias path?
  • Index(es):
    • Date
    • Thread