Applescript relink problem with indesign
Hi
I have a problem with my applescript code on indesign.
The object relink function doesn't work ...
Here is my code :
tell application "Adobe InDesign CS4"
if document 1 exists then
tell document 1
set chem to "TRAFIC:999:999998:Bonzai.gif"
set mylink to name of link 1 as Unicode text
relink link mylink to chem
update mylink
display dialog "ok"
end tell
end if
end tell
This error appears on the relink line : +Link "Bonzai.gif" of document 1 doesn't understand the relink message+
(end of the error message is a translation of french to english)
Any idea ?
Regards
I have a problem with my applescript code on indesign.
The object relink function doesn't work ...
Here is my code :
tell application "Adobe InDesign CS4"
if document 1 exists then
tell document 1
set chem to "TRAFIC:999:999998:Bonzai.gif"
set mylink to name of link 1 as Unicode text
relink link mylink to chem
update mylink
display dialog "ok"
end tell
end if
end tell
This error appears on the relink line : +Link "Bonzai.gif" of document 1 doesn't understand the relink message+
(end of the error message is a translation of french to english)
Any idea ?
Regards