Re: Starting process and bringing to the front
Re: Starting process and bringing to the front
- Subject: Re: Starting process and bringing to the front
- From: Michelle Steiner <email@hidden>
- Date: Mon, 30 Oct 2000 15:06:09 -0800
On 10/30/00 2:50 PM, Martin A. Shields <email@hidden> wrote
>
tell application "QuickTime Player"
>
launch
>
open file "Misc:Movies:world.mov"
>
set looping of movie "world.mov" to true
>
present movie "world.mov" scale current
>
quit
>
end tell
>
>
It does almost all I want: starts the player, opens the movie, and presents
>
it. However, the movie plays *behind* other windows, not in front.
>
>
Has anyone any idea how I might be able to force it to the front?
Yes; the key is "activate". Launch is unnecessary because the tell
command will launch the application.
tell application "QuickTime Player"
activate
open file "Misc:Movies:world.mov"
set looping to true
present movie scale current
quit
end tell
I had to remove the name of the movie from looping and present to get it
to work, though.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------