RE: AS adoption barriers
RE: AS adoption barriers
- Subject: RE: AS adoption barriers
- From: John W Baxter <email@hidden>
- Date: Mon, 24 Sep 2001 17:32:27 -0700
At 7:55 +1000 9/25/2001, Tony Ryan wrote:
>
Apple have a pretty good site being developed, but bunnies like me need
>
comprehensive resources AND desperately want Apple to make the Chooser
>
scriptable.
The Chooser is fast fading from the scene. It's last real job is creating
desktop printers (and selecting broken printers whose drivers don't
understand desktop printing). That job is gone in Mac OS X...moved to
Print Center which is scriptable (or at least has a dictionary...I haven't
tried to script it). AARGH...it's another scripting lashup done by
non-AppleScript folks, it would seem. null-terminated strings?!?!?!
[Our character set lacks the interrabang, unfortunately...and Eudora's
spell checker hasn't much of a clue: top suggestion is "interfacing".]
Below.
Network browser has taken over that function; the AppleTalk control panel
has taken over turning AppleTalk on and off (which Chooser hasn't ever done
correctly under OpenTransport...it amazes me that Apple writes Tech Notes
(now TIL articles) about that rather than taking the checkbox away. We're
talking about "since Mac OS 7.5.x".
Don't expect Chooser to learn any new tricks.
Print Center's dictionary:
PrintCenter Suite : PrintCenter-specific Apple Events.
Show Queue: Sent when user wants to view a queue. Expects to receive the
queue name as a C string.
Show Queue
[Queue Name string] -- Name of print queue. This is a
NULL-terminated ASCII string.
Queue Error: Sent when an error has occurred in a queue. Expects to receive
the queue name as a C string.
Queue Error
[Queue Name string] -- Name of print queue. This is a
NULL-terminated ASCII string.
Print Dialog Browse Request: Sent when PrintCenter is launched by the Print
Dialog to allow user to browse for printers.
Print Dialog Browse Request
Print Job Started: Sent by Print Job Creator when PrintCenter is launched
because a print job has been initiated.
Print Job Started
[Queue Name string]
Test Event: Test message.
Test Event
Required Suite : Terms that every application should support
close: Close an object
close reference -- the objects to close
[saving yes/no/ask] -- specifies whether or not changes should be
saved before closing
[in alias] -- the file in which to save the object
Standard Suite : Common terms for most applications
close: Close an object
close reference -- the objects to close
[saving yes/no/ask] -- specifies whether or not changes should be
saved before closing
[in alias] -- the file in which to save the object
Class application: An application program
Elements:
window by numeric index, by name, before/after another element
document by name
Class window: A Window
Properties:
bounds bounding rectangle -- the boundary rectangle for the window
closeable boolean [r/o] -- Does the window have a close box?
titled boolean [r/o] -- Does the window have a title bar?
index integer -- the number of the window
floating boolean [r/o] -- Does the window float?
modal boolean [r/o] -- Is the window modal?
resizable boolean [r/o] -- Is the window resizable?
zoomable boolean [r/o] -- Is the window zoomable?
zoomed boolean -- Is the window zoomed?
name international text -- the title of the window
visible boolean [r/o] -- is the window visible?
position point [r/o] -- upper left coordinates of window
Class document: A Document
Properties:
name international text [r/o] -- the title of the document
modified boolean [r/o] -- Has the document been modified since the
last save?
--
John Baxter email@hidden Port Ludlow, WA, USA