Re: AppleScript Suite
Re: AppleScript Suite
- Subject: Re: AppleScript Suite
- From: Jon Pugh <email@hidden>
- Date: Wed, 17 Oct 2001 15:21:23 -0700
At 9:47 PM +0200 10/17/2001, JJ wrote:
>
Two questions for "C string"
>
>
1.
>
set C_String_Example to "example string" as C string
>
--> <<data cstr6578616D706C6520737472696E6700>>
>
>
set Example_2 to C_String_Example as string
>
--> returns the script object itself, as "me"
>
>
WHY?
>
>
2.
>
How can I "set Converted_To_String to C_String as string"
These are for use in C code, not in AppleScript itself. There is no sensible way to use these in a script.
I'm sure some folks can come up with nonsensical uses, but I doubt they can find a good one.
Basically, a C string is a null terminated string. A Pascal string is preceded by a length byte. Neither of these is used in AppleScript.
Jon