Var numberToSubtract = 0 // This compensates for screwing up the page counter when you remove a page.įor (i=0 iOpenFile = app.open(File(OpenFilePath), true, 1332757360) // Create a duplicate to work with. Var OpenFilePath = (0).fullName // Declare a variable representing the open document. jsx file, doesn't matter): try // to get the path of the file that's active when you run the script. Now, take the following script, copy/paste into a text editor, and save it to your Scripts directory (as a. If you pull up the Script Label panel ( Window > Utilities > Script Label), you'll see that it's labeled as "DRAFT_LABEL". You'll notice on pages 3 and 4 that there is a big pink block of text that says DRAFT: It's IDML from CS5, so it should work from CS4+. But here's what solution I came up using scripting:Äownload this sample file and save to your system. Because of the page number thing, this might not be a perfect solution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |