我使用這個代碼添加到每個所選曲目在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