Copy link to clipboard
Copied
Hi everyone!
In indesign xml pre processor, cannot find "div" xml element using applescript.
I have try some code but in this case not working. Please give any ideas..
This is my code:
tell application "Adobe InDesign CS6"
set xpath to {"//div"}
set myRuleProcessor to make XML rule processor with properties {rule paths:xpath}
set myRootXMLElement to XML element 1 of document 1
tell myRuleProcessor
set myMatchData to start processing rule set initial element myRootXMLElement
repeat while myMatchData is not equal to nothing
set myElement to get element of myMatchData
select myElement
set myMatchData to nothing
end repeat
end tell
end tell
Thanks in Advance.
Hi john,
it does not seem to accept the tag-name "//div". Change it. It worked for me. Hope this can be done in production
Thanks Stefan
Copy link to clipboard
Copied
Hi john,
it does not seem to accept the tag-name "//div". Change it. It worked for me. Hope this can be done in production
Thanks Stefan
Copy link to clipboard
Copied
Thank you very much Stevan...