我使用这个代码添加到每个所选曲目在iTunes添加到AppleScript的对象 - 一个列表:setStringValue使用AppleScript列表
tell application "iTunes"
set these_titles to {}
if selection is not {} then
set mySelection to selection
repeat with aTrack in mySelection
if class of aTrack is file track then
set end of these_titles to ((name of aTrack) as string)
end if
end repeat
end if
end tell
我有这条线显示在文本框中输出GUI:
trackTable's setStringValue_(these_titles)
但它出来是这样的:
是否有任何方法可以让每个列表项在一行上,无引号和括号?
超级!我在第一行改成了'将AppleScript的文本项目分隔符设置为“\ n”',并且得到了我想要的。 – 2014-08-27 22:42:07