Re: Can't type " (ASCII character 34) in a string
Re: Can't type " (ASCII character 34) in a string
- Subject: Re: Can't type " (ASCII character 34) in a string
- From: "jean.luc.bouchard" <email@hidden>
- Date: Fri, 19 Nov 2004 03:39:09 +0000
Hhhhmmm.... Yeah... You are correct.
I think the problem was over here, somewhere between the chair and the
keyboard.
Thank you very much for the answer!
Cheers
JL.
On 19/11/04 2:40, "Matthew Smith" <email@hidden> wrote:
> on 19/11/2004 13:28, jean.luc.bouchard at email@hidden wrote:
>
>> Hey Everyone,
>>
>> I'm fairly new to using AppleScript and I have started using it to create
>> help applications for Shake and Motion, which are visual effects software
>> that Apple makes.
>>
>> I'm working on a configuration App that will write a text file once I've
>> done a couple of queries.
>>
>> In that configuration file, I need to write the character " (or ASCII 34)
>> and I for the life of me, I can't t write it without having \ (or ASCII 92)
>> preceeding it... It won't come on its own.
>>
>> I'm trying the following routine, which quite clearly shows the problem...
>>
>> ---------
>>
>> choose from list {"Academy", "CinemaScope", "Full", "1.85", "HDTV 1080i/p 30
>> FPS", "HDTV 1080i/p 29.97 FPS ND", "HDTV 1080i/p 29.97 FPS DF", "HDTV
>> 1080i/p 25 FPS", "HDTV 1080i/p 24 FPS", "HDTV 1080i/p 23.98 FPS", "NTSC ND
>> (D1 4:3)", "NTSC DF (D1 4:3)", "NTSC ND (16:9)", "NTSC DF (16:9)", "PAL (D1
>> 4:3)", "PAL (16:9)", "PAL (Square)"} with prompt "What is your default
>> working resolution" & return
>>
>> set temp_fn to result as string
>>
>> set fn to "script.format = " & (ASCII character 34) & temp_fn & ";" & (ASCII
>> character 34) as string
>>
>> --------
>
> What you are looking at is the result value in Script Editor or whatever you
> are using to write your script. The value in the result is written as a
> literal string for pasting back into code.
>
> If you added the line:
>
> display dialog fn
>
> You will see that there are no \ in the string.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden