• 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: OOP - Factory Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OOP - Factory Scripts


  • Subject: Re: OOP - Factory Scripts
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 18 Mar 2008 09:52:23 -0700

On Mar 18, 2008, at 3:15 AM, Philip Aker wrote:

On 08-03-18, at 02:40, Jens Heimer wrote:

Could somebody explain me why, when traiing tu run my testfile the script editor tells me that documentListe doesn’t know an add Handler? It all worked fine, until i tried to seperate it in different files...

For starters, this part doesn't look good to me:

property UtilityFactory : load script file "Macintosh HD:Users:Jens:Desktop:DevFramework:Utilities:UtilityFactory.scpt"
property ObjectFactory : load script file "Macintosh HD:Users:Jens:Desktop:DevFramework:Objects:ObjectFactory.scpt"

Try this first:

property UtilityFactory : load script "Macintosh HD:Users:Jens:Desktop:DevFramework:Utilities:UtilityFactory.scpt"
property ObjectFactory : load script "Macintosh HD:Users:Jens:Desktop:DevFramework:Objects:ObjectFactory.scpt"

No, the "file" belongs there. It's a file object specifier. It's possible in some cases to use a plain string instead of a file object specifier, but I don't encourage it. (If the "file" were wrong, the script would have failed on the first line of the "run" handler.)


It's hard to say what's wrong without seeing the relevant bits of the "Factory" scripts. I'd guess that an explicit "tell somebody to add..." would straighten things out, considering that it worked before -- I expect your messages are not getting sent where you thought they were.


--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: OOP - Factory Scripts
      • From: Philip Aker <email@hidden>
References: 
 >OOP - Factory Scripts (From: Jens Heimer <email@hidden>)
 >Re: OOP - Factory Scripts (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Toxic Soup and Enough for all
  • Next by Date: Re: When does "item x of" auto-iterate?
  • Previous by thread: Re: OOP - Factory Scripts
  • Next by thread: Re: OOP - Factory Scripts
  • Index(es):
    • Date
    • Thread