我正在尝试重建一个脚本,该脚本会将元标记添加到iTunes中的歌曲中,以显示明确或干净的标记... 基本上我有一个exec文件,它会这样做..(AtomicParsley) 在终端我必须把原子欧芹的路径后跟我要改变的音乐文件的路径,然后是--advisory explicit --overWrite ..
所以它看起来像 用户/ G /下载/ AtomicParsley-MacOSX-0.9.0 / AtomicParsley / Volumes / Drive2 / iTunes / iTunes Media / Music / Adele / 21/01滚动Deep.m4a - 管理显式--overWrite选项
我正在尝试使用automator将AtomicParsley的位置传递给applescript ..这就是我到目前为止所做的...但是我无法找到传递给脚本的AtomicParsley
on run {input, parameters}
set AtomicParsleyPath to POSIX path of input
tell application "iTunes"
set selectedTracks to location of selection
repeat with selectedTrack in selectedTracks
set trackPath to POSIX path of selectedTrack
# display dialog trackPath
set the command to quoted form of AtomicParsleyPath & " " & quoted form of trackPath & " --advisory explicit --overWrite"
# display dialog(the_command)
do shell script the_ repeat
end tell
end run
答案 0 :(得分:0)
您可以在脚本中指定AtomicParsley的位置:
on run {input, parameters}
set AtomicParsleyPath to "/Users/G/Downloads/AtomicParsley-MacOSX-0.9.0/AtomicParsley"
tell application "iTunes" to set selectedTracks to location of selection
repeat with selectedTrack in selectedTracks
tell application "iTunes" to set trackPath to POSIX path of selectedTrack
# display dialog trackPath
set theCommand to quoted form of AtomicParsleyPath & space & quoted form of trackPath & " --advisory explicit --overWrite"
# display dialog(the_command)
do shell script theCommand
end repeat
end run