Bug in Automator's Combine PDF Pages action?

Hi guys,
I've been playing around with 10.6's new Automator and Services. I decided to make an Automator Service so that if I have some PDFs selected in Finder, I can combine all the pages into one PDF and save it to a location. So I created the following service:
* Get Selected Finder Items
* Combine PDF Pages (appending pages)
* Move Finder Items (to Desktop by default, show this action when the workflow runs)
* Rename file (comes up as Name Single Item in Finder Item Names, show this action when the workflow runs)
I tested this in Automator by selecting some PDFs on my desktop and hitting the Run button; everything worked out well. So I saved it as an Automator Service, only available for PDF files but in all applications (drop down lists at the top of the Automator window).
I noticed however when I ran this workflow as a service, the pages in the resulting PDF file is actually duplicated. For example, if I had page 1 in page1.pdf, and page 2 in page2.pdf, running the service on these two files will produce a PDF with the following pages: page 1, page 2, page 1, page 2.
Does this happen to anyone else in here, or is it just me? I tried saving the workflow as an application, placed it in the Dock, and then dropped my test files on it and it does the same thing. And this happens with other PDF files too.
Is this a bug? Can someone confirm that it happens on their machine too?
Thanks.

Anyone? It doesn't take long to create an Automator workflow with the 4 actions above. Probably 2 minutes max. Can someone test on their machine?
I tried to do the same with my MBP, which I also upgraded to Snow Leopard, and it does the same thing there. For some reason, it works perfectly when the workflow is run within Automator, but when it's exported as an Application or a Service, it duplicates pages.
I tried to submit a bug report to Apple, but I couldn't log in with my current Apple ID -- it shows me an error page to submit a bug report! That's what I've been trying to do in the first place, but it seems the bug report process has bugs that they want you to report on. Chicken and egg scenario methinks.

