【发布时间】:2017-03-13 02:09:55
【问题描述】:
我需要一个脚本,将音乐文件从我的 USB 音乐文件夹移动到“自动添加到 iTunes”文件夹中,然后播放该文件。这是我目前所拥有的:
tell application "Finder"
move items from "LEXAR:Pictures:Music:" to "Macintosh HD:User:" --this is where i'm lost, i need the path that doesnt include my name as the User
--and i need some way to tell itunes to play that file
对奇怪的代码设置感到抱歉。我想要发生的事情是将我的 USB 插入某人的计算机,单击此脚本作为 .app,它会将我 USB 中“音乐”下的文件传输到“自动添加到 iTunes”中,然后启动 iTunes,播放那个音乐文件。
【问题讨论】:
标签: macos usb applescript itunes