• 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
Newish AppleScript bug in Choose File Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newish AppleScript bug in Choose File Name


  • Subject: Newish AppleScript bug in Choose File Name
  • From: Kirk Kerekes <email@hidden>
  • Date: Sat, 09 Feb 2002 17:09:45 -0600

Conditions:
--------------------
OS9.2.2 w/ CarbonLib 1.5, AS 1.7 & whatever mods are installed to use it as
"CLASSIC" under 10.1.2

No non-Apple OSAXen
---------------------

I don't assert that I have explored this extensively.

I say it is "new" because scripts that used to work correctly started
breaking under these specific circumstances:

If Choose File Name is used with a "default name" parameter which points to
(or through) an alias-to-folder, the dialog correctly displays the resolved
location, but the file path returned is _missing_ the last folder (the
actual alias target).

Example:
set tfile to choose file name default name "BOOT:bug:tfolder:test.txt"
return tfile as string

-- where tfolder is actually an alias to folder:

BOOT:bug:tEnclosing folder:tfolder:

yields:

"BOOT:tEnclosing folder:test.txt"

- instead of the proper:

"BOOT:tEnclosing folder:tfolder:test.txt"

It would be one thing if the function simply didn't resolve the alias
correctly, BUT IT DOES, because the dialog correctly displays the initial
destination for the file as being "BOOT:tEnclosing folder:tfolder:test.txt".

It simply _returns_ something rather different and less useful.
_______________________________________________
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.

  • Prev by Date: Newish AppleScript bug in Choose File Name
  • Next by Date: resume afp downloads
  • Previous by thread: Newish AppleScript bug in Choose File Name
  • Next by thread: Re: Newish AppleScript bug in Choose File Name
  • Index(es):
    • Date
    • Thread