• 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
Well, I'm Confused...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Well, I'm Confused...


  • Subject: Well, I'm Confused...
  • From: <email@hidden>
  • Date: Tue, 27 Apr 2004 15:00:57 -0400

I thought both values should be "Child Value", since the Child's property
overrides the Parent's property. Silly me.

What am I missing?

script theParent
property zzz : "Parent Value"
on send()
return zzz
end send
end script

on makechild()
script theChild
property parent : theParent
property zzz : "Child Value"
return (theChild)
end script
end makechild

set theChild to makechild()
{theChild's zzz, theChild's send()}

--> {"Child Value", "Parent Value"}

Steve
_______________________________________________
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.


  • Prev by Date: Re: Backing up only new files
  • Next by Date: Posting to a USENET Newsgroup in an Applescript?
  • Previous by thread: busy status
  • Next by thread: Re: Well, I'm Confused...
  • Index(es):
    • Date
    • Thread