Similar Messages

  • Combine PDF Pages automator step strips annotations

    Oh, I was so excited when I noticed the Combine PDF Pages command in Automator.
    Then I was less excited when I discovered that if any of the pages has annotations created in Acrobat Pro, those annotations are removed from the newly combined PDF.
    Since Preview, for some strange reason, is not AppleScript-able, Automator is the only way I see to do this.
    Acrobat is somewhat scriptable to a degree but does not have a combine PDFs command in the dictionary.
    So, has anyone figured out a way to automate the merging of PDFs via a script, workflow, app, etc -- while RETAINING the annotations? I am triggering this from FileMaker as part of a work process we're developing, so manually merging the PDFs kind of defeats the purpose.
    Anyone have any suggestions?
    Thanks,
    Jeff

    Found It!
    Ok, so it seems "insert pages" is in the Acrobat dictionary; I was looking for an equivelant of "Combine Files into Single PDF".  Anyway, here's draft one of the script. I'll probably make it less clunky next week, but this is basically how it works:
    set nFile to ""
    set pCount to 0
    set pdfList to {}
    set pdfNameList to {}
    set sourcePath to "SL:Users:joeuser:Desktop:fix ccd:Source:"
    set targetPath to "SL:Users:joeuser:Desktop:fix ccd:Target:"
    set coverFileName to "cover.pdf"
    tell application "Finder"
    move file (sourcePath & coverFileName) to folder targetPath
              set my pdfList to every file in folder sourcePath
              repeat with f in pdfList
                        set pdfNameList to pdfNameList & (name of f)
              end repeat
    end tell
    tell application "Adobe Acrobat Pro"
    --activate
    open (my targetPath & my coverFileName) with invisible
              set targetDoc to last document
              set my pCount to (number of pages) of targetDoc
              get my pdfNameList
              repeat with f in my pdfNameList
                        set c to number of documents
                        open (sourcePath & f) with invisible
                        repeat until c < (number of documents)
                        end repeat
                        set newDoc to last document
                        set nPages to (number of pages) of newDoc
      insert pages targetDoc after my pCount from newDoc starting with 1 number of pages nPages
                        set my pCount to (my pCount) + nPages
      close newDoc
              end repeat
    save targetDoc
    close targetDoc
    end tell
    tell application "Finder"
              set f to file (my targetPath & my coverFileName)
              set name of f to "New Merges PDF.pdf"
    end tell

  • Getting File Name in Automator workflow - combine PDF

    I am using Automator to combine 2 PDF files.
    I would like to inherit one of the file names in the new PDF and append a standard text to the front of the file name.
    I am not sure how to do this. I can combine the PDFs the way I would like, but I am not sure how to plick the file name.
    my workflow is as follows.
    Folder Action targets folder where 1st PDF is added(I want this FILE NAME).
    Ger Specified finder item selects 2nd PDF to be combined.
    Sort Finder Items makes sure the new PDF pages are ordered properly.
    Combine PDF Pages combines the pages.
    Move Finder Items saves the files where i want it.
    Name single item is whre i thought to add my standard text plus the variable of FILE NAME.
    Open File in mail to set up my email.
    Anyone can help with this?
    thanks,
    Aaron

    Here is an automator workflow that does something similar so I believe you can adapt to your needs.  This workflow is setup as a service workflow. It will combine PDFs in the order in which they are selected/clicked via the Shift key.  The default name of the combined output file will be the name of the first file clicked.  Automator can be activated by CTRL clicking any of the selected PDFs.
    1. Service receives PDF files in Finder
    2. Automator Action: Run AppleScript
    on run {input, parameters}
              display dialog "Files will be combined in the order selected via the Shift key" as text
              return input
    end run
    3.. Automator Action: Trim input items
    keep the first one
    you will need to download and install this autotmator action from here:
    http://www.menace-enterprises.com/Files/Automator/Actions/Trim%20Input%20Items.d mg
    4.  Automator Action: Run AppleScript
    (* Note & Definitions
    This Applescript extracts the basename of the first selected file without its .pdf extension
    "path_basename_ext" is full path and name, e.g. User/desktop/file.pdf
    "NmExt" is filename with extension, e.g. file.pdf
    "baseName" is the base filename without extension, e.g. file
    "Ext" is the file's extension, e.g. pdf
    on run {input, parameters}
              set path_basename_ext to input
              tell (info for path_basename_ext) to set {NmExt, Ext} to {name, name extension}
              set baseName to text 1 thru ((get offset of "." & Ext in NmExt) - 1) of NmExt
      baseName
              return baseName
    end run
    5.  Automator Action: Set Value of Variable
    define baseName as the variable
    6.  Automator Action: Get selected finder items
    Options: check ignore input
    7. Automator Action: Combine PDF pages
    choose Combine by appending
    8. Automator Action: Move Finder Items
    choose To: Desktop
    Options: check show this action when workflow runs
    9. Name Single Items
    choose Basename only to: baseName
    Options: check show this action when workflow runs
    10. Open Finder Items

  • 2Sided Original 1Sided ADF Scanner -Combine PDF Pages -  Data Error?

    I just purchased a scanner with an Auto Document Feeder, ADF, of 25 pages after trying to use it I found out through the company that it only scans one side. I have another ADF scanner where the software allows the user to flip the pages over and then reinserts them for the final PDF file. Instead of spending more on a double sided scanner I figured I would create a program using Automator.
    The script I created worked a few times but after some tweaking it stopped.
    The problem is just before the Combine PDF Pages where I have two "Get Value of Variables" which I set as PDF Documents at the beginning of the script.
    The log reads before and at the point of error;
    Conversion from Files/Folders (com.apple.applescript.alias-object) to PDF files com.apple.applescript.alias-object.pdf) completed.
    . ! The action "Combine PDF Pages" was not supplied with the required data.
    The variables are showing the entire path to include the filename and extention of my selected PDFs, but the log above the error seems to change the variable to the appropriately desired object.
    ? What I need to do to correct this error because it seemed to work earlier by using variables?
    The script would be useful for any type of ADF scanner that outputs one-sided to PDFs and the originals are two-sided.
    Your help is appreciated.
    KGz
    Message was edited by: KGz

    Red
    I have been working in Automator for this program and saved it as an Applescript plug-in for the Scripts Menu. I don't have to have it as a script I just need it to work.
    The pecular thing was while testing the program in Automator before exporting it to the plug-in the program was skitish meaning that at first it didn't work then I added 'view results' and then afterwards it seemed to work. After this I removed 'view results' and it worked then I exported it but since then I can't get it to work again even after reinserting 'view results'.

  • Automator Service: Combine PDFs Then Delete Originals

    Hello All,
    I've managed to create a service using Automator that combines PDF files, renames the newly created file, and moves it (http://www.documentsnap.com/how-to-combine-pdf-files-in-mac-osx-using-automator- to-make-a-service/).
    What I am now trying to figure out is how I could have automator prompt me at the end to ask if I'd like to move the original files (PDFs) to the trash, and then do so upon confirmation. I haven't had any luck figuring this out on my own.
    Does anyone out there know if this is possible?
    Thanks!

    sure, it's possible.  what you need to do is:
    add in a Set Value of Variable action right at the beginning
    at the end, add in an Ask for Confirmation action that asks if they want to delete the original files.
    after that add in a Get Value of Variable action for the variable in step 1
    then add a Move Finder Items to Trash action
    first step stores the passed-in file references in a variable for later use, and passes them on to your script.  the second step gets user input, stopping the workflow if the user cancels.  the third step recovers the file references stored at the first step, and the last step deletes the files.

  • PDF converter and combine PDF pages are blank?

    I signed in to Adobe and tried to use the PDF converter, but the page is blank.  The combine PDF page is blank also.  What happened?  I can see the other tabs, but these two are blank.  Need to know what is going on. Thanks.

    Now it shows up after 30 minutes of trying. 

  • How to combine pdf pages into a single pdf document

    I´ve done this before but I forgot. Can anyone help me?

    Hi profesora.2014.2015,
    Adobe Reader is a free trusted standard for reliably viewing, printing, and annotating PDF documents. It’s the only PDF file viewer that can open and interact with all types of PDF content, including forms and multimedia.
    In order to combine PDF pages into a single PDF file, you need to either use Adobe Acrobat (Merging and combining PDF files | Acrobat XI - Adobe India) or Adobe PDF pack (Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack).

  • Combine PDF Pages Folder Action

    I am running OS 10.6.8, using Automator to create a Folder Action.
    The input is a single folder containing 2 or more PDF files. I drop this folder onto the folder with the action attached. All of the PDFs are combined and the resulting PDF is copied to a new location.
    It works very well with one problem. The name of the combined PDF is an automatically generated system name. I would like this PDF file name to change to the name of the original folder that contained the original PDFs.
    To summarize: "Folder A" has the action attached. "Folder B" contains 2 or more PDFs. I drop Folder B onto Folder A. Automator creates a new combined PDF. I would like this to be named "Folder B.pdf"
    Thanks in advance, any help is appreciated.

    Here's a way (at least on Mac OS X 10.7.3) to do what hubionmac suggested:
    Message was edited by: Pierre L.

  • Combined PDF page display speed difference between Acrobat 8 Pro and Acrobat X Pro

    I have encountered a display speed issue with regards to combining Tiffs with Acrobat X Pro.  The Tiffs are between 200 KB and 600 KB.  Tested the issue by using a series of Tiffs originally combined using Acrobat 8 Pro but used Acrobat X Pro to combine them.  When I open the combined PDF files using X, I can cycle through the pages of the one created using 8 significatinly faster (i.e. about as fast as I can click) but the file created using X is significately slower.  Note: PDF file size is smaller using X (30.9 MB) than same combined files using 8 (46.1 MB).  Any ideas on what might be causing this issue?

    Found a Tips & Tricks document for Acrobat 8 which indicated the default Monochrome Compression setting for Acrobat 8 is CCITT G4.  Recreated the combined PDF file from the original Tiffs using X Pro with the modified setting and works like a charm.  Thanks for the point in the right direction.

  • Applescript equivalent of Automator's "Combine PDF"?

    Folks -
    I'm starting to learn Applescript, and working to use it to help automate some workflows in a prepress department.
    I'm trying to write a script that (among other things) will combine a folder full of PDFs into one file before passing it along to the next step. This is easy using Automator, but the only Applescript equivalent that I've found calls for Acrobat to launch and combine the files - this seems to run more slowly than the Automator version, which doesn't appear to call Acrobat at all. I thought I'd try scripting Preview to do the same thing, but I didn't realize that Preview isn't scriptable.
    Is there a way I can accomplish this without combining Automator and Applescript, or am I out of luck? (I have a sneaking suspicion that this may involve a shell script, which would mean that I'm out of my depth.)
    Thanks for any ides on this one..
    -Andy Gill

    Hi Andy,
    I thought I'd try scripting Preview to do the same thing, but I didn't realize that Preview isn't scriptable.
    Using [GUI Scripting|http://www.macosxautomation.com/applescript/uiscripting/index.html], it should be relatively easy to write a script that will do what you are asking for. The drawback, however, is that such a script would have to open Preview.app and so could not run inconspicuously in the background.
    Maybe you might want to have a look at these two Mac OS X Hints articles:
    [10.5: Use Preview to merge or create multi-page PDFs|http://www.macosxhints.com/article.php?story=20071114191806624]
    [10.6: Combining documents in Snow Leopard's Preview|http://www.macosxhints.com/article.php?story=20090915223224601]
    Hope it can help.

  • Combine PDF trough Automator

    How do I combine PDF's trough the Automator - Step for Step.... thx alot
    Greets Simon

    Simply double-click or drag the "Combine PDF Pages" action from the "PDF" action library into your workflow. Then do the same for Finder's "Open Finder Items" action. Click File > Save As Plug-in, give it a name, confirm that it's a plug-in for Finder, and click Save.
    Now whenever you control-click on a selected group of PDFs in Finder, you can click Automator > [your workflow] and it will open them as a combined document.

  • Trying to create a "Combine PDF" that also has a "save as" dialog box

    I am able to get the Combine PDF to work but it just saves them as randomly named files on the desktop that I then need to rename manually. Is there some way to make a "save as" dialog box pop up after combining the files? So if I had a bunch of PDFs it would go:
    Right Click on selected files > Automator > Combine PDF > Save As
    Is this possible?

    Set up you worflow as:
    Get Selected Finder Items
    Combine PDF Pages
    Open Images in Preview
    Run Applescript
    +copy this into the Applescript box+
    tell app "System Events"
    keystroke "s" using {command down, shift down}
    keystroke "d" using {command down}
    end tell
    I also like to add a Sort Finder Items after the Get Selected Finder Items.

  • "Combine PDFs" Places New File In /private/var/folders/0Q etc. WHERE?

    I have just used Automator to combine .pdfs.
    Apparently it has put the combined file in ....
    /private/var/folders/0Q/0QlZ-reFFvSsYn6CVY8VXk+Ti/-Tmp-/ftqdhY.pdf
    So where on earth is that?
    I can summon up the new file by double-clicking it in the Automator "Results" window and save it somewhere convenient, but I would like to be able to drag the original from where it is hiding and put it in a place of my choosing.

    Thanks! The nearest I could find to your suggested action was "New Folder", which I didn't hold out much hope for, but it worked!
    Any idea how to access the weird place my original attempts were put into?

  • How can I add a picture to the Automator Action "Watermark PDF Documents.action"

    Looks like a bug: under 10.7.2 i cannot add a picture to the Automator Action "Watermark PDF Documents.action".
    Works perfectly under 10.6.8.

    Its a verified bug (Automator - Watermark PDF Documents).
    Please report to http://www.apple.com/feedback/macosx.html
    As a workaround, if you saved the Action in SL, option-click the action, navigate to the file "document.wflow", open in TextEdit, search for the key "fileNames" and replace your old image with the new

  • [Automator] Render PDF Pages as Images problem

    Hi,
    I'm using an Automator Action called "Render PDF Pages as Images". It is not working properly. I've also tried one called "Change Types if Images" with the same results. The problem is both of these actions will create an image, but they won't put it anywhere other than a temp directory. With the second action, if I do it on an image file like a jpg, it will convert the image and put it in the directory the file exist in. I have a bunch of PDFs that are really just scanned images that I need to convert to TIFF and I want to automate it. It is frustrating that the actions are not working as documented. Both are supposed to render the change on the existing file in the location it exists and neither is work that way when run against a PDF.
    Any help would be appreciated.

    Christopher Stumpf wrote:
    It's really simple.
    It's a service item and it contains just one of the actions I've already listed. They are supposed to change the existing file to the desired type, in place.
    no, they are not supposed to do that. they don't say anything of the sort in their descriptions. moreover, this is completely impossible if a pdf file has several pages. I just tried it and it works just fine. I passed a multipage pdf to the action "render pdf pages as images" and it made a number of separate pdf files - one for each page, as it should according to the description. they are temp files, yes. so you just need to follow it by the action to copy (or move files) and then by "rename finder items".
    my workflow:
    1. get specified (or selected) finder items.
    2. render pdf pages as images.
    3. move finder items
    3. rename finder items.
    Message was edited by: V.K.

Maybe you are looking for

  • Get IP of server where request came from

    Here's the scenario: User is browsing website A, hosted in server A. He clicks on a link that opens website B, hosted in server B. Server B should "skip" authentication only if the request came from server A. My question is, from the code in website

  • When I installed the PS CC app to my system

    When I installed the PS CC app to my system, it installed two PS files. One filed calles "Adobe Photoshop CC" and the other "Adobe Photoshop CC (64bit)" Do I need both of them ? Which one do I put my plugins into ?

  • I doesn't have any space left on my MacBook Pro what can I do?

    Hi can please get some help with this: my macbookpro retina doesn't have any disk space left and you can't upgrade it, what can I do?

  • Please advice -PS /PP Module comes by default with ECC6 or addon  ?

    Hi Gurus, Could you please let me know whether PS /PP modules comes along with ECC6 or seperate addon installation to ECC6.Like EHP Where can i find the technical documentation. Thanks in advance.... Moderator message: not directly related to ABAP de

  • Apps schema objects

    dear all,            i want to compile 3 package bodies in apps schema .how can i compile these 3 package bodies ? do i  need to use adadmin utility or compile individually from sql prompt as shown below? sql>conn /as sysdba sql>alter package <SCHEMA