• 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
set parent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set parent


  • Subject: set parent
  • From: email@hidden
  • Date: Mon, 5 Aug 2002 17:37:57 -0700

I am getting an error that I can't set parent to <<script>>, and I think
that that's rather odd.

The situation is as follows:

foo.scpt----------------------------------------
property child : ""

on run
set child to load script file "disk:folder:bar.scpt"
tell child to init(me)
end run

bar.scpt--------------------------------------
on init(owner)
set parent to owner
end init


But when I run, I get an error that I "Can't set parent to <<script>>". I
thought that setting parents to scripts was the whole point; obviously, I'm
missing something or setting this up wrong.

Can anyone help?

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
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.

  • Follow-Ups:
    • Re: set parent
      • From: Richard Morton <email@hidden>
  • Prev by Date: Re: With Timeout
  • Next by Date: Re: Need XOR solution
  • Previous by thread: Re: Labels of a Record
  • Next by thread: Re: set parent
  • Index(es):
    • Date
    • Thread