Change of CS4 CS6 script

Hello

I need to modify this script to CS4 at CS6:

myRoundCornerLeftBottomVerticalGreen = myDoc.graphicLines.add (myDoc.layers.item ("Die"));
myRoundCornerLeftBottomVerticalGreen.geometricBounds = [myPageHeight/2, ".125 in", myPageHeight-.125,  ".125 in"];
myRoundCornerLeftBottomVerticalGreen.strokeColor = myDoc.colors.item("Proof");
myRoundCornerLeftBottomVerticalGreen.strokeWeight = "1pt";

var myPathPoint = myRoundCornerLeftBottomVerticalGreen.paths.item(0).pathPoints.add (myDoc.layers.item ("Die"));
myPathPoint.anchor = [myPageWidth/2, myPageHeight-.125];
myRoundCornerLeftBottomVerticalGreen.cornerOption = CornerOptions.ROUNDED_CORNER;
myRoundCornerLeftBottomVerticalGreen.cornerRadius = ".125 in";

Thank you.

See the documentation for Jongware DOM for CS6 here:

Adobe InDesign CS6 (8,0) object model JS: Table of contents

As you have a rectangle you want to watch:

Adobe InDesign CS6 (8,0) object model JS: Rectangle

And here you have several properties to your corners.

You can apply them all with the properties property to your rectangle like this:

//Working with a selected rectangle
var myRectangle = app.selection[0];

myRectangle.properties =
    {
        bottomLeftCornerOption:CornerOptions.ROUNDED_CORNER,
        bottomLeftCornerRadius:".125 in",

        bottomRightCornerOption:CornerOptions.ROUNDED_CORNER,
        bottomRightCornerRadius:".125 in",

        topLeftCornerOption:CornerOptions.ROUNDED_CORNER,
        topLeftCornerRadius:".125 in",

        topRightCornerOption:CornerOptions.ROUNDED_CORNER,
        topRightCornerRadius:".125 in"
    };

I recommend to download DOM documentation as CHM files for best research opportunities:

InDesign JavaScript help

Uwe

Edit: Removed the last ',' inside the {} code.

Tags: InDesign

