I am updating an applescript from IDCS4 to IDCS6.
This works. However, I need to reference a page item named “base”. How do I change the below script to reference the page item “base”?
tell application “Adobe InDesign CS6”
tell document 1
set filePath to file path of item link of graphic 1 of selection
end tell
end tell
tell application “Adobe InDesign CS6”
tell document 1
set pageItem to (page items whose label is “base”)
set filePath to file path of item link of graphic 1 of item 1 of pageItem
end tell
end tell