【发布时间】:2013-10-17 16:11:51
【问题描述】:
我正在尝试制作一个脚本来获取当前歌曲的持续时间,但是当我这样做时,持续时间会返回为“缺失值”。有什么建议吗?
tell application "iTunes"
if player state is playing or player state is paused then
set theDuration to (get duration of the current track)
display dialog theDuration
end if
end tell
【问题讨论】:
标签: applescript itunes duration