Hello,
Here I write small prog. for inserting one picture in three existing frames, but
I need remove existing links of pictures before before this main cycle start.
I try unlink, but I doesn’t work. Please help!
tell application "Finder"
-- Create list of images to place
set PicList to "Macintosh HD:Pukite.psd"
end tell
set picboxnum to 1
set pagenumber to 1
tell application "Adobe InDesign CS4"
activate
tell document 1
-- remove existing links
repeat with kurs from 1 to 3 by 1
set Pro to "PDD" & kurs
-- following string make error
delete image in rectangle Pro of page pagenumber
end repeat
repeat with kurs from 1 to 2 by 1
set Pro to "PDD" & kurs
place PicList as alias on rectangle Pro of page pagenumber with properties {"centre content"}
end repeat
end tell
end tell