Subject: | |
From: | |
Reply To: | |
Date: | Sat, 1 Aug 2015 10:01:42 +1000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On 1 Aug 2015, at 6:39 am, SUBSCRIBE MACSCRPT Inyo55 <[log in to unmask]> wrote:
>
> What is framework "foundation" and "quartz"? Is the applescript calling a separate utility somewhere using those commands? Or, are they part of the OSX Applescript?
They're part of OS X, period. It's essentially Objective-C code written using AppleScript: AppleScriptObjC.
> I thought about bypassing Acrobat,to make the new documents, but was not sure how reliable it would be, or how it is possible.
If you're talking PDFs for pre-press, I'd stick to Acrobat Pro. This is basically using the code that apps like Preview use; the results are PDF 1.3.
>
> A typical PDF we get might have 1000 or more pages.
I only tested it on a document with 100-odd pages, but it shouldn't take more than a couple of seconds for you to test it on the real thing.
> Each page has a Barcode with number on the upper right of the page. The barcodes are the same in a sequential series of pages, like chapters in a book. Then the barcode changes. User wants all the "chapters" to be new and separate PDF files.
> Converting the original PDF to text (using third party utility PDFTOTEXT) and getting a list of the number of pages in each "chapter" with grep was the easy part.
> Next I want to take those lists to go into the original PDF and break out the sections as separate PDF files all with the same barcodes on their pages.
If it's a one-off, then there's probably no point redoing that. But again, that would be relatively simple enough to incorporate as AppleScriptObjC code.
> I am not opposed to bypassing Acrobat, just do not understand how it can be done.
Simple: copy the code into a script editor's window, and hit the Run button.
--
Shane Stanley <[log in to unmask]>
<www.macosxautomation.com/applescript/apps/>
|
|
|