set parent
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.