我试过这段代码:
tell application "Adobe InDesign CS6"
set ParaIdOrSecId to "ti0005"
set xpa to "//*[@*='" & ParaIdOrSecId & "']" as string
tell active document
tell XML element 1
set Requriedxpa to evaluate XPath expression using xpa
end tell
end tell
end tell
执行后,InDesign 会显示一个对话框:
内容包含无法编码的字符。
为什么我无法执行它,即使它是有效的 xpath?