• 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: Settings properties from a loaded script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Settings properties from a loaded script


  • Subject: Re: Settings properties from a loaded script
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 08 Jan 2001 11:49:14 -0800

On 1/8/01 11:11 AM, "Bourque, Jason" <email@hidden> wrote:

> Hello,
>
> I am trying to set a multitude of properties via a load script command that
> has a bunch of dialogs for the user.
>
> My problem is that the handlers called are unable to set properties in the
> running script.
>
> Is there another way to set the properties without using the result command?
>
>
> set loadedScript to load script filePath
>
> mySetting() of loadedScript
> set theProperty to the result
>
>

Either:

set loadedScript's theProperty to x


Or you can have an extra handler in the loaded script that does it:

loadedScript's DoSetting(x)

Where DoSetting(n) is

on DoSetting(n)
set myProperty to n
end DoSetting

The first way is simpler.

Either way, don't forget to

store script loadedScript in alias scriptFilePath

when done or the properties won't "take". Maybe that's what you forgot to
do?


--
Paul Berkowitz


References: 
 >Settings properties from a loaded script (From: "Bourque, Jason" <email@hidden>)

  • Prev by Date: MYOB Applescript
  • Next by Date: Re: Line breaks
  • Previous by thread: Settings properties from a loaded script
  • Next by thread: RE: Settings properties from a loaded script
  • Index(es):
    • Date
    • Thread