0
我與InDesign和XML的工作,我需要的,如果可能的話,將XML元素爲InDesign的框架關聯,並得到了它的位置AppleScript的關聯XML元素的InDesign框架
使用AppleScript這是我的簡單代碼
tell application "Adobe InDesign CC"
set myDocument to active document
tell myDocument
set myTag to XML tag "aa"
tell XML element 1
set elementCount to (get count of XML Items)
repeat with x from 1 to elementCount
set elem1 to XML element x
tell contents of elem1
set tag to value of XML attribute "ean" of elem1
end tell
select elem1
/* here I try */
set rettangolo to contents of elem1
return geometric bounds of rettangolo as string
end repeat
end tell
和這個劇本獲得位置時,我選擇從InDesign
set myDocument to active document
tell myDocument
set rettangolo to properties of item 1 of selection
set coordina to geometric bounds of rettangolo as string
display dialog coordina
end tell
框架如何第一個劇本的元素框架相連?