Peter Olcott wrote:
> Can this be done in Mac OS, and how is it done?
The answer is that it is the wrong way to do scripting in Mac OS, and
has been the wrong way since the introduction of Apple Events (not to
be confused with Carbon Events!). Apple Events are extensively
do***ented on the Apple developer website, and they have been the only
proper way to sup****t GUI scripting on Mac OS for well over a decade.
If you want to sup****t scripiting, or control another application,
Apple Events are the only way to go.
The outdated method of fiddling with the system event queue has been
discontinued in Carbon, it was previously available under the name
PostHighLevelEvent. Of course, if you insist on shooting yourself in
the foot, you can still fiddle this way with your own application event
queue, as you can post any events to your application event queue
easily, using CreateEvent.
Thorsten
PS: For do***entation, see
<http://developer.apple.com/do***entation/Carbon/Conceptual/Carbon_Event_Manager/index.html>
(Cabon Events) and
<http://developer.apple.com/do***entation/AppleScript/Conceptual/AppleEvents/index.html>
(Apple Events).


|