Indesign CS3 text frame parameters and export PDF

could use some help with the following:
I need to edit and export a large number (7000) Indesign documents (one page)
1. check for locked text frames and unlock
2. group all text frames
3. set grouped text frames at x=8 millimeters, y 10 milimeters
4. export the documents to PDF in a subfolder called "Out"
5. save and close the documents in the same subfolder as an Indesign CS3 document (orig is CS2)
This is what I've been trying soo far:
Now only checking one text frame - should be all text frames
"close document 1 saving yes" doesn't work because the originals are from CS2
I get a PDF called "Adobe Indesign SC3"
set processFolder to choose folder with prompt "Choose a folder that contains Innd Docs to process"
tell application "Finder"
if not (exists folder "OUT" of processFolder) then
make new folder at processFolder with properties {name:"OUT"}
end if
set the destination_folder to folder "OUT" of processFolder as alias
end tell
tell application "Finder"
try
set listFiles to (files of contents of processFolder) as alias list
on error
set listFiles to (files of contents of processFolder) as alias as list
end try
repeat with thisFile in listFiles
tell application "Adobe InDesign CS3"
with timeout of 120 seconds
activate
set properties of view preferences to {horizontal measurement units:millimeters, vertical measurement units:millimeters, ruler origin:page origin}
open thisFile
set myDoc to document 1
set docName to name
tell myDoc
set transform reference point of layout window 1 to top left anchor
set myBox to text frame 1 of page 1
set properties of myBox to {locked:false}
move myBox to {8, 10}
end tell
export document 1 format PDF type to (destination_folder as string) & docName & ".pdf" using PDF export preset "[Drukwerkkwaliteit]" without showing options
close document 1 saving yes
tell application "Finder" to move thisFile to destination_folder with replacing
end timeout
end tell
end repeat
end tell
end
end
Any help is greatly appreciated - Doing this manually is a lot of work!!!!!
Peter

You're asking for the name of the application, not the document -- you need<br />to do it after your "tell myDoc".<br /><br />You could also get the name from the alias you open, rather than the open<br />document, something like:<br /><br />repeat with thisFile in listFiles<br />set oldDelims to AppleScript's text item delimiters<br />set AppleScript's text item delimiters to {":"}<br />set docName to text item -1 of (thisFile as Unicode text)<br />set AppleScript's text item delimiters to oldDelims<br /><br />You should also move your "set properties of view preferences" line to after<br />your "tell myDoc".<br /><br />-- <br />Shane Stanley <[email protected]>

