• 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: Richard 23 <email@hidden>
  • Date: Mon, 8 Jan 2001 21:11:18 -0800

>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?

This is what I was ranting about the other day...getting loaded script
objects
to be able to run in the context of the loader.

>set loadedScript to load script filePath

>mySetting() of loadedScript
>set theProperty to the result

You could shorten that to

tell loadedScript to set theProperty to mySetting()

or

tell (load script file filePath) to set theProperty to mySetting()

When you have several properties you would like to get, why not construct
your loaded script so that it ends with a return statement, returning all
the properties you're going to use? Then you would use run script instead
of load script. Useful if it's a one-time grab.

R23


  • Prev by Date: Re: Create a list of lists?
  • Next by Date: Signing off
  • Previous by thread: Re: Settings properties from a loaded script
  • Next by thread: default buttons for dialog boxes
  • Index(es):
    • Date
    • Thread