AppleScript启动并循环播放全屏视频,避免出现菜单栏

问题描述 投票:0回答:1

我正在尝试运行此小程序:

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上仍然可见

我需要避免所有这些,并使其自动在没有菜单栏的情况下全屏播放。有指针吗?谢谢

video applescript fullscreen
1个回答
0
投票
您可以尝试一下,尽管我还没有努力重启计算机并查看它是否可以解决特定问题。

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

© www.soinside.com 2019 - 2024. All rights reserved.