Similar Messages

  • How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    Hi hasvi,
    Need Template(.indt), textframes etc for the following script:
    var myFolderInd = Folder.selectDialog();
    var myFile = myFolderInd.getFiles("*indt");
    app.open(myFile)
    var myDoc = app.activeDocument;
    var myDocName = myDoc.name;
    var mySaveFile = app.activeDocument.save(myFolderInd.fsName + "/" + myDocName.split(".indt").join(".indd"));
    var myFolderDoc = Folder.selectDialog();
    var myFile1 = myFolderDoc.getFiles("*doc");
    mySaveFile.pages[0].textFrames[0].place(File(myFile1))
    //~ mySaveFile.place(File(myFile1))
    app.activeDocument.textPreferences.smartTextReflow = true;
    var myPDFFile = new File(mySaveFile.filePath + "/" + mySaveFile.name.split(".indd").join(".pdf"))
    myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/abc.pdf"));
    alert("Process Completed")
    Regards
    Siraj

  • How do I import and export PDF's from Ibooks

    How do I import and export PDF files from Ibooks on the IMAC running Mavericks?
    How do I sync my PDF files in IBooks to the IPAD when they were not purchased from the bookstore?
    I noticed that I could email the PDF and then add it to IBOOKS on the IPAD.
    Is there a 3rd party IBOOK type reader that will address this issue?
    When I upgraded Mavericks it moved all of my PDF files in ITUNES application to IBOOKS and removed all reference to those
    books in ITUNES. When I purchase a book from IBOOKS store on the IMAC, the books shows up in IBOOKS on the IPAD.
    All of my PDF files will not sync up with the IPAD.
    I do hope this is a problem that Apple will address and would like to know when the fix will be available.

    Hello,
    Thank you. I found that option you pointed out. I can now change it from 1080i to 1080p and I can chance the resolution. However I still can't change the frame rate. It still stays at 29.97.
    Could this be due to the camera? I am using a Canon VIXIA HF S100 with 30p and 24p frame rate options. I suspect that it does not really shoot at true 24p and only does 24p within 60i.
    Frankly, I don't really care about getting 24p support too much but it would be very nice to have the option.
    I'll keep toying with the program. Still, anymore ideas or thoughts would be greatly appreciated.
    Thank you Wild Giles.

  • Add frame hold and export frame

    hi
    i'm working on HD broadcast cartoon animation.
    'add frame hold' and 'export frame' are not creating a 2 field, proper frame hold for me - yes i can tweak the field options using 'always deinterlace' or 'flicker removal' but this isnt a fix or a true result of a 'frame freeze'.
    is this a bug or am i  missing something?
    thanks
    Joe

    Is your timeline interlaced?

  • Whats the difference between PS and Export pdf

    Hi all,
    I need the difference beween PS and Export Pdf. Which one is better for printing. I need the reason as well.
    Thanks in advance

    Distilling is archaic.
    http://indesignsecrets.com/creating-pdf-export-or-use-distiller.php
    Bob

  • Hyperlinks that I create in InDesign CS3 don't work in the PDF

    I've created several hyperlinks in an InDesign CS3 file, using the Hyperlinks panel. But when I export to PDF format, the hyperlinks don't work. Even the ones that start with http:// or www. don't work. Is that just the way it is? Or am I doing something wrong?
    Thanks,
    Ellen

    Is there a button? I don't see anything saying "Hyperlinks" in the Export dialog box. I've attached an image of what I'm seeing.
    Thanks

  • Removing text frames from rdf export format

    After a report has been exported in rdf format, can anyone tell me if there is a way to remove the text frames from the document, so that the formating is retained but by using word's tabs etc.
    Our client needs to manually add sections to the document after the report has been generated and we find that because of the text frames the document formatting gets ruined when new sections are added to the file.

    I don't know whether any of this will help?
    According to the manual there are only a very limited range of adjustments you can make to iMovie projects.
    Turn iMovie adjustments on or off
    When editing a project in iMovie, you can adjust several video attributes, such as exposure, brightness, and saturation, in the Project Browser. If you import an iMovie project that has these adjustments into Final Cut Pro, the adjustments are retained and appear in the Color area of the Video inspector as an iMovie item.
    Although you cannot modify the adjustments added in iMovie, you can choose whether they are applied to the clip or not.
    Note: Video adjustments you make to clips in the iMovie Event Browser are not retained and do not appear in Final Cut Pro.
    Turn a clipʼs iMovie adjustments on or off
    In the Timeline, select a clip with iMovie adjustments applied, and select or deselect the iMovie checkbox in the Color area of the Video inspector.
    Note: The iMovie adjustments appear only in the Timeline, not in the Event Browser.

  • Executing a Job and Exporting PDF Output via API

    I can't seem to execute a job and export the PDF output via the API.<BR><BR>I use the following code snippet and nothing is exported:<BR><BR> jobAction.setAction(jobAction.ACTION_EXPORT_SECTION);<BR>     jobAction.setFormat(jobAction.FORMAT_PDF);<BR><BR>If use the snippet below, HMTL is exported:<BR> <BR> jobAction.setAction(jobAction.ACTION_EXPORT_AS_JOB_OUTPUT);<BR>     jobAction.setFormat(jobAction.FORMAT_PDF);<BR><BR>The javadoc for JobActionEnum says to use the former method. However, this doesn't seem to work. Is this an API bug or something obvious that I am not doing?<BR><BR><BR> -Eric D. Hill

    Joe
    Here is the where you can change the server group/job server.
    - After you add the Batch/real Time job as a webservice.
    - Go to the Webservice Batch Job Attribute and from the drop down choose the "Enable job Attributes" and hit apply.
    - After this if you use the WSDL URL http://<Data Services Web Server>:<Web server Port>/DataServices/servlet/webservices?ver=2.0&wsdlxml
    - You will see the job attributes that you can change based on the allowed parameters mentioned in the documentation.
    The batch job or real time job is published without the job parameters by default. Once you enable the job attributes, remove and re publish the batch job as a web service. The application making the call to this webservice should be able to read the WSDL generated by Data services and pickup all the input and output parameters of the method.
    Refer to the Data Services Integrator guide (Chapter 3 : pages 25 - 33 ) to get the exact parameter values permitted via Data Services jobs called via web services.
    Hope this helps!
    Thanks & Regards
    Tiji

  • InDesign CS6 text frames acting wonky

    I started a brand new document. Some text has been copy/pasted from CS4 documents or Word but all of it is acting weird. If the text frame is less than 7.4375 in wide, then it breaks and reflows at odd points and I can't seem to get the frame to end where I want it to.
    I don't know where to look to fix whatever setting is doing this.
    Above: Text frame at margin width less than size noted above. but when the frame is extended to the margin height, it breaks the text and doesn't keep it where I want.
    Below: Text frame at 7.4375 in wide. It will break at different places and show all that's supposed to be in the frame

    First, show non-printing characters so you can look for non-breaking spaces. Next check for a long string of text to which No Break has been applied (if you make the frame narrow and the text goes into overset, it's easiest to find these problems by looking at the first bit of text past the overset indicator in the Story Editor). The next possibility, which would be reinforced by large changes in where the text goes into overset whenyou adjust the frame heith only slightly, is that there are keep options applied that prevent ID from fitting all of the required text into the remaining space in the frame.

  • Upgraded to Adobe Reader XI - Docusign and Export PDF tools are missing.  How do I get them back?  Docusign through my company is current, and Export PDF through my personal account is current as well.

    As usual, I blindly updated my PDF and now all of my tools are gone...  I used to have a tools menu on the right side where my document signing and export commands were available, and I cannot figure out how to get them back.

    Gee, Pat, this is a  real big help.
    Nobody could possibly think anyone would ask for help without first trying to fix the issue oneself. Or maybe you do. I have opened the file and looked under security. I have changed it to owner-notebook (which is what the techs called me) and clicked accept but geepers it didn't work.
    Maybe someone else has an idea.
    Take Ownership of a File or Folder
    The above should be a link. At least I copied and pasted the link. I did what was stated in there. It isn't like brain surgery. But it is not working. I ended up being able to open some pdf files after transferring them from one partition category to another. I wish it was that easy as you seem to think.
    Thanks for the help. Have a great year.

  • I recently downloaded the latest version of Adobe Reader and when I try to open a new pdf I get the Adobe logo and text in Japanese and the pdf doesn't open.  Any help would be appreciated.

    I recently downloaded the latest version of Adobe Reader for my MacBook Air and now when I try to open a new pdf I get the Adobe logo and text in Japanese and nothing else.  The pdf doesn't open.  Any suggestions?  I never had this problem until my cache was cleared and I had to re-install Adobe Reader.  Any help would be appreciated.

    Just to say I am having exactly the same issue on my MacBook Air.  I can't remember what I did but after this happened a few times, and once I had clicked on the Japanese pop up, I managed to do something that now means I get the pop up in English, saying 'Adobe Reader blocked for this website'.  When I click on it it asks me to trust the content and then I get a bar with the text in Japanese.  Eventually the pdf does open. However it's very irritating that I have to trust every pdf individually which I never had to do before the latest upgrade, and I don't understand why I get messages in Japanese.  I will be interested to see whatever answers other more technical people may provide!

  • I started and Export PDF over two and half hours ago, and it is still going.  How can I stop it?

    I started an export PDF over two and a half hours ago and it is still going.  I can't stop, and I can't upload export anything else.

    I have the same problem - updates are stuck on loading, and the app store is now also doing the same.  I've tried resetting, but it hasn't made any difference.
    I haven't been able to load iTunes onto my computer - 2 hours on the phone with Apple, as well as 4 hours of my IT guy's time (which I paid for) and no one could help.  So going through iTunes on the computer is not an option for me.
    Is there any way of cancelling or resetting the apps just with the phone?
    Have had the phone for 6 months and this is the first time it's happened, but it's been stuck like that for about a week.  Now I can't update or load any apps.

  • [JS, CS3] Change text color and export pdfs

    Hi there,
    I am new to scripting and I am trying to find out if a script exists that will export a PDF, then change all text of a certain color to black, then export another pdf with the same settings as the first, but appending the filename. I've searched the forum and understand about the change color bug, but I haven't seen anything in JavaScript -- It's all been applescript.
    Anyone have any brilliant ideas?
    Help is GREATLY appreciated!
    -Molly

    I couldn't get the specific color replacement, I chose the rambo approach...<br /><br />if(app.documents.length!=0)<br />{<br />     var doc = app.activeDocument;<br />     if(doc.saved==true)<br />     {<br />          var docFile = doc.fullName;<br />          var docFile = doc.fullName;<br />          var myFile = File(docFile).fsName;<br />          var myPdfPreset = app.pdfExportPresets.item("[PDF/X-1a:2001]"); //Put what you want <br />          var myPdfFile = new File(String(myFile).split(".indd")[0]+".pdf");<br />          exportPDF(myPdfFile,myPdfPreset);<br />          var myTfs = doc.textFrames.everyItem().getElements();<br />          for(i=0; i<myTfs.length; i++)<br />          {<br />               //will reset all texts to black, quite drastic but works.<br />               myTfs[i].texts[0].fillColor = doc.swatches[2]; <br />               //Should be better to use swatches.item("[Black]"); <br />               //But can't check on my french system<br />          }<br />          var myPdfFile = new File(String(myFile).split(".indd")[0]+"_AllTextsToBlack.pdf");<br />          exportPDF(myPdfFile,myPdfPreset);<br />     }<br />     else<br />     {<br />          alert("Please save your document first");<br />     }     <br />}<br />else<br />{<br />     alert("You need to open a doument first !");exportF<br />}<br /><br />function exportPDF(myPdfFile,myPdfPreset)<br />{<br />     doc.exportFile (ExportFormat.PDF_TYPE, myPdfFile, false, myPdfPreset, undefined, undefined, false);<br />}

  • InDesign CS3 Text Variables

    I was wondering if anybody could help me.
    Is there a way to export to a PDF from InDesign, and the text variables still function as they would in InDesign?
    Any help would be greatly appreciated! thanks

    I don't believe that InDesign writes anything into a PDF file it creates that would allow text variables to work in the PDF. There is no concept of "text variables" in the PDF spec.

  • 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? :\

