Re: OOP - Factory Scripts
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