删除Applescript中“引号形式”的引号?

| 我有以下代码可在Finder中复制多个选定项目的路径: 激活应用程序“ Finder” 告诉应用程序“ Finder”     将theSel设置为(选择应用程序“ Finder”)     将pathList设置为{}     在theSel中重复一个项目         将pathList的末尾设置为带引号的形式((anItem作为别名的)POSIX路径)     结束重复     将savedDelimiters设置为AppleScript的文本项分隔符     将AppleScript的文本项分隔符设置为\“ \“     将剪贴板设置为pathList作为字符串     将AppleScript的文本项分隔符设置为savedDelimiters 结束告诉 唯一的问题是它导致以下结果: \'/ Applications / Burn.app / \' \'/ Applications / Caffeine.app / \' \'/ Applications / Calculator.app / \' 那基本上就是我想要的,但是我不想要那些该死的单引号。我如何摆脱它们?我已经尝试过删除
quoted form of
,但是没有运气。 谢谢!     
已邀请:
        您所要做的就是取出\“ quoted form of \”
    activate application \"Finder\"
tell application \"Finder\"
    set theSel to (selection of application \"Finder\")
    set pathList to {}
    repeat with anItem in theSel
        set the end of pathList to (POSIX path of (anItem as alias))
    end repeat
    set savedDelimiters to AppleScript\'s text item delimiters
    set AppleScript\'s text item delimiters to \"
\"
    set the clipboard to pathList as string
    set AppleScript\'s text item delimiters to savedDelimiters
end tell
    

要回复问题请先登录注册