Re: Do Script and QuicKeys Backgrounder
Re: Do Script and QuicKeys Backgrounder
- Subject: Re: Do Script and QuicKeys Backgrounder
- From: Gerry Brush <email@hidden>
- Date: Mon, 12 Feb 2001 14:54:12 -0600 (CST)
Mon, 12 Feb 2001 14:32:41 David Blache <email@hidden> wrote:
>
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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
Sorry for the confusion. I'm not actually running that script; it was just an
example of the problem. I'll put it another way. I want to do this:
tell application "QuicKeys Backgrounder"
Do Script "AppSwitcher \"[some app]\"
Wait Application \"[some app]\"
[do many lines of QuicKeys scripting
...
]"
end tell
My problem is only the first line (AppSwitcher) ever gets executed and the
remaining lines are skipped over.
How can I run a multiline QuicKeys script using Do Script?
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
----------------------------------------------------------------------