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


References: 
 >Do Script and QuicKeys Backgrounder (From: Gerry Brush <email@hidden>)

  • Prev by Date: Re: ASCII questions
  • Next by Date: Re: AppleScript crashes constantly
  • Previous by thread: Do Script and QuicKeys Backgrounder
  • Next by thread: Re: Do Script and QuicKeys Backgrounder
  • Index(es):
    • Date
    • Thread