Thread View: adobe.scripting.indesign
4 messages
4 total messages
Started by Ralf_Funke
Thu, 08 Jan 2009 10:55
[CS3] How to unlink assigned stories?
Author: Ralf_Funke
Date: Thu, 08 Jan 2009 10:55
Date: Thu, 08 Jan 2009 10:55
8 lines
1064 bytes
1064 bytes
We have a workflow where our documents have a lot of assignments. At the end of production (before exporting to archive) I want to delete all assignments. That is the easy part. All assigned stories are moved to Unassigned InCopy content though. And I cannot find a way to unlink content by script. If the user selects the stories I can use:
app.menuActions.itemByName("Unlink Content").invoke();
But I would prefer to have no user interaction. Am I overlooking something?
Thank you,
Ralf
Re: [CS3] How to unlink assigned stories?
Author: Ralf_Funke
Date: Thu, 08 Jan 2009 11:04
Date: Thu, 08 Jan 2009 11:04
5 lines
733 bytes
733 bytes
Found it: myAssignedStory.storyReference.itemLink.unlink(); And I thought I had tried this before. :-)
Re: [CS3] How to unlink assigned stories?
Author: Ralf_Funke
Date: Thu, 08 Jan 2009 12:14
Date: Thu, 08 Jan 2009 12:14
8 lines
1110 bytes
1110 bytes
Since posting my problem worked before I try again. Now that I have unlinked my stories I still have linked pictures. But if the assigned "story" is a picture the story reference is a rectangle that does not have an itemLink. Unlinking the graphic of the rectangle does not work. Would be illogical anyway since the link of the assigned story is to an InCopy document. Any idea? Thank you, Ralf
Re: [CS3] How to unlink assigned stories?
Author: Zixxer
Date: Tue, 13 Jan 2009 14:29
Date: Tue, 13 Jan 2009 14:29
5 lines
914 bytes
914 bytes
I had the same problem and used the "links" property from the document to get all the links.
for ( i = 0; i < jobDoc.links.length; i++ ) { var link = jobDoc.links.item(i); ... }
I looped through all the page items and compaired their id's with "link.parent.id", and was able to unlink the assigned story with "link.unlink();".
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads