• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do Script and QuicKeys Backgrounder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
----------------------------------------------------------------------


  • Prev by Date: Re: AppleScript crashes constantly
  • Next by Date: Re: applescript-users digest, Vol 2 #346 - 14 msgs
  • Previous by thread: Re: Do Script and QuicKeys Backgrounder
  • Next by thread: Re: Do Script and QuicKeys Backgrounder
  • Index(es):
    • Date
    • Thread