Setting a QuickTime to full screen in AppleScript?

Discussion in 'Mac Programming' started by hotwire132002, Apr 12, 2005.

  1. macrumors 65816

    hotwire132002

    Joined:
    Jan 24, 2004
    Location:
    Cadillac, MI
    #1
    Hey,

    I'm working on an script (using AppleScript) and I need to run a movie full screen on my second monitor. Two quick questions--

    1) What command will run the movie full screen (as in Apple-F, so there's no window border showing)? I have QuickTime Pro, but I'm not sure what command to use. My code right now is
    set scale of movie "Test.MOV" to screen
    But that just "maximizes" the window. I need to run the movie borderless.

    Second Question--is there a command to move the window to the second monitor? Right now, I'm using
    set position of window "Test.MOV" to {1400, 100}
    to move it to the second monitor. Is there a better way to do this?

    Thanks in advance!
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    If you open the QuickTime Player dictionary in Script Editor you will see a command (in the QuickTime Player Suite):

    enter full screen: Enter full screen video mode
    enter full screen reference -- display
    [bounds point] -- the desired target dimensions of the display (height, width)
    [background color rgb color] -- the background color, e.g. {0, 65535, 0}, the rgb value for green
     

Share This Page