Jag försöker länka om en bild till en annan bild i InDesign CS5 med ett applescript.
I Dictionary står följande:
relink link ¬
to anything
Men det går åt skogen när jag skriver följande:
set myNewFilePath to "HD:Users:Baron:Desktop:images.jpg"
tell application "Adobe InDesign CS5"
tell active document
set myAllGraphics to all graphics
repeat with I from 1 to count myAllGraphics
set myGraphicItem to item I of myAllGraphics
set myItemLink to item link of myGraphicItem
relink file path of myItemLink to myNewFilePath
end repeat
end tell
end tell
Det går ännu sämre när jag skriver " relink myItemLink to myNewFilePath" som kommando.
Hur gö rman i CS5? CS4 går det bra i.