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

Re: Linked variables


  • Subject: Re: Linked variables
  • From: JJ <email@hidden>
  • Date: Wed, 20 Feb 2002 18:58:35 +0100

>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
_______________________________________________
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.

  • Prev by Date: Re: Setting Script Editor Application
  • Next by Date: Re: Setting Script Editor Application
  • Previous by thread: Linked variables
  • Next by thread: Linked variables
  • Index(es):
    • Date
    • Thread