• 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: "Bourque, Jason" <email@hidden>
  • Date: Mon, 8 Jan 2001 15:23:37 -0500

Paul,

I sorry there is a misunderstanding. I want to use the loaded script
Variable to set properties in the original script.

Why would you want to store the script?

Jason Bourque

> -----Original Message-----
> From: Paul Berkowitz [SMTP:email@hidden]
> Sent: Monday, January 08, 2001 2:49 PM
> To: Applescript-Users
> Subject: Re: Settings properties from a loaded script
>
> 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
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Settings properties from a loaded script
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Line breaks
  • Next by Date: Re: Create a list of lists?
  • Previous by thread: Re: Settings properties from a loaded script
  • Next by thread: Re: Settings properties from a loaded script
  • Index(es):
    • Date
    • Thread