【发布时间】:2014-03-11 18:15:54
【问题描述】:
我正在尝试创建一个 applescript,它会自动将仅从我的下载文件夹中下载的 MP3 添加为文件夹操作。我在网上找到了以下脚本,它运行良好,除了两件事:每当我从 Internet 下载任何内容时,iTunes 就会启动,并且还会添加 iTunes 愿意从该下载文件夹添加的几乎所有文件。我尝试修改代码大约 15 次,每次 iTunes 没有启动,或者 iTunes 启动任何下载的文件并且不添加文件
原代码为:
on adding folder items to my_folder after receiving the_files
repeat with i from 1 to number of items in the_files
tell application "iTunes"
launch
try
set this_file to (item i of the_files)
add this_file
end try
end tell
end repeat
end adding folder items to
感谢您的帮助!
【问题讨论】:
标签: macos applescript mp3 itunes