我正在尝试运行此小程序:
tell application "QuickTime Player"
activate
open alias "Users:ebowen:Desktop:MOUND_1.32GB_h264.mov"
play the front document
end tell
tell application "System Events" to tell process "QuickTime Player"
set frontmost to true
tell menu bar item 5 of menu bar 1
click menu item "Enter Full Screen" of menu 1
click menu item "Loop" of menu 1
end tell
end tell
在运行OSX 10.6.8的Mac mini上,并且可以运行,除非它在启动时自动运行。
从启动运行时,Mac的鼠标指针默认位于苹果菜单上方,这会使菜单栏在全屏mov上仍然可见
我需要避免所有这些,并使其自动在没有菜单栏的情况下全屏播放。有指针吗?谢谢
tell application "QuickTime Player"
tell (open POSIX file "/Users/ebowen/Desktop/MOUND_1.32GB_h264.mov")
set looping to true
present
play
end tell
end tell