Do Script and QuicKeys Backgrounder
Do Script and QuicKeys Backgrounder
- Subject: Do Script and QuicKeys Backgrounder
- From: Gerry Brush <email@hidden>
- Date: Mon, 12 Feb 2001 13:36:34 -0600 (CST)
I need to use Do Script to send a multi-line QuicKeys script to the QuicKeys
Backgrounder. Unfortunately, only the first line of the QuicKeys script is
executed. Here is a simple-minded example of the problem:
tell application "QuicKeys Backgrounder"
Do Script "AppSwitcher \"SimpleText\"
Wait Application \"SimpleText\"
Menu \"Open\" Exactly From \"File\"
Wait Window Name_Is \"\" Dialog
TypeText \"Hello World\"
Button \"Open\"
Pause 0.5"
end tell
The script switches to SimpleText but does nothing else (no error, no message).
The script works if I call Do Script for each line, but is too slow to be
usable:
tell application "QuicKeys Backgrounder"
Do Script "AppSwitcher \"SimpleText\""
Do Script "Wait Application \"SimpleText\""
Do Script "Menu \"Open\" Exactly From \"File\""
Do Script "Wait Window Name_Is \"\" Dialog"
Do Script "TypeText \"Hello World\""
Do Script "Button \"Open\""
Do Script "Pause 0.5"
end tell
What am I doing wrong here?
Gerry
----------------------------------------------------------------------
Gerry Brush Tel: (210) 258-9613
Department of Genetics Fax: (210) 670-3317
Southwest Foundation for E-mail: email@hidden
Biomedical Research
P.O. Box 760549
San Antonio, TX 78245-0549, USA
----------------------------------------------------------------------