Newish AppleScript bug in Choose File Name
Newish AppleScript bug in Choose File Name
- Subject: Newish AppleScript bug in Choose File Name
- From: Kirk Kerekes <email@hidden>
- Date: Tue, 12 Feb 2002 12:24:14 -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.