Re: how to send an <<event XXXXxxxx>> in a script?
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