Re: Variable names on the fly?
Re: Variable names on the fly?
- Subject: Re: Variable names on the fly?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 15 Jan 2001 20:57:31 -0800
On 1/15/01 8:52 PM, I wrote:
>
On 1/15/01 5:24 PM, "Emmanuel" <email@hidden> wrote:
>
>
> At 0:39 +0100 16/01/01, as digestion wrote:
>
>> set monthNum to mMonth of monthProps --ERROR
>
>
>
> What you really mean is:
>
>
>
> ---------------
>
> run script ("set monthNum to " & mMonth & "of monthProps")
>
> ---------------
>
>
>
>
Umm, did you try that, Emmanuel?
Even putting in the missing space before "of" (should be " of"), that is?
The "script" being run doesn't know anything about the variable monthProps
in the main script, so it fails. I tried making a script object, but it
didn't help, though maybe there's a better way than what I tried.
--
Paul Berkowitz