Re: Bounding Rectangle [and data type Rect]
Re: Bounding Rectangle [and data type Rect]
- Subject: Re: Bounding Rectangle [and data type Rect]
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 29 Jul 2002 01:44:14 -0700
I'm dipping into AppleScript Studio, whose dictionary is both enormous and
currently quite bare of definitions. You get the syntax, with almost no real
definitions. 'bounds' are properties of quite a lot of objects there, and I
wanted to make sure i had the ordering right, and to check whether it's four
separate integers in one list or two pairs of two-member lists, etc. If the
ASLG is prepared to define 'integer', 'string' 'list', it should not be
beyond its attention to also define 'bounding rectangle' and all other data
types it uses, but I couldn't find it anywhere.
All these definitions should be easily available to scripters, preferably in
the way that the Visual Basic Editor makes its language definitions
available. Since Script Editor and all other AppleScript editors have an
excellent and simple method of exposing application and osax dictionaries,
it should add its own and do it properly. I almost gave up AppleScript
before I started because one very famous guru tried to tell me that
scripters didn't need to know all of AppleScript's terms and I should just
forget about it. (Don't ask, I'm not getting into all that again, it still
makes me mad.)
In any case, it ought to be in the ASLG.
--
Paul Berkowitz
>
From: email@hidden
>
Date: Mon, 29 Jul 2002 04:24:11 EDT
>
To: email@hidden
>
Cc: email@hidden
>
Subject: Re: Bounding Rectangle [and data type Rect]
>
>
Yes, my bad. It is [x1, y1, x2, y2] in all languages. Sorry...
>
>
Or in theory, if pixel "a" has a coordinate location of x1,
>
y2 and pixel "b" has a coordinate location of x2, y2,
>
then the rect is formed by pixel "a" at the top left corner
>
and pixel "b" at the bottom right.
>
>
I guess the powers that be figured that anyone delving into
>
quickdraw far enough to require the rect data type would
>
know it's concept by virtue that even the most rudimentary
>
assembler-based programming language (C/C++/Pascal/VIP
>
Basic/Future Basic) explains the rect as part of the
>
introduction to programming, as a mandatory concept of
>
creating a window for your output (or for drawing a box,
>
including a dialog box).
>
>
So, now my question becomes (maybe I didn't read your past
>
posts in detail enough), why did you suddenly find yourself
>
in need of the rect data type?
>
>
=-= Marc
>
>
Marc Wrote:
>
>> Bounding Rectangle (X1,X2,Y1,Y2)
>
>
Paul Wrote:
>
> Except it's given in AppleScript as {X1, Y1, X2, Y2}, yes?
_______________________________________________
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.