Re: enumerated types: best way to fake them?
Re: enumerated types: best way to fake them?
- Subject: Re: enumerated types: best way to fake them?
- From: John Delacour <email@hidden>
- Date: Fri, 1 Nov 2002 22:54:25 +0000
- Mac-eudora-version: 5.3a8
At 3:34 pm -0500 1/11/02, Michael Sullivan wrote:
My statement here assumes that there is not enumerated type support in
AS, but I don't know that this is accurate. All I know is that searches
on enum, enumerate, etc. in the ASLG failed, and I don't *know* how to
do it already.
FWIW, Eudora uses enumerators quite extensively and so do many
applications. AppleScript does not announce the fact that they are
enumerators, but users of Frontier will be familiar with the
difference between a string4 and an enumerator, between a property or
class and a constant. For example, the status of a Eudora message is
<<constant ****euS!>> or <<constant CSOmeuS!>>
where ! is an ascii character from 1 to 9
tell app "Eudora"
set enum to 9 -- try 1 to 9
set {guiL, guiR} to {ASCII character 199, ASCII character 200}
set c to ASCII character enum
set s to guiL & "constant CSOmeuS" & c & guiR
set varstatus to run script s
set status of message "" to varstatus
get status of message ""
--> sent
end
-- JD
_______________________________________________
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.