• 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: how to send an <<event XXXXxxxx>> in a script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to send an <<event XXXXxxxx>> in a script?


  • Subject: Re: how to send an <<event XXXXxxxx>> in a script?
  • From: Emmanuel <email@hidden>
  • Date: Wed, 7 Feb 2001 21:05:10 +0100

At 20:35 +0100 7/02/01, Patrick Wynne wrote:
>Is there any way to send an <<event XXXXxxxx>> using a script? I've
>tried something along the lines of
> tell application "TestApp" to <<event XXXXxxxx>>"paramText"
> tell application "TestApp" <<event XXXXxxxx>>"paramText"
> tell application "TestApp"
> <<event XXXXxxxx>>"paramText"
> end tell

For me, your first try should work.

--------------------- tested
tell application "QuickTime Player" to play movie 1
---------------------

can be rewritten into:

--------------------- tested
set theApp to "QuickTime Player"
tell application theApp to +event MVWRplay; document 1
---------------------

(note in this example that, as AppleScript itself defines +class docu; =
document, "movie" which is QuickTime Player's +class docu;, reads
"document")

Emmanuel


  • Follow-Ups:
    • Re: how to send an <<event XXXXxxxx>> in a script?
      • From: Patrick Wynne <email@hidden>
References: 
 >how to send an <<event XXXXxxxx>> in a script? (From: Patrick Wynne <email@hidden>)

  • Prev by Date: Re: Script Debugger 2.0 or Scripter?
  • Next by Date: QuarkXPress 4.11 and Mac OS 9.1
  • Previous by thread: how to send an <<event XXXXxxxx>> in a script?
  • Next by thread: Re: how to send an <<event XXXXxxxx>> in a script?
  • Index(es):
    • Date
    • Thread