• 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: "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.

  • Prev by Date: Set t to true as boolean
  • Next by Date: Re: Setting Script Editor Application
  • Previous by thread: Linked variables
  • Next by thread: QuickTime movie frame rate or duration (in time scale) of a frame
  • Index(es):
    • Date
    • Thread