Re: public vs private? [Re: Parents/Child Scripts]
Re: public vs private? [Re: Parents/Child Scripts]
- Subject: Re: public vs private? [Re: Parents/Child Scripts]
- From: has <email@hidden>
- Date: Wed, 15 May 2002 11:37:40 +0100
I 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?
>
>
>
>A run only applet offers such protection.
>
>
From a brief test, it appears a run-only prevents external access to any
>
of its properties. You can still access any top-level handler/method you
>
like (presumably you won't be able to access methods wrapped in script
>
objects; I haven't tested this theory though). Would anyone like to
>
yea/nay any of this before I assume it to be correct?
Somebody mailed me off-list about my above statement - I don't think
they'll mind me reposting their message here:
--------------
I'll nay. I had no trouble getting/setting properties of a run only script
(either loading it, or running it. (10.1.4, 1.8.2):
The run only script:
property spud : "Hello"
The test script:
load script file "Mac OS X:Users:foo:Library:scripts:run only testapp"
returning mike
set spud of mike to "abc"
spud of mike
--> "abc"
tell application "Mac OS X:Users: foo:Library:Scripts:run only testapp"
set spud to "xyz"
spud
end tell
--> "xyz"
--------------
Hey-ho. Scratch another "bright" idea then. ;p
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.