• 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: AS data types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS data types


  • Subject: Re: AS data types
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 23 Jan 2002 18:00:09 -0500
  • Organization: [very little]

> Date: Wed, 23 Jan 2002 14:19:51 -0500
> Subject: AS data types
> From: Michael Turner <email@hidden>
> To: email@hidden
>
> Does AS provide any technique of reflection for data types (I think it
> is called that). I would like to ask a variable what data type it
> contains. Is this possible? Is there any way to know if I have a valid
> string?

set varClass to class of variableName

try
variableName as text
on error
display dialog "variableName can't be coerced to a string"
end try

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/23/02 5:59:43 PM]


  • Prev by Date: Re: AppleScript Logo
  • Next by Date: Re: Dismissing dialog box (location manager)
  • Previous by thread: Re: AS data types
  • Next by thread: Re: Problem with filenames containing Kanji chars
  • Index(es):
    • Date
    • Thread