Re: Choose file/folder unicode allergy
Re: Choose file/folder unicode allergy
- Subject: Re: Choose file/folder unicode allergy
- From: John Coelho <email@hidden>
- Date: Mon, 16 Sep 2002 13:58:04 -0700
On Thursday, September 12, 2002, at 09:24 PM, Steven Angier wrote:
>
The commands "choose file" and "choose folder" choke on prompts
>
supplied as
>
unicode strings (OS 9.2.1 / AS 1.8.3):
>
>
set thePrompt to "Pick a file, any file." as unicode text
>
choose file with prompt thePrompt
>
--> displays prompt "Choose a file"
>
>
set thePrompt to "Pick a folder, any folder." as unicode text
>
choose folder with prompt thePrompt
>
--> displays prompt "Choose a folder"
>
Known bug (#2836896).
>
>
Under Mac OS X (OS 10.1.5 / AS 1.8.3), the situation is even worse
>
since all
>
string literals are compiled as unicode!
>
>
set thePrompt to "Pick a file, any file."
>
choose file with prompt thePrompt
>
--> displays prompt "Choose a file"
>
>
set thePrompt to "Pick a folder, any folder."
>
choose folder with prompt thePrompt
>
--> displays prompt "Choose a folder"
>
>
This worked for me with 10.2 & 10.1.5 without any plain text coercions.
>
_______________________________________________
>
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.
_______________________________________________
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.