使用以下的 AppleScript,我试图:
record the audio with "QuickTime Player" for several seconds
export the track and save it to the desktop
tell application "QuickTime Player" launch set doku to new audio recording start doku delay 4 stop doku set savePath to "~/Desktop/record.mp3" set newDoc to last item of (documents whose name contains "Untitled") export newDoc in file savePath using settings preset "Audio Only" end tell
创建新的音频录制似乎很容易,但由于某些原因导出命令无法正常工作。错误消息显示我没有导出权限。