• 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: AppleScript Suite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >AppleScript Suite (From: JJ <email@hidden>)

  • Prev by Date: Re: What is this?
  • Next by Date: Re: [OFF] Info or hoax?
  • Previous by thread: AppleScript Suite
  • Next by thread: Re: AppleScript Suite
  • Index(es):
    • Date
    • Thread