I can do this manually. I have a number of missing links to incopy stories. I’d just like to unlink them all. If I go to my Links menu and hit the contextual menu, I can click on “Unlink” and that works.
When I run the following program, it doesn’t work.
[applescript
tell application “Adobe InDesign CS3”
tell active document
set myLinks to every link whose status is link missing
repeat with aLink in myLinks
unlink aLink
end repeat
end tell
end tell]
(I also tried just tell active document to unlink every link whose status is link missing, and that didn't work).
Is this broken in InDesign? Should I use a UI script?
Thanks
Are you receiving an error? If so, what is it, and, if not, the OS version? (Lots of people seem to be having issues with Snow Leopard, so maybe this is the cause.) I don’t have access to CS3 at the moment, but the posted code tests as working in CS (under Tiger).
Thanks for the idea. It still doesn’t work. I’m using Tiger.
I think the problem is in the fact that these links are incopy stories. Now, you can manually unlink the .incx file in the Links Panel’s contextual menu, but you (one) cannot seem to do that with applescript.
Another way to do this manually is to delete all assigned stories. There is no equivalent for deleting assigned stories in CS3’ dictionary, unless I’m not looking in the right place.