Re: Retrieving properties
Re: Retrieving properties
- Subject: Re: Retrieving properties
- From: Arthur J Knapp <email@hidden>
- Date: Fri, 08 Jun 2001 15:48:32 -0400
>
From: "Goodman, Steve" <email@hidden>
>
Subject: RE: Retrieving properties
>
Date: Fri, 8 Jun 2001 08:34:27 -0500
>
> So is the mounting script a stay-open script application that
>
> is running?
>
yes it is and what you have given me looks great....however it has steered
>
me to this:
>
>
Is it then possible to retrieve the property without the handler in the stay
>
open app? In very quick testing it seems to work fine....just curious if
>
there is something I'm missing.
>
-- Script "Server Mounting"
>
property some_value : true
>
-- some other Script
>
tell application "Server Mounting"
>
if some_value of it = true then
It does work fine. :)
I tend to think in terms of script applications providing "public"
handlers for other scripts to call. It means that you can actually
rewrite the internal structure of the script app without having
to modify scripts that depend on it, (so long as the handler names
don't change).
It's just a question of style, maintainence, etc.
Incidentally, my earlier posting was needlessly wordy, this
is a little better:
property some_value : true
on IsSomeValue()
return some_value -- it's already a boolean
end
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
<
http://developer.apple.com/techpubs/macos8/InterproCom/AppleScriptScripters
/AppleScriptLangGuide/>