Maybe you are looking for

  • Memory Leak in JRockit 8.0 Console?

    After running the console for a couple of hours it starts to react very slow, and after ca. 5-6 hours it hangs with a out of memory exception.. Ove

  • My J4680 will not copy on my mac 10.5.8

    Presently using mac 10.5.8.  Scan works fine.  When I place a sheet on the glass to copy, all that comes out is a blank page.  I relined the cartridges.  All other printing is fine.

  • Inforecords at plant level

    Hello, My client has presently 2 company codes and 2 pur org assinged to them. Example is - one company cdoe FFI, assinged to pur org FFSO. other company code JMC asinged to pur org J001 recently. One material / vendor combination is maintianed in in

  • SMTP Server is unreachable

    I can't send email through Windows Live Mail that uses iCloud Mail account anymore. I 've been using this client for iCloud mail service for more than two months, so all the configurations are guarenteed to be correct. But I can't send any email toda

  • Unable to open PDFs with AR 11.0.9 on MacBook Pro due to updates.

    Beginning in early Sept. 2014, unable to open PDFs from trusted sources on MacBookPro (MBP) OS 10.9.4 running current AR 11.0.9. Previously, these documents could be downloaded and opened. Interestingly, an iMAC running OS 10.7.5 running AR 10.1.2 ca