• 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: Retrieving properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/>


  • Follow-Ups:
    • Re: Retrieving properties
      • From: Larry Nix <email@hidden>
    • Re: Retrieving properties
      • From: Larry Nix <email@hidden>
  • Prev by Date: Newbie Question - Hidden Password
  • Next by Date: Repeat Loop Skipping Items
  • Previous by thread: RE: Retrieving properties
  • Next by thread: Re: Retrieving properties
  • Index(es):
    • Date
    • Thread