Re: Weird info for/choose file prompt issue
Re: Weird info for/choose file prompt issue
- Subject: Re: Weird info for/choose file prompt issue
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 06 Apr 2003 19:44:45 -0700
On 4/6/03 3:50 PM, "Brennan" <email@hidden> wrote:
>
On Sun, 06 Apr 2003 06:59:49 -0700, Paul Berkowitz
>
<email@hidden> wrote:
>
>
> 'Choose file' needs _plain text_.
>
>
I understand this, but... why? Isn't that completely stupid? Why haven't
>
they updated this command?
I'm sure they will.
>
>
> What you get when you coerce
>
> Unicode text 'as string' is 'international text', a type of
>
> styled text.
>
>
Worse than that. 'as plain text' compiles to 'as string'. ARRGH!
>
>
Thanks for the handler.
>
>
Maybe there's another hack. Can we somehow use the raw code for 'plain
>
text'? (I tried - unsuccessfully - to use <<class ctxt>> with run script).
>
>
Is there any way that we could that prevent it from compiling to 'string'.
No. I alrweady provided the methid. It's the only one that works except
when, as John says, the original is "true Unicode" not coerceable to
international text. No one's forcing you o use the handler, you can do it in
your main script if you insist.
set someFile to choose file with prompt "test one"
set inf to (info for someFile)
set fName to (name of inf) as string
try
set fName to ((fName as record)'s <<class ktxt>>)
end try
set prmpt to "Test Two " & fName
choose file with prompt prmpt
--
Paul Berkowitz
_______________________________________________
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.