Similar Questions

  • CS4 - CS6 filters

    I just upgraded to CS4 - CS6 and have noticed the filters are not the same, anyone know how to import filters CS4 CS6 please?

    Are you talking about the filter as art gallery, Brush Strokes etc not being is not on the list of filters photoshop cs6?

    You can go to (Edit) Photoshop > Preferences > Plug-Ins and check show all names and groups of the Gallery of filters.

    Restart photoshop to make the changes take effect.

  • Change the Gallery HTML / Script

    Hi all

    New to the Forum, so please be gentle!

    I want to change some of the script / HTML contained in the galleries of stock. I know where the files are located, and what I need to change, but my PC will not allow access to these files by saying that they are protected.

    All the guys and galls allow snippets of advice to edit pages in an editor?

    I intend to backup the files first, but as I said, they seem protected against tampering.

    Thank you very much, and I'll be happy to provide you with more information if necessary.

    Simon

    You should not edit these files - but assuming you can see them, you can copy galleries (IE files) for your files and folders for the user templates:

    • Win7: Galleries C:\Users\USER\AppData\Roaming\Adobe\Lightroom\Web
    • Mac: USER\Library\Application Support\Adobe\Lightroom\Web galleries

    You may need to create the "Web galleries" folder.

    Start by editing galleryInfo.lrweb. You will need to change the title to something, you would be able to recognize in the Web and change the line id to something unique to your gallery. Restart Lr and your gallery should be displayed in Style available to the Web Control Panel - as well as built-in ones.

    You can see an example of a Gallery HTML changed here

  • Film > change the Framerate with script?

    Hi guys, I am importing sequences of images with my script, recreate the local folder structure.

    It all works very well, but now I can add an option of framerate. May specify a different framerate as by default the project. This can be done in the GUI with right click > interpret footage > main... > Frame Rate

    Is this possible with the script?

    I could find this method AVItem setProxyWithPlaceholder()... not sure that this is the best way

    Thanks in advance!

    Basically, my script works like this:

    myFolderArray = myFolder.getFiles ();

    for (i = 0; i < myFolderArray.length; i ++) {}

    If {(myFolderArray [i] instanceof file)

    var aFolder = myFolderArray [i];

    myFileArray = aFolder.getFiles ();

    var newFolder = app.project.items.addFolder (aFolder.name);

    var myImportOptions = new ImportOptions();

    If (myFileArray [0] instanceof File) {}

    aFile var = myFileArray [0];

    {if (afile)}

    myImportOptions.file = aFile;

    myImportOptions.sequence = true;

    newFile var = app.project.importFile (myImportOptions);

    newFile.parentFolder = newFolder;

    }

    }

    }

    }

    You can use the method conformFrameRate of the mainSource object.

    myImportOptions.sequence = true;

    newFile var = app.project.importFile (myImportOptions);

    newFile.parentFolder = newFolder;

    newFile.mainSource.conformFrameRate = 24;     Assign the frame here rate.

    70 pages of the guide After Effects CS6 Scripting says more.

    After effects Developer Center | Adobe Developer Connection

  • Change of CS4 &amp; LR5 on Windowns desktops to CS + LR monthly subscription for Mac: be aware, or beware of the, before and during?

    Any change of CS4 & LR5 on computers Windowns of CS + LR monthly subscription for Mac Office, catalogues, files residing on the external HARD disk etc. (location multiple life; a lot of travel). Whatever it is I need to be especially aware, or beware of the, before and during? Thanks a lot for the suggestions, recommendations, advice, experiences. Best, Joachim

    Hello Joachim,.

    I suggest that ask you this question on Lightroom forum: Photoshop Lightroom.

    Thank you

    Island of Elba

  • I bought CS6 extended yesterday (yes I did). I have CS4 and many photos in bridge (keywords tag). What is the best way to make my photos in bridge cs4 cs6? Is there a guide how to go about so I do not lose one of my keywords/photos? WH

    I bought CS6 extended yesterday (yes I did). I have CS4 and many photos in bridge (keywords tag). What is the best way to make my photos in bridge cs4 cs6? Y at - it a guide how to: so I do not lose one of my keywords/photos? Who can help?

    Keywords travel with the file, so it shouldn't be a problem. Here's how export you key word of CS4 information and import it into CS6.

    How to import metadata and keywords Bridge to CS6 in CS4 so that I don't lose if CS4 is not

    I hope that your situation is not as complicated.

    Gene

  • When I try to change the PS CS6 workspace, I get the following error message: "Could not apply the workspace because of a program error." Does anyone have a solution to this problem

    When I try to change the PS CS6 workspace, I get the error message of passage: "Could not apply the workspace because of a program error." This happens when I try to change the default setting (Essentials) to any other predefined workspace.  Does anyone have a solution for this problem?

    If this fails, Menu Finder > go > go to folder

    ~/Library/preferences/Adobe Photoshop CS6Settings/workspaces (modified)

    Move the change case of workspaces on the desktop, and then restart the Psalm

  • CS4 CS6 upgrade expires

    Currently, I have PS CS4 and after using the CS6 trial, want to upgrade to CS6. I understand that it is possible to upgrade CS4--> CS6 before the end of the year. However, I'm not sure how this decision threshold. Will be-> CS6 CS4 upgrades will be sold until the end of 2012, but install at any time after, or the upgrade will refuse to install from 2013, even if purchased before the decision threshold? Is there a single upgrade disc, or different ones for CS3/4 users and users CS5?

    I ask, because I intend to upgrade to CS6 on my current PC this year, but next year want to buy a new PC. I want to so I know if I will be able to reinstall the upgrade CS6 on my new PC in 2013, after his first resignation of former.

    This is strictly a trade policy that does no influence on the technical level. The software install as well after the end of the year. The installer is unified, the only difference is the serial number. That is why you must tell what "release candidate" you when you buy the product to get the correct serial number.

    Mylenium

  • Maximum size of documents changed in CS4

    The maximum size of the files, InDesign CS2 and CS3 is 5486 mm.

    Can someone tell me if it has changed in CS4?

    No, it's always the same limit. You can get a bit bigger if you specify it in points: 15 552 pts.

  • InDesign CS5 and CS6 scripts changes/incompatibilities

    I'm new to scripting InDesign and need to write a JavaScript very complex for InDesign using the Toolbox. My concerns are if CS5/5.5 users will be able to run the script written for CS6. He knows incompatibilities with different versions? If Yes, where can I find a document to compare the differences. I will probably need support the CS5 and CS6 (and anything in between), so a possible solution would be to build for CS5, but if I do, will I'm missing out on all the new key features of CS6?

    There are differences of 1 DOM version to another and they can and will break your script, if you have not designed to handle. For example:

    If you want to use script like me labels (because they are awesome) the following will break if you use CS5 or later:

    app.activeDocument.pageItems.item("myLabel").remove();
    

    So, you have to force the DOM to V6.0. But when you do so be sure to come back to the original version after you're done or you can create more problems. This can be done like this:

    app.scriptPreferences.version = 6.0; // CS4's DOM version
    app.activeDocument.pageItems.item("myLabel").remove();
    app.scriptPreferences.version = 10.2; // Current CC DOM version
    

    It is very annoying (for me at least), so I wrap functions that require DOM changes with a customized version changer to handle this for me. Regarding the list of incompatibilities? Not sure, maybe someone here has one, I know that jongware has a website with all the DOM password 1 version to another. This can be found here:

    InDesign JavaScript help

    I hope this helps.

    Brett

  • Need help importing site Dreamweaver CS4 CS6

    I created a website for a friend in CS4 a few years ago and pretty much stopped using Dreamweaver. Then I changed computers and updated Adobe CS6.  Now she wants a change, but his site no longer appears in Dreamweaver. I neglected to export the settings before the upgrade (doh!) Any suggestions? I can not even find the passwords everywhere

    Those are files on its site online?

    If they are, you are on the spot. The folder that lists these files is your site.

    You can simply create a new site definition in DW and point the local site root to the folder that contains these files, and you're good to go.

    And your friend can give you the passwords / qualifications to web services / servers & you can set it as a remote site of the site definitions.

    Trust that this assistance.

  • Numbered update cross-references blocks InDesign CS4 CS6 and

    I have a major medical journal that has a hundred references, I met with the thought that the customer can insert or change the references. I was correct and the client has now several references to go, I have updated the first in the list numbered at the end and disappeared to "update the cross-refernce" and InDesign crashes. I tried this in CS6 and CS4 but both crash.

    You could try exporting as IDML and opening the IDML and saving it under a new name.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

    mccoole1 wrote:

    My Indesign has the latest updates and patches (mac of my colleague - in which the error report came from - does not work). A bit annoying that Windows is not the error report, or if it doesn't it is not after that InDesign broke down.

  • How to open a document in CS4 InDseign Script to exist

    On writing scripts, InDesign 2.0, open one exists document is easy.

    Application.Documents.Open (path + file name);

    But there is a more open method for ID CS4 Documents...

    and I found there changed a lot in the IDS of objects, particularly on methods.

    Anyone could show a way to solve this problem?

    Thank you

    (Sorry, my English ability is low...)

    It's a big step! (Generally forwards, one would hope)

    Addition of baselines and autour bumps are covered in this msg: http://forums.adobe.com/message/2512322#2512322

    I would add as well as you can find examples for basic functions in Adobe script Guide (it's somewhere in their section, InDesign, under "Scripting Resources").

    ... And there's always my own interpretation of assistance from ESTK. Not a guide of programming, but you can search the complete programming model for 'open' and inspect all the objects to which it applies.

  • Change the paragraph by Script Style

    Hello!

    I don't know if this is the right place for this question but since its related to scripting, I'll ask here.

    Is it possible to change the paragraph Styles InDesign with a Script?

    For example, I need set Format1 hyphenation to specific values properties without changing the other properties. For Format2, I need to change other properties such as the Glph scaling.

    Like I need to do this with a lot of files, I suppose that the best way to archive it could be a script.

    Is there someone who had an idea on how to do it?

    Thanks in advance

    Thomas

    You're right, this can be done very effectively with a (relatively) simple script. This is an excerpt from a longer script of mine which covers a changing choice of design of end minutes documents open at once:

    for (i=0; i
    

    For a list of all paragraph properties that you can change, look in the ESTK help or (in a more user-friendly way to read and search) in an online version of these same data: InDesign ExtendScript API (10.0).

  • is it possible to change the toolkit cs6 flash for namespace createjs as adobe flash cc

    I added cc flash photography. Here we change namespace. But for flash cs6 for createjs toolkit. We can do box Toolbox for createjs?PAh9U.png

    I'm sorry. I don't understand this question, or how it relates to Dreamweaver.

    Nancy O.

Maybe you are looking for

  • Hide a table based on a checkbox control in another table

    I would like to hide the table 2, to check a checkbox in the column 2, line 3 in table 1. Is there an easy way to do this? Thanks in advance. AJ

  • Combo DVD/CD DVD drive don't read not more, still reads CDs

    I just popped a DVD in a CD/DVD combo drive that I use for years and he refuses to acknowledge that there is nothing on the disc.It also seems to take a lot of time to ride. I tried Device Manager and the "driver update", but it says that I have the

  • access denied to previous default folders of the XP user

    I had a computer crash to do in a blackout during while I was repairing Windows XP.  From there I had to re install Windows XP on another drive.  The files and folders I want are present in the old installation of XP, but I can't get back them.  Acce

  • HP Office jet 6600 Readiris Pro 12

    Just bought a HP Officejet 6600 Installed the disc that came with it and saved - now can't find Readiris Pro 12 on the computer - searched all files - where it installs? There is an icon on my desktop for I.R.I.S. Resource Center - but nothing for th

  • File security does not not correctly on the desktop computer

    Hello world I have securities of problem setting on the files on the desktop. (on files work correctly) My problem - example: Sign in to Windows as the user John. Then I create the new file test.txt on desktop and set permissions to reading and execu