Scripting in CS5

Looking for information for someone else, I came across a post here that said "use the script ExportAllStories.jsx that comes with your default InDesign installation." Went to my CS5 installation, inherited from my predecessor … no Scripts option anywhere. My Illustrator CS5 from the same installation has File > Scripts; even my FrameMaker, on the remotest fringes of the Adobe family, has File > Script. What do I have to do to access scripting for InDesign?

Thanks, Peter! Ah, there's nothing like with an integrated UI across products … and this is nothing like an integrated UI :-}
PhotoShop CS5 also has its scripts under File, so did someone take a conscious decision to put scripts at a different level and in a different menu in IDD?

Similar Messages

  • [AS] Versioning to preserve CS3 scripts in CS5

    Hi everyone,
    I've been reading through the thread about what has changed for scripting InDesign CS5. I have been writing scripts for CS3 for about a year and we are upgrading in the new year. I have the demo of CS5 loaded so I can test how the scripts i've written will or won't run.
    Someone indicated in that "what's different" thread that you can "version" the scripts so that they will run in newer versions without having to rewrite the parts of the syntax that have  changed.
    Can someone elaborate on how to do this with AppleScript?
    I put
    tell application "Adobe InDesign CS5"
    set version of script preferences to "5.0"
    at the beginning of the script (and changed all instances of CS3 to CS5 in the script as well) but the script is still not working as with CS3.
    Is there something else I need to do to get CS5 to recognize the syntax of CS3 and understand the commands?
    Thanks

    You will want to set the version back at the end of the script too.
    To deal with the syntax issues, you can wrap the relevant code in:
    using terms from application "Adobe InDesign CS3"
    end using terms from
    You can use the "publish terminology" command to make a dummy dictionary-only version of CS3 so you don't need both versions running; how to do it is documented in the InDesign CS5 Scripting Guide.
    For scripts you run from the Scripts panel, you don't need to make any changes -- just enclose them in a folder called "Version 5.0 Scripts".

  • Document setup bleed script for CS5?

    New to scripting, but trying to figure out how to automate document bleed settings with AppleScript. Is this even possible, and any suggestions?

    I don't have CS5 but I do still do the odd bit of AppleScript… Still Im not sure what you mean here can you either explain in more detail or post an image of what it is you are trying to do?

  • Is there a script for CS5 to export a multi-page InDesign Document to single page InDesign documents

    Hello,
    I am having trouble finding a script or utility that would allow me to export each page of an InDesign CS5 document as multiple single page InDesign documents. I have found one script that does this for CS3, but nothing for CS5. Thank you for any help.

    Generally speaking, if a script doesn't run in a later version, you can put it in a subfolder withteh correct version number as the name and it will work. For CS3 that would be "Version 5.0 Scripts" without the quotes.
    That said, if you have Acrobat pro, it's probably easier to use the extract pages command...

  • Trouble porting CS3 script to CS5

    Hi:
    I'm having difficulty porting some of my CS3 scripts over to CS5. It seems I'm having problems placing graphics in rectangles.
    On the following script:
    tell application "Adobe InDesign CS5"
    activate
    set newDoc to make document
    tell newDoc
    tell document preferences
    set page width to 8.5
    set page height to 11
    end tell
    make rectangle with properties {geometric bounds:{1.75, 1.5, 3.5, 4.375}, fill color:swatch "Black", fill tint:0, stroke weight:0.5, stroke color:swatch "Black", stroke tint:0, label:"ImageBox"}
    set tempPDF to "Macintosh HD:Users:someuser:Desktop:temp.pdf"
    tell rectangle "ImageBox"
    place tempPDF
    end tell
    end tell
    end tell
    it draws the rectangle but I get an error saying it doesn't understand the "place" message.
    Has something changed in how you load a graphic into a rectangle?
    Thanks.
    --jon

    Hi jon,
    Instead of setting the label property, set the name property. Then your script should work.
    Thanks,
    Ole

  • VB Script for CS5

    I am looking for help to update a VB script from InDesign CS2 to InDesign CS5. I have hit a snag with placing a graphic in a named or labeled Frame or box. It has been a few years since I have done much scripting so I am out of the loop of new things.
    If I select the graphic box the script will place the graphic.The line that is commented out.
    But when I try to place it using the label name it fails with error The requested member of the collection does not exist with code 800A7708
    Here is a little of the code where I am having trouble.
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set wshShell = WScript.CreateObject ("WScript.Shell")
    Set myInDesign = CreateObject("InDesign.Application.CS5")
    myInDesign.activate
    set myDocument = myInDesign.Documents(1)
    Set myPage = myDocument.Pages.Item(1)
    ''set MyRectangle = myDocument.Selection.Item(1)
    set MyRectangle = myDocument.Pageitems.item("A1")
    MyRectangle.Place "I:\5_EVOReady\3940249.pdf"
    This code does work properly in Indesign CS2
    Any thoughts or suggestions will be appreciated .

    @rjbull – yes, "something has changed". Since InDesign CS5 you cannot adress the label like that anymore. There is a new property, name, and with item("A1") or itemByName("A1") you'll address the first found pageitem with that particular name in the pageitem collection.
    I'm talking ExtendScript here, not VB Script, but it should be quite the same. Syntax is a bit different, but the basics are the same.
    Unfortunately there is no itemByLabel() method or function. So you have to loop through all the pageitems searching for a pageitem with the label of value "A1".
    See the following posts about that problem and some more issues:
    Harbs
    With CS5, some things have changed
    Oct 3, 2010 1:50 AM
    With CS5, some things have changed
    Uwe

  • CS2 VBA Scripts in CS5

    Hi everyone, I am using VBA via MS Excel to import data into InDesign CS2 templates. I am considering upgrading to CS5. Should my VBA scripts work in CS5, or do you suspect there would be a problem?
    Thanks everyone,
    Mike

    Mike,
    I split your question off to a new thread. Please don't tag questions onto other threads.
    The answer to your question depends on what's in your script, but there's quite a few changes to the object model from CS2 to CS5. You can try putting it into a version folder (i.e. "Version 4.0 Scripts").
    Harbs

  • Need help with a decimal align tab script for CS5

    I have a list that consists of 6 tabbed headers in helvetica bold, followed by a list of numbers that should right align under the headers, and these need to be in helvetica regular. The list is currently in arial font. Is it possible to change both the fonts and set the tabs to align right by using a script? If so, is there one 'out there' somewhere? I am desperate, this is for my daughter's basketball team and they need it asap!
    I am working in indesign cs5 and know how to load and run a script.
    Please HELP!
    Thank you
    Heather

    Hi,
    For some reason I can not download any attached documents from the forums, a bug?
    But anyway, send me an e-mail at "mail (curlya) nobrainer.dk" with the example doc, and i will have a look - no promisses :-)
    Thomas B. Nielsen
    http://www.nobrainer.dk

  • How can I start scripting in CS5 for Windows?

    I have just installed CS5. I tried running a script I had adapted from CS4, and it would not run. Then I discovered there were major changes for CS5, and tried running the sample script FindChangeByList on a short piece of text, but it appeared not to start: the cursor remained flashing as it normally does when in text. Should I try reinstalling or is there a less drastic option?

    Hi Michael,
    I think, then, that the problem is one of permissions. What I've done on Windows 7 installations is to go to the InDesign application folder (in program files), select the InDesign.exe file, use the Context menu (right-click) to display the Properties panel, and then turn on the Run This Program as an Administrator option in the Privelege Level section of the Compatibility tab. Click the Change Settings for All Users button to apply the change (assuming that your current user profile is an Administrator).
    Let me know if that helps!
    Thanks,
    Ole

  • Need Edwardian Script for CS5- anyone know where I can get it?

    I have a client that wants Edwardian Script for her wedding video. I don't have it on any of my Adobe CS5 products. I do not want to join the cloud. Anyone know how I can get the font and use it with CS5?

    I saved the font to my C drive, and then re- launched PP.
    Saving the font will not show up in PP. You need to "install" the font into your "Fonts" directory. Did you install it or just save it? If you did not install it you should just be able to right click on the font and select to install it from the contextual menu. Once the font has been "installed" in your Fonts directory all of the apps will read it. I have Edwardian Script installed on my machines and the Adobe apps read them fine.

  • Wonky .jsx Scripts & InD CS5

    Are there limitations on number of lines in a javascript? Reason I ask is I have 4 scripts, each containing about 10-15 text conversion lines (abbreviations, spelling changes, capitalization, etc.) that I routinely run on a supplied .txt file after formatting with a smart style. Often, some of each do not work; other times, after applying 3 or 4 or 5 of them, my character styling starts going wonky... lightface characters turning to boldface and vice-versa. The total number of lines in the text block is approximately 550 spread over 6 pages, 2 columns.
    See attached dump. Character will randomly change size, change from regular to bold, etc. (The way it's shown is correct.)
    Is this a bug in InDesign or a memory problem or what? Any solution?
    Running InD CS5 7.0.4 on Lion 10.7.2 on Mac Pro (early 2008), 16G ram
    thanks.

    Are there limitations on number of lines in a javascript?
    Not appreciably. Many people regularly run scripts that are thousands of lines long or more without difficulty.
    As described it sounds like a bug, in InDesign or in your script. I would add checking to your script to detect the failure condition and try to figure out why it goes wrong, and whittle it down to the smallest reproducible case. (Also, the scripting forum is probably more help than here...)

  • Problème décalage et script - illustrator CS5

    Bonjour à tous,
    J'ai un souci avec la fonction décalage dans illustrator CS5.
    Quand je fais "objet -> tracé -> décalage" et que je valide, j'obtiens un décalage sur mon tracé, puis j'inverse la sélection, je fais "édition -> effacer" et j'obtiens exactement ce que je veux.
    Mais dès que j'essaye d'intégrer ces étapes dans un script pour automatiser la tâche, dès que le script arrive au décalage au lieu de me sélectionner uniquement le décalage, ca me sélectionne toute mon tracé. Et du coup quand le script arrive à la fonction "supprimer", cela me supprime tout...
    Je cherche donc un moyen de selectionner uniquement mon décalage, ou uniquement mon contour... J'espère que je suis assez clair...
    Quand j'exécute la fonction "manuellement" (sans l'usage d'un script), j'arrive à obtenir exactement ce que je veux. Quand j'éxecute cette fonction depuis un script tout mon traçé est sélectionné, et ma forme disparait de l'écrant.
    J'ai joint à ce post des screenshots pour que vous puissiez mieux comprendre ce que je veux dire.
    Merci à vous tous pour votre aide!
    JM[only]

    C'est exactement ce que je cherchais à faire! Merci beaucoup, c'est parfait! Merci !
    Si je peux me permettre, je cherche ensuite à épaissir mes contours, et à arrondir leurs extrémités, mais même souci : le script ne comprend pas bien. Auriez-vous une autre astuce pour ce problème là?
    Par avance merci !
    [EDIT] : J'ai trouvé la solution - il suffisait de refaire un décalage avec une conjonction arrondie
    Je cherche maintenant à automatiser la réalisation d'un dégradé de couleur sur mon objet à l'aide d'un script... Je vous tiens au courant si cela vous intéresse...? Merci encore !

  • Can I transfer an InDesign script from CS5.5 to CC?

    In CS5.5, I had added a series of custom .jsx scripts (to set opacity using keys 1-9) to the folder user/Library/Preferences/Adobe Indesign/Version 7.5/en_US/Scripts/Scripts Panel. The scripts looked as follows:
    app.selection[0].transparencySettings.blendingSettings.opacity=10;
    However, when I copy and paste the .jsx files into the Version 10 (Creative Cloud) Scripts folder, the script doesn’t work.
    Any assistance?

    I would approach this like so:
    var scriptName = "Set opacity - 10",
    doc, sel;
    PreCheck();
    //===================================== FUNCTIONS ======================================
    function Main() {
        try {
            sel.transparencySettings.blendingSettings.opacity = 10;
        catch(err) {
            alert(err.message + ", line: " + err.line, scriptName, true);
    function PreCheck() {
        if (app.documents.length == 0) ErrorExit("Please open a document and try again.", true);
        doc = app.activeDocument;
        if (!app.activeDocument.saved) ErrorExit("The current document has not been saved since it was created. Please save the document and try again.", true);
        if (app.selection.length == 0) {
            ErrorExit("Nothing is selected. Please select an object and try again.", true);
        else if (app.selection.length == 1) {
            sel = app.selection[0];
        else {
            ErrorExit("Only one object should be selected.", true);
        Main();
    function ErrorExit(error, icon) {
        alert(error, scriptName, icon);
        exit();
    The error above is most probably because nothing is selected so I'd suggest to do some pre-check before the main part of the script is executed: if a document is selected, had been saved, something is selected.
    I also enclosed the string in a try-catch block so if something goes wrong, you'll get an error message. For example, if you select some text and run the script, you'll get this because the command is unavailable in current context:

  • Enfocus Switch and indesign Script (JavaScript CS5.5)

    I was on here last night asking for help with a center all images/graphics code and got terrific feedback.
    Now I have a new problem with the same scrpit, Below is a script that I wrote for relinking broken links. It works like a champ exept when the orignal image/graphic is not the same size of the existing new link. So I added a new part to the code (what i had help with last night) I have bolded the sectioin. 
    When I run the scrpit in Indd everything works great. But, when I run the script throught Enfocus Switch the program stalls
    AnyIdeas or sugestions are greatly appreciated.
    //////Code Starts Here//////////
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    var docs = app.documents;
    for (var i = 0; i < docs.length; i++) {
         UpdateAllOutdatedLinks(docs[i]);
    function UpdateAllOutdatedLinks(doc) {
         for (var d = doc.links.length-1; d >= 0; d--) {
              var link = doc.links[d];
              if (link.status == LinkStatus.linkOutOfDate) {
                   link.update();
    app.activeDocument.pages.everyItem().rectangles.everyItem().images[0]. fit(FitOptions.CEN TER_CONTENT);
    //////// Code Ends Here ////////

    Hi again Paul,
    I don't know what you mean by "Enfocus Switch " do you mean throw the ESTK script editors run?
    If so you probably have it set to ExtendedScript Tool Kit.
    You can change it manually, or better to include this line at the begging of the script
    #target indesign
    After rereading your post I highly doubt that this is the solution, but you can try and if not then you can clarify what you mean by the enfocus script.
    See also annotations below
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    var docs = app.documents;
    for (var i = 0; i < docs.length; i++) { // this "docs" is for all the open documents
         UpdateAllOutdatedLinks(docs[i]);
    function UpdateAllOutdatedLinks(doc) { // You have not declared "doc" without the "s"
         for (var d = doc.links.length-1; d >= 0; d--) {
              var link = doc.links[d];
              if (link.status == LinkStatus.linkOutOfDate) {
                   link.update();
    app.activeDocument.pages.everyItem().rectangles.everyItem().images[0]. fit(FitOptions.CEN TER_CONTENT);
    // this is the active document
    Regards
    Trevor

  • Problem With JAVA Script | Dreamweaver CS5

    Hello There,
                       I am trying to edit my website pages footer css icons for social media presence. It's unable to proceed for display changes which is we have created. We developing plain html website here ( http://www.swiftswebservices.com ) If possible please provide best suggestion here to resolve this problem.
    Thanks & Regards.

    This is a static site that you have developed? It looks and behaves very much like a Wordpress site, but I can see that you are not linking to PHP pages. And besides that confusion, I don't really understand your question - what do you mean by "...unable to proceed for display changes..."?

Maybe you are looking for