Re: Do Script and QuicKeys Backgrounder
Re: Do Script and QuicKeys Backgrounder
- Subject: Re: Do Script and QuicKeys Backgrounder
- From: David Blache <email@hidden>
- Date: Mon, 12 Feb 2001 14:32:41 -0600
on 2/12/2001 1:36 PM, Gerry Brush (email@hidden) wrote:
>
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).
Why are you using QuicKeys to do something as simple as open a document in
SimpleText?! You don't need to do all of that work. Just tell SimpleText
to open the document using plain vanilla AppleScript:
tell application "SimpleText" to open file "Metrowerks:Hello World"
-David