• 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: Error Number: -10006 H-E-L-L-L-P!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error Number: -10006 H-E-L-L-L-P!


  • Subject: Re: Error Number: -10006 H-E-L-L-L-P!
  • From: Michael Terry <email@hidden>
  • Date: Fri, 23 Jan 2004 18:09:36 -0800

On Jan 23, 2004, at 4:20 PM, Axel Luttgens wrote:

Michael Terry wrote:

On Jan 22, 2004, at 10:55 AM, Wallace, William wrote:

[...]



Do these loaded scripts have parent property declarations in them somewhere? I don't see them here, but you refer to the calling script as if you had. I assume you must have, else your main script should be getting lots of errors. Unless otherwise specified, the parent script of a loaded script is <<script AppleScript>>.


Well... If I save this as a script:

-- Script1
on doThis()
return my name
end

and run this from within Script Editor:

set S to load script alias "path:to:Script1"
S's doThis()

the result I get is:

"Script Editor"

In fact, a script's default parent is the default target application
(this is what the ASLG tells).


You get that result because <<script AppleScript>> doesn't have a name property so AS continues looking up the inheritance chain until it finds an object that does or fails.

You can see a script's parent by just typing 'parent' in a new script window and hitting run. The default target application is actually the grandparent.


Mike
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Error Number: -10006 H-E-L-L-L-P! (From: "Wallace, William" <email@hidden>)
 >Re: Error Number: -10006 H-E-L-L-L-P! (From: Michael Terry <email@hidden>)
 >Re: Error Number: -10006 H-E-L-L-L-P! (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: styled text to record, ok. But record to styled text?
  • Next by Date: Re: styled text to record, ok. But record to styled text?
  • Previous by thread: Re: Error Number: -10006 H-E-L-L-L-P!
  • Next by thread: Re: Error Number: -10006 H-E-L-L-L-P!
  • Index(es):
    • Date
    • Thread