• 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: Property Parent : load script (Changing File)???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property Parent : load script (Changing File)???


  • Subject: Re: Property Parent : load script (Changing File)???
  • From: Jason Bourque <email@hidden>
  • Date: Wed, 16 Jan 2002 20:03:54 -0500

Sorts? I meant "Sort of a library" just a saying.

And I tried a Library Server but it fell apart at

Tell app "Script1" to Tell app "Script 2" to tell app "Library Server" to
useAHandler()

I think it has a depth problem.

Thanks,

Jason Bourque


On 1/16/02 7:05 AM, "Serge Belleudy-d'Espinose" <email@hidden> wrote:

>
> You don't have to use run script. Just design a handler that will load the
> newest version of your library, then set your property to the handler's
> result.
>
> --
>
> to findNewestHandler()
> set newestHandler to missing value
>
> -- stuff to find the newest handler and load it as newestHandler
>
> return newestHandler
>
> end findNewestHandler
>
> property parent : findNewestHandler()
>
> --
>
> Also make sure to put the handler definition _before_ the property or your
> script won't compile.
>
> Note #1: are you sure you want to load the library at compile time? sure, it
> helps for the parent thing but you will have to compile your script again
> everytime the library changes. If you forget about the parent, there are other
> approaches based on applications acting as library servers, that allow for
> real-time library change.
>
> Note #2: what are the sorts you want to put in that library?


References: 
 >Re: Property Parent : load script (Changing File)??? (From: "Serge Belleudy-d'Espinose" <email@hidden>)

  • Prev by Date: Re: Property Parent : load script (Changing File)???
  • Next by Date: Re: Software design, beta testing, and the like
  • Previous by thread: Re: Property Parent : load script (Changing File)???
  • Next by thread: Re: Known Issues with AppleScript 1.7 (Mac OS 9.2.2) and 1.8.1 (MacOS X 10.1.2)
  • Index(es):
    • Date
    • Thread