Applescript: Packaging and exporting PDFs for multiple files -- need some tweaks

I found and tweaked a droplet script that isn't quite working right. I am hoping for some help with getting it to work the way I want. I tried and failed to learn to do this myself. Your help is greatly appreciated!
Here's an example: I drag two files called "filename.indd" and "filename2.indd" onto the droplet. The script I have right now will output the packages and PDFs into the following folder structure:
export folder
     filename folder
          filename.pdf
          filename folder
               filename.indd
               [Package contents]
     filename2 folder
          filename2.pdf
          filename2 folder
               filename2.indd
               [Package contents]
Here's the folder structure I need (using a dialog box or script that intelligently knows that the directory to save in is the same as the files I dragged on to the droplet would be amazing):
dialog box to choose new directory set to baseFolder
or
baseFolder <---- set to the current directory of the files I dragged onto the droplet
     filename folder
          filename.indd
          [Package contents]
          PDF folder             <--------new folder "PDF" created
               filename.pdf
     filename2 folder
          filename2.indd
          [Package contents]
          PDF folder             <--------new folder "PDF" created
               filename2.pdf
Here's a script I found and modified:
property baseFolder : (path to desktop as text) & "exports:"
on open mgItems
          repeat with mgThisItem in mgItems
                    tell application id "com.adobe.InDesign"
                              try
  open mgThisItem
                                        set mgDocName to name of active document
                                        set text item delimiters of AppleScript to ".indd"
                                        set mgShortName to text item 1 of mgDocName
                                        set targetFolderPath to my createFolder(mgShortName)
                                        set text item delimiters of AppleScript to ""
                                        set mgPackageFilePath to targetFolderPath & mgShortName as string
                                        set mgProofFilePath to mgPackageFilePath & ".pdf" as string
                                        set properties of PDF export preferences to properties of PDF export preset "[Smallest File Size]"
                                        tell the active document to export format PDF type to mgProofFilePath without showing options
                                        tell the active document to package to mgPackageFilePath with copying fonts, ignore preflight errors, copying profiles, updating graphics, including hidden layers, copying linked graphics and creating report
  close active document saving no
                              on error e
  display dialog e
                              end try
                    end tell
          end repeat
          display dialog "PDFs created and InDesign file packaged"
end open
on createFolder(nameString)
          set macFolderPath to baseFolder & nameString
          do shell script "mkdir -p " & quoted form of POSIX path of macFolderPath
          return macFolderPath & ":"
end createFolder
Thanks very much!

...anyone? :\

