• 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: Philip Aker <email@hidden>
  • Date: Tue, 18 Mar 2008 10:04:48 -0700

On 08-03-18, at 09:52, Christopher Nebel 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.

We solved this off list. It was a 'get' thing.


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@




_______________________________________________ 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
References: 
 >OOP - Factory Scripts (From: Jens Heimer <email@hidden>)
 >Re: OOP - Factory Scripts (From: Philip Aker <email@hidden>)
 >Re: OOP - Factory Scripts (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: When does "item x of" auto-iterate?
  • Next by Date: Re: InDesign CS2, XML, and graphics
  • Previous by thread: Re: OOP - Factory Scripts
  • Next by thread: extract URL from general text
  • Index(es):
    • Date
    • Thread