• 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
Re: Choose file/folder unicode allergy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Choose file/folder unicode allergy
      • From: Steven Angier <email@hidden>
References: 
 >Choose file/folder unicode allergy (From: Steven Angier <email@hidden>)

  • Prev by Date: Re: File-open wierdness in OS X 10.2
  • Next by Date: string as key to record
  • Previous by thread: Re: Choose file/folder unicode allergy
  • Next by thread: Re: Choose file/folder unicode allergy
  • Index(es):
    • Date
    • Thread