Similar Messages

  • I just started a free trial of the Adobe XI product that allows me to create an editable PDF. I'm done creating the form and ready to export it. When I click Export PDF from the File menu, it says Adobe encountered an unexpected error. What am I doing wro

    I just started a free trial of the Adobe XI product that allows me to create an editable PDF. I'm done creating the form and ready to export it. When I click Export PDF from the File menu, it says Adobe encountered an unexpected error. What am I doing wrong?

    Good to know  — there is no such application as "Adobe XI".
    "Adobe" is the name of the company.
    "XI" is indicative of the use of either Acrobat XI or Reader XI.
    Neither Acrobat XI Pro (for which Adobe provides a free, fully functional 30-day trial) nor Adobe Reader XI (the free to download and use PDF viewer that Adobe provides) have  an "Export PDF" entry under "File".
    "Export PDF" only is present in Adobe Reader XI over on the right on the "Tools" panel.
    The "Tools" panel provides a way for a user of Adobe Reader XI to connect to various By Subscription online services (gotta pay eh).
    Export PDF is one of these. A subscription lets you send a PDF file to the online internet service (aka "cloud" service). The service then exports to a supported file format (Word / Excel / ...) and the user selects / directs where the output file is to be saved on the user's local machine.
    Of course to use any of the online subscription services one must have an active (paid up in full) subscription to the service.
    So ---- As described the puzzle pieces don't fit eh.
    What specific Adobe (the company) applications are you using?
    Acrobat XI Pro? Adobe Reader XI? Both? 
    Be well....

  • Export Limits for Multiple Sequences in the Same Sequence File for TS3.0

    Hi,
    I am using TestStand 3.0 to a test application. Because we want to have our limits in a csv-file I have tried to use the Import/Export tools in TS. But this application only supports to export limits for the selected sequence (e.g. main, or subseq1) at a time. This makes it a pretty hard job to export limits from 30 test sequences. What I need is a possibility to export my limits from �all sequences� in my seq-file.
    I have found an article on NI Dev. Zone about �Export Limits for Multiple Sequences in the Same Sequence File (TestStand 1.0.x)�.
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3D9CB56A4E034080020E74861&p_node=DZ52236&p_submitted=N&p_rank=&p_answer=&p_sourc
    e=External
    I have tried to use this code but because it�s for TS 1.0.2 the limits from my multi num test step and my custom steptypes isn�t exported. So that doesn�t fulfill my needs.
    Is there an updated version with �all sequences� added to TS 3.0? Is there other good solutions to my problem out there?
    Best Regards,
    Morten Pedersen
    CIM Industrial Systems A/S
    Denmark

    Hi David Mc,
    Thanks for your reply. I have already considered this solution because the source code is added in the folder described in your reply. But that is not a good solution. It will cost me a lot of time to establish the toolchain, reverse engineer the source code, make the implementations and build a new dll (most off these is already knowledge by NI). And when NI make future releases of TestStand I have some merge work to do every time NI have made some changes in the files I have changed.
    But as I write above: I have hoped that NI already has/or could made a solution like the one to 1.0.2 (see link in root) to me. And then they could include it in the next version.
    I don't think I am the only one in the TestStand world that ne
    ed this feature.
    Best regards,
    Morten Pedersen
    CIM Industrial Systems A/S
    Denmark

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Looking for a program that can handel import and export of palm doc files

    I am looking for a program that can handel the import and export of palm doc Files that can convert them to to either txt or RTF files for Vista 32, running Palm Desktop 7.1.
    Could anyone give me a few suggestions of any plug-ins that would be good me?
    Hearns
    Post relates to: Palm IIIxe
    This question was solved.
    View Solution.

    Ok, you need to clean uninstall Palm desktop 6.2. Install Palm desktop 4.1.4 and download and install documents to go version 6.
    Here are the clean uninstall instructioins for Vista.
    You should first make a copy of your data to have just in case something
    happens. You can find your data files by going to Start --> Documents -->
    Palm OS Desktop. Highlight your Palm Desktop username and right click and
    copy. Then go to your PC desktop right click on a blank spot and select paste.
    If this is the first time you are installing Palm desktop and encountering a problem, skip the previous step.
    Now you want to uninstall Palm Desktop and remove everything that has to do
    with Palm Desktop from your computer.
    Go to the following locations on the PC and delete the folders listed below.
    C:\Program Files\Palm or Palm One
    C:\Users\[Vista Login Name]\appdata\local\virtualstore\Program Files\Palm or
    PalmOne
    C:\Users\[Vista Login Name]\appdata
    *Note you may need to view hidden folders to get to appdata. To do that go
    into your control panel and open folder options. Go to view tab and uncheck
    hide hidden files.
    Once this is done you will need to delete some registry keys from your PC Operating System.
    Word of warning, going here and deleting the wrong thing can cause your PC
    from starting up, crashing and deletion of programs and data. If you feel
    you are unsure of yourself, see if you have a friend that can help you or a
    PC technician that you can pay to help you. This procedure will show them everything they need to delete. To make sure we have a good copy of the current registry, we need to do a backup of the Registry.
    Go to start on the PC, in the search field type "regedit.exe" without quotes.
    Highlight COMPUTER, go to File --> Export. Should pop up with a Save As box.
    Current location is fine, should be in My Documents or save to a location you will remember. In the file name on the bottom type "backup[todaysdate]" i.e. backup07072008. Next, the hard part.
    The easiest way to make sure your working with the correct key, highlight the key i.e. palm quick install, and press delete on your keyboard. It will ask you, are you sure. Say yes. Do the same thing for all keys below.
    If you make a mistake, stop what you are doing. And call a PC technician.
    BUT do not turn off your computer.
    The reg keys are as follows (Note: some of theses reg keys will not be here
    but if they are delete them)
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Palm Quick Install
    * HKEY_CURRENT_USER\Software\U.S. Robotics\PalmOne File Transfer
    * HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop
    * HKEY_CURRENT_USER\Software\Palm
    * HKEY_CURRENT_USER\Software\Palm, Inc.
    * HKEY_CURRENT_USER\Software\PalmDesktopAutorun
    * HKEY_CURRENT_USER\Software\palmOne
    * HKEY_CURRENT_USER\Software\PalmSource
    * HKEY_LOCAL_MACHINE\Software\PalmSource or anything else that says palm
    Next reboot your computer.
    Then reinstall your palm desktop from the CD and do a hotsync. Use the username that is on the handheld.

  • If I buy the Adobe Export PDF for $23.99/yr - will that allow me to work with a PDF fillable form -- then rename and save that form?

    If I buy the Adobe Export PDF for $23.99/yr - will that allow me to work with a PDF fillable form -- then rename and save that form?

    I want to fill in the blanks on a PDF form --
    Then I want to rename the form and save it.
    Beverly Visitacion
    Location Scout/Manager
    Cell:  305 322-1586
    Fax:  305 328-9666
    [email protected]
    Michael Jarvis
    Location Scout/Manager
    Cell:  305 335-6266
    [email protected]
    "ARMS & THE DUDES"

  • I have subscribed to Adobe Export PDF for one year and paid the fee per my credit card.  I just received an sms to inform me of the amount of R230.61 was deducted today by Adobe Systems Software. I did not request to renew for another year.

    I have subscribed to Adobe Export PDF for one year and paid the fee per my credit card.  I just received an sms to inform me of the amount of R230.61 was deducted today by Adobe Systems Software.  If you have charged for another year, please cancel that service and refund me as I did not request renewal for another year.  I don't find this service very useful as documents converted to Word is not really usable when trying to do changes and amendments to the document. 
    Please confirm.
    Regards
    Esther Grove
    082-334-6786
    Email: [email protected]@

    Hi,
    I have cancelled your Export PDF subscription for the order no.AD001162465AP..
    Your refund no.is 66181102.
    You will get the refund in 7 business days.
    Regards,
    Florence

  • How to convert Xstring to PDF format and send pdf to multiple user

    Hi to all
    can any one provide me saple code to convert Xstring to PDF format and send pdf to multiple user
    i have searched the SDN , but cant get any proper soulution.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana

    Use function module 'SCMS_XSTRING_TO_BINARY' to convert from XString to a Binary table. Just like this:
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer          = lv_xstring_pdf
          append_to_table = ' '
        TABLES
          binary_tab      = lt_doc_content.
    To send the email in an OO way you should user class CA_SEND_REQUEST_BCS. Take a look to program BCS_EXAMPLE_6 or any of the test programs in package SBCOMS.

  • Best practice export PDFs for Pad viewing?

    Have an emergency question here:
    A client has asked us to find out what export settings our former graphic designer used when he took copies of the client's InDesign files and exported PDF files that were higher quality than those exported by the client's in-house designer. Our designer has since moved to another state.
    So, I'm asking here for advice we can relay to the client. His large job is due tomorrow. Although we'll take the PDFs and output them for Web use, this is not the usual stripped-down to basics situation. The results will have to look good on an iPad first of all (also on on Web pages), which means the PDFs we start from need to be higher quality than those usually destined for Web use. The entire publication is photo-intensive with many people pictures where clean appearance is important. Of course the pages also contain text, so that has to be crisp as well.
    As I said, we lost our InDesign guru, and the client's designer is being faced with a new challenge. The client is calling me and asking How soon? How soon?
    Help? Thanks in advance.

    Steve: If these are bitmaps inside a PDF that's going to be viewed on the iPad, you cannot rely on its "native resolution". Think about this: What if the original page size of this PDF is 5.5" x 8"? What if it is 20" x 32"? Which one will show the images "at their native resolution"?

  • Create multiple PDFs from multiple files

    Hi everyone
    I'm trying to use the "Create multiple PDFs from multiple files" function in Acrobat 9 Pro (version 9.4.6) to create about 100 PDFs from InDesign CS5 files. Theoretically this would do the trick for my purpose. BUT: When running the function, it does not use the CS5 InDesign (version 7.0.3), but tries to open the files with InDesign CS3. Of course this does not work. We, as a professional working agency, have installed CS3, CS4 and CS5. Even with making the InDesign CS3 .app invisible an pushing it into the garbage bin during the process did not work. Acrobat still wants to access InDesign CS3. It is not possible to downgrade the files to CS3 files, for there are special (i.e. interactive) functions which only work in CS5. It would be more work than creating the PDFs manually, anyways.
    Does anyone have similar issues? Any ideas how to solve the problem?
    Thanks in advance.
    Thinka

    OK, cool, I found one, which seems to work just fine.
    http://www.kahrel.plus.com/indesign/batch_convert_cs3.html
    found here:
    http://forums.adobe.com/message/3712434#3712434
    Thanks for the hint!

  • Create PDF from Multiple Files Error

    Running Acrobat 8.1.2 and InDesign CS3 8.0.2
    When trying to create a PDF from multiple files, I am getting an error with each file as it is opened by Acrobat to create the PDF file. The error reads:
    Invalid value for parameter 'using' of event 'exportFile'. Expected PDFExportPreset, but received "Standard".
    The files are also left open in InDesign afterward instead of being closed. Does anyone have any idea what might be causing this?
    Thanks.

    Did you upgrade your Office / Word installation?
    PDFMaker-compatible applications for Acrobat 7 with regards to MS Office:
    --| Office 2000
    --| Office XP
    --| Office 2003
    See:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html 
    Be well...

  • Problem Creating PDF with Multiple Files in Pro. 7

    I'm using Adobe Acrobat Professional 7 on a computer with Windows XP.
    The problem is that when I try to create a PDF with multiple files everything just suddenly stops. There are 75 files involved and when it gets to around 41 or so (don't know the exact number because I turned away from my computer for just a moment), it just stops. There are no error messages; nothing. Just a blank Acrobat screen.
    Last week I had a different problem which was resolved by an uninstall/reinstall and I was able to create the PDF with those exact same 75 files, but after the PDF was created I realised that some changes needed to be made. I dumped the PDF, made the appropriate changes and left it for the weekend. Today I the new problem has arisen.
    Any ideas what the problem might be?

    I've read many discussions about Acrobat and problems with server files, with the general solution being what you are doing... copy the files to a local hard drive

  • Flash Builder 4.6 Mobile Application Packaging and Exporting

    Hello Everyone,
    I'm novice to Flash builder,using Flash Builder 4.6 to develop android application.
    It runs in desktop no error occur. But when I export it or try to run it on my
    SAMSUNG GALAXY Y S5360 phone it doesn't run. It's Android version is 2.3.6
    I plugged the USB with pc and tried to run on app on my phone.
    First builder ask that Do you want to install ADOBE AIR to device I select the "YES" option then after it go for 57% and show me an error
    Error occurred while installing the applicaiton: pkg:/data/local/tmp/Runtime.apk   Failure[INSTALL_FAILED_CPU_ABI_INCOMPATIBLE] 3261 KB/s (8653085 bytes in 2.333s)
    And when I Export and Release Build for .apk file.I select the Captive Runtime.
    Then it shows a message
    The package(s) were successfully created but the application could not be installed on one or more devices:   Device ID 0123456789ABCDEF(Google Android): Problem Occurred while installing ADOBE AIR.
    Please guide me...
    Thanks

    After searching on internet and have hands on this problem, finally found the solution.
    SAMSUNG Galaxy Y S5360 has CPU 830 MHz ARMv6 and minimum requirement of minimum system requirements for AIR 3.3 Beta on Android :
    CPU: ARMv7 processor with Vector FPU, Minimum 550MHz, OpenGL ES2.0, H.264 & AAC H/W Decoders OS: Android 2.2, 2.3, 3.0, 3.1, 3.2 & 4.0 RAM: 256MB RAM
    Later I used a Motorola mobile handset with higher version my .apk file worked well.
    Click here For Samsung Galaxy Y S5360 Phone Specification
    thanks to everyone for your efforts.

  • How do I create. A single PDF from multiple files? PDF pack on iOS

    How do I create. A single PDF from multiple files? PDF pack on iOS
    The primary reason I signed up for. PDF Pack was to create a single PDF from multiple image files and other PDFs .
    Is this possible? If so how
    thanks in advance
    rich

    Hi Rich,
    The combine files feature isn't available when you're using Reader for iOS. However, you can log on to the web interface at Adobe Acrobat.com using your Adobe ID and credentials, and use the Combine Files feature there.
    Please let us know if you need further assistance.
    Best,
    Sara

  • Struggling to search for multiple files

    Hi there,
    I am struggling to do a search / select for multiple files.
    Here is my workflow:
    I have 2 computers, the one is used for all image manipulation using a combination of LR & PS and the other computer is used for the sales presentation using ProSelect.
    Once I am finished with my post production I export all the images to my sales presentation computer in JPG file format.
    After the sales presentation I then want to be able to Star the images they purchased on my post production computer. Currently I have been doing this manually, although time comsuming not too bad when you are only talking 20 images. However this is not working for weddings when looking at 150-200 images.
    This is what I have tried. I did an export of filenames from ProSelect. I then removed the suffix i.e. .jpg. In Lightroom I select the Filter Bar, Text, Any searchabe Text, Contains and then paste in the list of filenames. After quite a while it will come back and say no images found or it might come up with only the 1st image in the list. I have tried several combinations of formating the list of filenames and none seem to work i.e. spaces, commas, semi-colon, each filename in "".
    If anyone can help me in this regard I would be very grateful.
    Thanks
    Tony

    If you have the file names of the photos, you can simply paste the text containing the file names into the filter bar text search (set the filter bar to search by file name)
    For example, here's a short list of filenames that I would paste into the filter bar if I was searching my photos
    DSC_0417 DSC_0922 DSC_0924

Maybe you are looking for

  • Transferring library to iTunes on a new computer

    I have an extensive iTunes library on my old computer that I use for my video iPod. I recently got a new computer and want an easy way to transfer the library over to iTunes on that computer. When I plug my current iPod into the new computer it says

  • How to add  ComboBox in Jtable Header

    Hello everyone, I want to add a Combox box in JTable Header .Basically it works as central access to whole table e.g. by selecting delete row in combo box then it should delete the current selected row.If somebody has any idea please share it. Thanks

  • User exit in a transaction

    Hello! How could i know what user exits are involved in a transaction? What i want to do is in transaction MB1A with the movement 551, i want the Cost Center to be determined automaticaly depending in the Reason for movement. But i don't know how to

  • Transactional iView - Pop Up Problem

    Hi Experts,        I am facing a problem in one of the transactional iView in Portal. The iView runs a workflow. When i click on one of the line items (from the list of lineitems), and execute the workflow, it shows me the details of that line item a

  • Using webservices in EP (jspDynPage)

    Hi All in my portal Application (jspDyn page  ) i need to access webservices How can i do this if i get any sample code it will be very helpful Please he me Thanks