• 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: Starting process and bringing to the front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: [SUMMARY] Re: FileMaker 'create new record @'
  • Next by Date: New Digest Format / List Gnome
  • Previous by thread: Starting process and bringing to the front
  • Next by thread: Re: Starting process and bringing to the front
  • Index(es):
    • Date
    • Thread