Re: Linked variables
Re: Linked variables
- Subject: Re: Linked variables
- From: "Romulus Barabas" <email@hidden>
- Date: Wed, 20 Feb 2002 14:41:31 -0500
---------------------------------------------------
>set ls to "N/A"
>set SizesDialog to {value:ls}
>set ls to 23
>SizesDialog
>result ---> {value:"N/A"}
>
> Because in the real script SizesDialog is a very big thing (Dialog
Director
> box definition) which includes several ls-es it is not practical to
repeat
> defining it every time ls is changing. Is there any way to have
SizesDialog
> update itself?
>
> Thanks,
> Romy
You must update the value you wish preserve (the record "SizesDialog"):
set SizesDialog to {value:20}
set value of SizesDialog to 40
-- or -> set value of SizesDialog to some_variable
SizesDialog
--> {value:40}
JJ
----------------------------------------------------------------------
This is exactly what I'm trying to avoid. As I was saying, SizesDialog is a
big record containing 6 variables like ls and I need a repeat loop if I were
to update just the value property of it. I guess the best way to go is to
define a handler for setting SizesDialog and call it each time a value
changes.
Romy
_______________________________________________
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.