Re: Retrieving properties
Re: Retrieving properties
- Subject: Re: Retrieving properties
- From: Larry Nix <email@hidden>
- Date: Tue, 12 Jun 2001 16:28:12 -0400
- Organization: AIS Computers
The property flags a mounted volume right?
tag a little handler or test that simply checks for the presence of the mtd
volume and clips over to a timer loop to repeat the check at intervals
until the
mtd volume is available for the script in question - no timeout, just a patient
agent.
Arthur J Knapp wrote:
>
> 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/>
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
[demime 0.98b removed an attachment of type text/x-vcard which had a name of l.nix.vcf]