以下是一个示例的AppleScript代码,用于将QuickTime X中的视频导出为720p分辨率:
tell application "QuickTime Player"
activate
set theMovie to front document
export theMovie to file "Macintosh HD:Users:YourUsername:Desktop:exported_video.mov" as "QuickTime movie" using settings preset "720p"
end tell
请将"YourUsername"替换为您的用户名,并将导出的视频文件路径更改为您希望保存的位置。这段代码将在QuickTime Player中的当前打开视频文件,并将其导出为720p分辨率的.mov文件。
要使用此AppleScript代码,请按照以下步骤进行操作:
请注意,此代码仅适用于QuickTime Player X(即QuickTime Player的最新版本)。如果您使用的是较旧版本的QuickTime Player,请尝试搜索适用于您的特定版本的导出代码。