This snippet provides:
- Create an assignemnt
- Add new content to existing assignment
- A snippet view of contents of an assignment
- delete assignment.
<h2>Exercising</h2>
New Assignment
- Open an existing document or Create a new document and save
- Run the Manipulate Assignment snippet
- Choose the option New Assignment.
- Choose a file name the assignment to save to in the save as dialog
- Choose various assignment options
- If all is well, there should be no asserts (if in debug build).
- You should see a new assignment created in Assignment palette.
- Snippet runner log reports an assignment is created.
Add to Assignment
- Open an existing document with assignment or continue from New Assignment above
- Select an image or story from the document window
- Run the Manipulate Assignment snippet
- Choose the option Add to Assignment
- Choose an assignment you want to add to
- There is an assert about fTransactionLevel is not 0 as of debug build 211, ingore it.
- You should see snippet runner log reports successful
- You should see a new assigned story is added to the assignment you choose in Assignment palette.
- Known issue: If your selection is not an image and story, you still can run, but nothing is added to the assignment.
Inspect Assignment
- Open an existing document with assignment or continue from New Assignment above
- Add images or stories to assignment from Assignment palette or run above add to assingment snippet.
- Run the Manipulate Assignment snippet
- Choose the option Inspect Assignment
- Choose an assignment you want to inspect
- If all is well, there should be no asserts (if in debug build).
- Assignment information will be dumped to snippet runner log. Examine the result
Delete Assignment
- Open an existing document with assignment or continue from New Assignment above
- Run the Manipulate Assignment snippet
- Choose the option Delete Assignment
- Choose an assignment you want to delete
- If all is well, there should be no asserts (if in debug build).
- You should see the assignment disappeared from Assignment palette.
- Snippet runner log will report assignment deleted.
Running without InCopy plugins
If running in InDesign without AssignmentUI, InCopyBridge, InCopyBridgeUI, InCopyExport, InCopyExportUI plugin (these are normally installed under ...\plugins\incopyworkflow), the following behavior change is expected:
- Inspect Assignment, Delete assignment works as normal
- Add to assignment will fail becuase we can not export story without InCopyBridge. No item is added to assignment, but the SnippetRunner log will still report success (known issue) Manipulate assignment snippet. Create, inspect, delete an assignment, add the selected item (story/graphic) to assignment.