• 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: Re: Parents/Child Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Parents/Child Scripts


  • Subject: Re: Re: Parents/Child Scripts
  • From: has <email@hidden>
  • Date: Tue, 14 May 2002 12:03:05 +0100

Lachlan Deck wrote:

>my question regarding this topic is whether AS has the ability to
>actually hide it's parameters?
>i.e., can a property be defined as protected or something similar?

No. AS has no concept of privacy. There are no locks on the bathroom doors.


>It seems to me that any property defined is open to mischief...

Methods too. (And script objects.)

To avoid accidents, you should start with a good naming convention. The
simplest might be to precede private names with an underscore, eg:
publicMethod(), _privateMethod(), and then tell users not to use
underscores in their own names - this should be easy enough to remember.
Beyond that, it's a matter of careful design to make sure you don't go
tripping over your own toes. Oh, and make sure you understand how different
things are scoped - knowing where the boundaries exist is important in
doing that careful design.

Perhaps a future version of AS will allow you to make private/public
declarations, just as you can explicity declare local/global scope now.

has


--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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: Parents/Child Scripts
      • From: Timothy Bates <email@hidden>
  • Prev by Date: Re: Checking 2 folders and copy if new
  • Next by Date: Re: Appending a list to a list and getting one list.
  • Previous by thread: Re: Parents/Child Scripts
  • Next by thread: Re: Parents/Child Scripts
  • Index(es):
    • Date
    • Thread