Scripting a "Width Point" on a PathItem

Hello all,
You know the width tool? The one that lets you add "width points" to a line to adjust the width of the line at the point? I want to be able to script that!
Basically, my project is to add a bunch of width points to a line and give them random widths at those points. Any way of doing this? I'm planning on doing a LOT of these, so I'd rather not do them manually.
Cheers,
Mike

as of CS5, that's not scriptable....the closest thing I see would be creating a Graphic Style by hand, then you could apply that Graphic Style via scripting.

Similar Messages

  • How to delete variable width points?

    I've read a couple of methods for deleting variable-width tool points on a path (NOT path points or paths.)
    None of them work for me; is there some trick to doing it?
    I have read: A) Hover over the unwanted point (with var. width tool) and hit Delete and B)Select unwanted point with var width tool and hit delete.
    Both moves result in the entire path being deleted.
    thank you for any insight.
    w

    Yes that is how it works. Cclick to select after your icon changes (pointere with a  tilde ~)and delete. If you have only one variable width point, than it may have the appearance of the entire line getting deleted, try aon a path with 2 variable width point until you get the hang of this.

  • Scripting the vanishing point filter?

    Hi,
    i'm looking for a way to script the vanishing point filter in CS3.
    Is there a possibility to do so?
    Or do i have to programm that all by myself?
    I want to project an image into another with a given perspective.
    I have to use scripts, because this action should be automated on a given set of images later on.
    Any help is appreciated.
    Cheers,
    Carsten

    [email protected] wrote:
    > Hi,
    >
    > i'm looking for a way to script the vanishing point filter in CS3.
    > Is there a possibility to do so?
    See if the ScriptingListener plugin generates any code for it. If it doesn't,
    you are probably out of luck.
    -X

  • SAP Script Box Width Vs Font Size

    Hi All,
    I have a SAP Script where Boxes Width are based on CH for ex..
    BOX YPOS 1 LN WIDTH 3 CH HEIGHT 1 LN FRAME 1 TW'
    BOX YPOS 1 LN  XPOS 3 CH WIDTH 18 CH HEIGHT 1 LN FRAME 1 TW
    Now i have to populate the value in that 2 box with some values say mandt and matnr which are 3 and 18 char in length (Keeping those length in mind i desined the boxes)
    When i use Courier Font Size 12 , it fits fine in box boxes but when i use font size 8 then everything is messed up...
    It start up properly then the first character of matnr is displayed in the first box...
    How do i determine the box size width based on the font size ...
    In SAP Script header setting i have char/inch set up as 10 --Would that make any difference
    Please the client needs in SAP Script only...
    Thanks

    Any suggestions will be appreciated

  • CS5: How do I clear all width points from a line?

    The width tool is cool, but how do I get rid of all points I created if I don't like them? I know I can delete them by shift-clicking all, but it's a lot of work and I'm not really sure I'm getting them all. Is there a clear all somewhere?

    Select the path and open the Stroke panel. Look for a pull-down at the bottom labelled Profile. From this, select Uniform.
    The same setting is available on the Control Panel and in the Stroke settings in the Appearance panel.

  • Openscript load scripts and synchronization points

    Hi all,
    We are using Openscript-scripts to do load testing.
    Is there any way to set up synchronization points with these scripts or is that function disabled for openscript-scripts?
    Anyone knows?
    Regards

    Hi
    You can not set up sync points with open script right now, development is looking into it but I'm not sure when that feature will be available.
    Regards
    Alex

  • Scripting TGetProperty width and height

    Hello all,
    i have a problem with the flash player in IE6 and FF2.
    I have a html page with some flash movie elements on it.
    I'm using SWFObject to bind the movies in.
    After the onload event is fired, for each flash movie the
    javascript function setCorrectSize4Flash will be called to resize
    the html container element (embed, object tag) automatically by the
    given width and height of the flash movie.
    Therefore i'm checking if the movie is completely loaded and
    if width and height is not undefined.
    So if i'm getting width and height, i'm resizing the
    container element to best fit in.
    My problem is now, that the same movie used several times in
    the same html page has every time different width and height
    values. Sometimes the aspect ratio is 1:2 and sometimes it's 2:1.
    Is this a problem of the flash player plugin or am i doing
    something wrong.
    Best regards,
    bartmark

    Thank you for your answer. But I don't understand:
    The question is not the margin. I put in the body margin: 0; padding:0; and there is no margin.
    I want to know the viewport:   the width and height with the iPad in horizontal position and without the address bar.
    This does not coincide with the 1024 x 768. (nor the 946 x 768 if I rest the address bar).  I don't understand why
    Thank you
    Narcís

  • Snap vector shape points to pixels

    I'm trying to write a JS script in Photoshop CS5 which will snap all the points in a selected vector layer to the nearest whole pixel.  This is extremely useful when producing artwork for web pages, mobile phone apps etc.
    I've figured out how to obtain the list of vector points (via doc.pathItems[].subPathItems[].pathPoints[]) and it's easy to quantize these values to the nearest integer.  The bit I can't figure out is how to apply the quantized values back to the document.  I've tried simply writing the value into the obtained pathPoints[] object but this seems to be read only and any changes made are not picked up by the document.
    Would anyone have any advice on the last piece of this puzzle?
    The scripting guide has example script for creating a new path (rather than modifying an existing one), so another idea would be to construct a brand new (snapped) path and layer based upon a complete copy of the original, and then delete the original layer.  This seems a bit of a long way round though.

    For the sake of completeness, but at the expense of some readability, here's a version which deals with multiple selected layers.
    The only final issue I have is that my script adds many operations to the history list.  Does anyone know how I can make my whole script a single atomic history step?
    #target photoshop
    // Constants
    var QUANTIZE_PIXELS = 1;    // The number of whole pixels we wish the path points to be quantized to
    // Some helpers
    function cTID(s) { return charIDToTypeID(s); };
    function sTID(s) { return stringIDToTypeID(s); };
    app.bringToFront();
    main();
    // Quantizes all points in the active layers' vector masks to the value specified by QUANTIZE_PIXELS.
    function main()
        // Work in pixels
        var OrigRulerUnits = app.preferences.rulerUnits;
        var OrigTypeUnits = app.preferences.typeUnits;
        app.preferences.rulerUnits = Units.PIXELS;
        app.preferences.typeUnits = TypeUnits.PIXELS;
        // Obtain the action manager indices of all the selected layers
        var SelIndices = GetSelectedLayersIdx();
        if (SelIndices.length == 1)
            // Only a single layer is selected
            QuantizeVectorMaskForActiveLayer(QUANTIZE_PIXELS);
        else
            // More than one layer is selected
            for (var i = 0; i < SelIndices.length; ++i)
                if (MakeActiveByIndex(SelIndices[i], false) != -1)
                    QuantizeVectorMaskForActiveLayer(QUANTIZE_PIXELS);
        // Restore original ruler units
        app.preferences.rulerUnits = OrigRulerUnits;
        app.preferences.typeUnits = OrigTypeUnits;
    function QuantizeVectorMaskForActiveLayer(zQuantizeUnits)
        var doc = app.activeDocument;
        var PathItems = doc.pathItems;
        // Nothing to do if the active layer has no path
        if (PathItems.length == 0)
            return;
        var QuantizedPathInfo = null;
        for (var i = 0; i < PathItems.length; ++i)
            var Path = PathItems[i];
            // It would appear that the path for the selected layer is of kind VECTORMASK.  If so, when does WORKPATH come into play?
            if (Path.kind == PathKind.VECTORMASK)
                // Build a path info structure by copying the properties of this path, quantizing all anchor and left/right points
                var QuantizedPathInfo = BuildPathInfoFromPath(Path, zQuantizeUnits);
                if (QuantizedPathInfo.length > 0)
                    // We've now finished with the original path so it can go
                    Path.remove();
                    // Add our new path to the doc
                    var TempQuantizedPath = doc.pathItems.add("TempQuantizedPath", QuantizedPathInfo);
                    // Convert the new path to a vector mask on the active layer
                    PathtoVectorMask();
                    // Finished with the path
                    TempQuantizedPath.remove();
    // Copies the specified path to a new path info structure, which is then returned.  The function will
    // optionally quantize all points to the specified number of whole units.  Specify zQuantizeUnits = 0
    // if you do not wish to quantize the points.
    function BuildPathInfoFromPath(zInputPath, zQuantizeUnits)
        // The output path will be an array of SubPathInfo objects
        var OutputPathInfo = [];
        // For each subpath in the input path
        for (var SubPathIndex = 0; SubPathIndex < zInputPath.subPathItems.length; ++SubPathIndex)
            var InputSubPath = zInputPath.subPathItems[SubPathIndex];
            var OutputPointInfo = [];   
            // For each point in the input subpath
            var NumPoints = InputSubPath.pathPoints.length;
            for (var PointIndex = 0; PointIndex < NumPoints; ++PointIndex)
                var InputPoint = InputSubPath.pathPoints[PointIndex];
                var InputAnchor = InputPoint.anchor;
                var InputAnchorQ = QuantizePoint(InputAnchor, zQuantizeUnits);
                // Copy all the input point's properties to the output point info
                OutputPointInfo[PointIndex] = new PathPointInfo();
                OutputPointInfo[PointIndex].kind = InputPoint.kind;
                OutputPointInfo[PointIndex].anchor = QuantizePoint(InputPoint.anchor, zQuantizeUnits);
                OutputPointInfo[PointIndex].leftDirection = QuantizePoint(InputPoint.leftDirection, zQuantizeUnits);
                OutputPointInfo[PointIndex].rightDirection = QuantizePoint(InputPoint.rightDirection, zQuantizeUnits);
            // Create the SubPathInfo for our output path, and copy properties from the input sub path
            OutputPathInfo[SubPathIndex] = new SubPathInfo();
            OutputPathInfo[SubPathIndex].closed = InputSubPath.closed;
            OutputPathInfo[SubPathIndex].operation = InputSubPath.operation;
            OutputPathInfo[SubPathIndex].entireSubPath = OutputPointInfo;   
        return OutputPathInfo;
    // Quantizes the specified point to the specified number of whole units
    function QuantizePoint(zPoint, zQuantizeUnits)
        // Check for divide by zero (if zQuantizeUnits == 0 we don't quantize)
        if (zQuantizeUnits == 0)
            return [ zPoint[0], zPoint[1] ];
        else
            return [ Math.round(zPoint[0] / zQuantizeUnits) * zQuantizeUnits, Math.round(zPoint[1] / zQuantizeUnits) * zQuantizeUnits ];
    // Converts the current working path to a vector mask on the active layer.  This function will fail
    // if the active layer already has a vector mask, so you should remove it beforehand.
    function PathtoVectorMask()
        var desc11 = new ActionDescriptor();
        var ref8 = new ActionReference();
        ref8.putClass( cTID("Path") );
        desc11.putReference( cTID("null"), ref8);
        var ref9 = new ActionReference();
        ref9.putEnumerated(cTID("Path"), cTID("Path"), sTID("vectorMask"));
        desc11.putReference(cTID("At  "), ref9);
        var ref10 = new ActionReference();
        ref10.putEnumerated(cTID("Path"), cTID("Ordn"), cTID("Trgt"));
        desc11.putReference(cTID("Usng"), ref10);
        executeAction(cTID("Mk  "), desc11, DialogModes.NO );
    // Make a layer active by its action manager index
    function MakeActiveByIndex(zIndex, zVisible)
        var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putIndex(cTID("Lyr "), zIndex)
        desc.putReference(cTID( "null"), ref );
        desc.putBoolean(cTID( "MkVs"), zVisible );
        executeAction(cTID( "slct"), desc, DialogModes.NO );
    // Returns the AM index of the selected layers
    function GetSelectedLayersIdx()
        var selectedLayers = new Array;
        var ref = new ActionReference();
        ref.putEnumerated(cTID('Dcmn'), cTID('Ordn'), cTID('Trgt') );
        var desc = executeActionGet(ref);
        if (desc.hasKey(sTID('targetLayers')))
            desc = desc.getList(sTID('targetLayers'));
            var c = desc.count
            var selectedLayers = new Array();
            for(var i = 0; i < c; ++i)
                selectedLayers.push(desc.getReference(i).getIndex());
        else
            var ref = new ActionReference();
            ref.putProperty(cTID('Prpr'), cTID('ItmI'));
            ref.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));
            selectedLayers.push(executeActionGet(ref).getInteger(cTID('ItmI')));
        return selectedLayers;

  • Script That Crops Then Saves and Repeats?

    Hello,
    I am currently new to the scripting on Photoshop. Recently I have started to perform some very repetitive actions and was looking for alternatives to get them done. I looked around the internet for a certain script, but cannot find it. The scripts function would be the following...
    Have a set pixel ratio (2048x2048)
    Start in one of the corners
    Crop the image (Mine is currently a little more than 20,000x20,000 pixels) down to the pixel ratio
    Save that portion of the cropped image in png
    Move left or right or down (whichever is logically next)
    Repeat the process until the whole file has been saved in smaller chunks
    If anyone knows if this script exists please point me to the correct resource, this would help me so, so, so much.
    For anyone who is curious, here is the reason why I need a script that does this.
    Currently I am working on the starting stages of a very large platformer game. Currently art seems to be the most heavy task on the game. The platforming world is going to be very large and hopeful everything will be unique (as in no repeating patterns or textures). There will be two artist working on the game, myself included. I was trying to find a more efficient way of saving these very large scale files in chunks. My current file or test file is around 20,000x20,000 pixels. Doing the math to save one layer of this image in 2048 block images will take 100 repetitive save motions. Take this number times 3 for the amount of layers I need saved and it jumps up to 300. In the end the game will be somewhere around 20,000x100,000 pixels, which will just kill me if I have to do it by hand. It would take days.
    I have tried using slicing and the save for web option, but Photoshop cannot handle the large file. If there are any other methods that I can use to save a Photoshop image in 2048x2048 chunks easily, please let me know. This is a sort of make it or break it deal for the games art on whether we can make it more unique or have to use a lot of repeating patterns.

    20.000 is not the product of a multiplication of 2048 and an integer.
    I can’t remember having come across any Script that fits your needs perfectly.
    If no one else can point to one and as the task is a somewhat specific one I wonder if you should try hiring someone to do it for you (if you should not be able to accomplish it yourself).
    ps-scripts.com • Index page
    Edit:
    Does this help? (You’d need to amend the line
    if (app.documents.length > 0) {main(300, 400)};
    naturally.)
    // make crops of an image according to a specific size;
    // 2014, use at your own risk;
    #target "photoshop-70.032"
    if (app.documents.length > 0) {main(300, 400)};
    ////// function //////
    function main (width, height) {
    // set to pixels and 72ppi;
    var myDocument = app.activeDocument;
    var docName = myDocument.name;
    var basename = docName.match(/(.*)\.[^\.]+$/)[1];
    var docPath = myDocument.path;
    // change to 72ppi;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var originalResolution = myDocument.resolution;
    myDocument.resizeImage (null, null, 72, ResampleMethod.NONE);
    var theState = myDocument.activeHistoryState;
    var theCounter = 0;
    var theVert0 = 0;
    for (var n = 0; n < Math.ceil (myDocument.height / height); n++) {
    theVert0 = height * n;
    var theVert1 = theVert0 + height;
    var theHor0 = 0;
    for (var m = 0; m < Math.ceil (myDocument.width / width); m++) {
    theHor0 = width * m;
    var theHor1 = theHor0 + width;
    // crop and save copy;
    cropThis(theVert0, theHor0, theVert1, theHor1);
    saveCopyAsTif (myDocument, docPath+"/"+docName+"_"+bufferNumberWithZeros (theCounter,3)+"_hor"+bufferNumberWithZeros (m, 3)+"_ver"+bufferNumberWithZeros (n, 3)+".tif");
    myDocument.activeHistoryState = theState;
    theCounter++;
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;
    myDocument.resizeImage (null, null, originalResolution, ResampleMethod.NONE);
    ////// crop //////
    function cropThis (x1, x2, x3, x4) {
    // =======================================================
    var idCrop = charIDToTypeID( "Crop" );
        var desc7 = new ActionDescriptor();
        var idT = charIDToTypeID( "T   " );
            var desc8 = new ActionDescriptor();
            var idTop = charIDToTypeID( "Top " );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc8.putUnitDouble( idTop, idRlt, x1 );
            var idLeft = charIDToTypeID( "Left" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc8.putUnitDouble( idLeft, idRlt, x2 );
            var idBtom = charIDToTypeID( "Btom" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc8.putUnitDouble( idBtom, idRlt, x3 );
            var idRght = charIDToTypeID( "Rght" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc8.putUnitDouble( idRght, idRlt, x4 );
        var idRctn = charIDToTypeID( "Rctn" );
        desc7.putObject( idT, idRctn, desc8 );
        var idAngl = charIDToTypeID( "Angl" );
        var idAng = charIDToTypeID( "#Ang" );
        desc7.putUnitDouble( idAngl, idAng, 0.000000 );
        var idDlt = charIDToTypeID( "Dlt " );
        desc7.putBoolean( idDlt, false );
        var idcropAspectRatioModeKey = stringIDToTypeID( "cropAspectRatioModeKey" );
        var idcropAspectRatioModeClass = stringIDToTypeID( "cropAspectRatioModeClass" );
        var idtargetSize = stringIDToTypeID( "targetSize" );
        desc7.putEnumerated( idcropAspectRatioModeKey, idcropAspectRatioModeClass, idtargetSize );
    executeAction( idCrop, desc7, DialogModes.NO );
    ////// save pdf //////
    function saveCopyAsTif (myDocument, thePath) {
    // tif options;
    tifOpts = new TiffSaveOptions();
    tifOpts.embedColorProfile = true;
    tifOpts.imageCompression = TIFFEncoding.TIFFLZW;
    tifOpts.alphaChannels = false;
    tifOpts.byteOrder = ByteOrder.MACOS;
    tifOpts.layers = false;
    // save copy;
    myDocument.saveAs((new File(thePath)), tifOpts, true);
    ////// buffer number with zeros //////
    function bufferNumberWithZeros (number, places) {
      var theNumberString = String(number);
      for (var o = 0; o < (places - String(number).length); o++) {
      theNumberString = String("0" + theNumberString)
      return theNumberString

  • Script no longer working with QT 7.2

    Hi,
    I had a script that used QuickTime to save self-contained movies. With QT 7.1.6 it worked fine, but apparently after installing QT 7.2, I get a "NSInternalScriptError" when the script reaches the point where it tries save the self-contained movie. Does anyone know what causes this error, and what I could do to fix it? Is it a problem with my code or is it a QuickTime bug? Thanks.
    Leor

    I think it's a bug in 7.2 because I'm having the same problem. The save function seems to be broken now!

  • "Run Scripts" giving a problem to create portal domain

    Hello All.
    I am new to weblogic portal development. Was trying to create my basic sample portal in weblogic_portal_10.3.4 with the help of documentation. I am getting in running scripts when I was creating the domain. I have followed the below steps, please help me if you find any issue with my steps.
    1. downloaded Weblogic_Portal_10.3.4 and installed in my windows 7 environment.
    2. launched eclipse for weblogic portal.
    3. opened portal prospective in eclipse.
    4. right click on server tab and selected "Oracle WebLogic Server 11gR1 (10.3.4)"
    5. opened "Domain Configuration Wizard"
    6. Selected "Create a new Weblogic domain" radio button.
    7. in the next screen for "Generate a domain configured automatically to support the following products"
    selected "Weblogic Portal 10.3.4" radio button
    8. in the next screen given the domain_name
    9. in the next screen provided the password/confirm-password for administrator user
    10. in the next screen selected JRocket SDK and development_mode for my domain.
    11. in the next screen just left all the default configuration for the datasources. ( non of the datasource is selected in their check boxes)
    12. in the next screen just clicked on "Next" button and "OK" on my popup
    13. in this screen "p13nDataSource" is selected on my left top window area, All 3 SQL Files are selected for loading database.
    Clicked on *"Run Scripts"*
    At this point i am getting an error saying : "CFGFWK-60839:  Database Load Failed!"
    java.lang.Exception: SQLException when executing file file:/C:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    Caused by: java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
         at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         ... 1 more
    Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:273)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1674)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:189)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:206)
         at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)
         at org.apache.derby.client.net.NetAgent.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)
         at org.apache.derby.client.am.Connection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
         at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
         at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
         at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
         at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
         at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
         at com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$LoadDatabaseThread$1.run(JDBCConfigGUITask.java:1673)
    CFGFWK-60839:  Database Load Failed!
    Please help me if you find any problem with the steps that I am following to create my weblogic_portal_domain.
    I was following the steps mentioned at : http://docs.oracle.com/cd/E15919_01/wlp.1032/e14252.pdf to create my domain to start portal development.

    Those are the WLP 10.3.2 instructions. But, the 10.3.4 instructions in the tutorial (http://docs.oracle.com/cd/E26806_01/wlp.1034/e14252/setup_dev_env.htm#i1014619) are wrong, too.
    In 10.3.4, with derby, Run Scripts doesn't work any longer; it should still work the other database (Oracle, SQL Server, etc.). Instead, for derby, just create the domain, accepting any warning dialogs about databases that come up. After that finishes, in the domain directory, run create_db.cmd (on windows) or create_db.sh (on *nix and Mac). It should create the derby database files in the domain, and include everything needed.
    I'll send a note to get the docs updated.
    Greg

  • How to locate the first insertion point on every page?

    I need to paste some same anchored objects on every page for exporting RTF format.
    So I need to locate the first insertion point on every page.
    Then, I use the code below (make a simple example):
    for(i = 0; i < app.documents[0].pages.length; i ++){
         app.select(app.documents[0].pages[i].textFrames[0].insertionPoints[0])
         app.paste()
    But when a file has a very long table spread over several pages, the location operation will select the insertion point before the table --- the starting point of the table.
    For instance, a table start on page 3 and end on page 10
    app.documents[0].pages[4~10].textFrames[0].insertionPoints[0])  can't select the first insertion point from page 4 to page 10. (In terms of scripting, the insertion point exists before the very long table starting on page 3.)
    How can I solve the problem? Thanks in advance.

    I dont know exactly what you are trying to do but you can try this. If you have table which runs trough multiple pages, you can first divede this tabel, that cells on separate pages would represent stand alone table. Than you can fit textframe to this table. When addressing indention poin you will get right position.
    In your case when table start at 3rd and ends on 10th page you would get 8 tables in 8 textframes on its own page. If textframes are linked and table is smaller than textframe you will have problem when addressing first insertion point on 4th or any other page. That why you should fit textframe to table:
    var bl=app.activeDocument.pages[1].textFrames[0].insertionPoints[0].baseline
    var tf=app.activeDocument.pages[1].textFrames[0];
    var gb=[tf.geometricBounds[0],tf.geometricBounds[1],bl,tf.geometricBounds[3]];
    tf.geometricBounds=gb;
    Now when you set
    app.activeDocument.pages[1].textFrames[0].insertionPoints[0] you will get position before table or
    app.activeDocument.pages[1].textFrames[0].insertionPoints[-1] you will get position after table

  • Lookup total value in logic script

    hi experts,
    is it possible to lookup with same criteria that returns many row and fetch the total of all returning rows ? if it is possible, how ?
    you can see at attached picture, i try to lookup with same criteria (row 3 & row 5), the different only at column 3. what i want is fetch the total value of row 3 & row 5 = 1000 + 10000 = 11000
    but what i get is 1000 which means only fetch the first row (row 3).
    the code that i using in my logic script:
    *XDIM_MEMBERSET ACCOUNT = 551010
    *XDIM_MEMBERSET METRIC = PERCENTAGE
    *XDIM_MEMBERSET RPTCURRENCY = LC
    *XDIM_MEMBERSET SUBITEM1 = NO_SUB1
    *XDIM_MEMBERSET MEASURES = PERIODIC
    *XDIM_MEMBERSET SUBITEM3 = NO_SUB3
    *XDIM_MEMBERSET BUAREA = NO_BUAREA
    *XDIM_MEMBERSET ENTITY = %ENTITY_SET%
    *XDIM_MEMBERSET CATEGORY = 2014Q3
    *XDIM_MEMBERSET AUDITTRAIL = Input, OFFSET
    *XDIM_MEMBERSET INTERCO <> NO_INTERCO
    *XDIM_MEMBERSET TIME = 2014.07
    *LOOKUP Finance
    *DIM EXP_Input:AUDITTRAIL = Input
    *DIM EXP_Input:METRIC = AMOUNT
    *ENDLOOKUP
    thank you.

    Hi Yoki,
    Please, read How To: Ask questions about Script Logic issues
    Point 9! and other...
    In general it's possible to use LOOKUP to get a value of the parent node, but it's not clear what total do you want to get.
    Vadim

  • Calling a vi in scilab script

    Hello!
    What I'm trying to do here is the following: I am developping a VI that uses a certain algorithm to function. I put the algorithm into a Scilab script structure, no problem here I already did that.
    The problem is, during the execution of the script at many points I need to get additional data through a sub-VI. I want to avoid a structure that looks like Script=>sub-VI=>Script=>subVI=>etc...so my question is: how can I call a sub-VI from inside the Scilab script?
    Thank you very much!

    Hello, thanks for the quick answer.
    I do not have a screen capture at hand, besides my VI a a bit too messy at the moment, but hopefully it can be explained quite clearly.
    Basically, I am implementing a Nelder-Meads simplex method, where the input of the script is the coordinates of 3 points, and from it the coordinates of one or two other points are calculated. Problem is, from here the algorithm needs to go measure those new points physically, using another sub-VI. After which I need to input those measurements into another script so I can compare all the points and choose which ones are better.
    Actually I decided to code it like I described, alternating scripts and sub-VIs (I kinda had a schedule to follow ), but I thought it would still be interesting to know if it is actually possible to do it with one big script.
    During my search I found some interesting leads using matlab, namely using ActiveX (there) but I couldn't find corresponding commands in Scilab.
    Any ideas about that? or any other ways to do it?
    thanks!

  • Report output in script

    hi to all my querry is sas follows
    i have one report program in that iam displaying all the  order details  of the selected customers .i have one button in thelike  "print" in the gui of the report output . when  i click this button  ouput of that report should be printed in the main window of the script . pls  give coding for this . how to call the script from report .
    points will be rewarde d for good answers.
      pls give coding.

    Hi Kumar
    check this sample code it will help u
    CALL FUNCTION 'OPEN_FORM'
    * EXPORTING
    *   APPLICATION                       = 'TX'
    *   ARCHIVE_INDEX                     =
    *   ARCHIVE_PARAMS                    =
    *   DEVICE                            = 'PRINTER'
    *   DIALOG                            = 'X'
    *   FORM                              = 'ZSCRIPT1'
    *   LANGUAGE                          = SY-LANGU
    *   OPTIONS                           =
    *   MAIL_SENDER                       =
    *   MAIL_RECIPIENT                    =
    *   MAIL_APPL_OBJECT                  =
    *   RAW_DATA_INTERFACE                = '*'
    *   SPONUMIV                          =
    * IMPORTING
    *   LANGUAGE                          =
    *   NEW_ARCHIVE_PARAMS                =
    *   RESULT                            =
    EXCEPTIONS
       CANCELED                          = 1
       DEVICE                            = 2
       FORM                              = 3
       OPTIONS                           = 4
       UNCLOSED                          = 5
       MAIL_OPTIONS                      = 6
       ARCHIVE_ERROR                     = 7
       INVALID_FAX_NUMBER                = 8
       MORE_PARAMS_NEEDED_IN_BATCH       = 9
       SPOOL_ERROR                       = 10
       CODEPAGE                          = 11
       OTHERS                            = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'START_FORM'
    EXPORTING
    *   ARCHIVE_INDEX          =
       FORM                   = 'ZFORM1'
    *   LANGUAGE               = ' '
    *   STARTPAGE              = 'X'
       PROGRAM                = 'ZSCRIPT1'
    *   MAIL_APPL_OBJECT       =
    * IMPORTING
    *   LANGUAGE               =
    * EXCEPTIONS
    *   FORM                   = 1
    *   FORMAT                 = 2
    *   UNENDED                = 3
    *   UNOPENED               = 4
    *   UNUSED                 = 5
    *   SPOOL_ERROR            = 6
    *   CODEPAGE               = 7
    *   OTHERS                 = 8
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    *   ELEMENT                        = ' '
    *   FUNCTION                       = 'SET'
    *   TYPE                           = 'BODY'
       WINDOW                         = 'HEADER'
    * IMPORTING
    *   PENDING_LINES                  =
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       OTHERS                         = 9
    IF SY-SUBRC <> 0.
    write:/ 'ERROR IN HEADER'.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    *   ELEMENT                        = ' '
    *   FUNCTION                       = 'SET'
    *   TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    * IMPORTING
    *   PENDING_LINES                  =
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       OTHERS                         = 9
    IF SY-SUBRC <> 0.
    write:/ 'ERROR IN HEADER'.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    *   ELEMENT                        = ' '
    *   FUNCTION                       = 'SET'
    *   TYPE                           = 'BODY'
       WINDOW                         = 'FOOTER'
    * IMPORTING
    *   PENDING_LINES                  =
    EXCEPTIONS
       ELEMENT                        = 1
       FUNCTION                       = 2
       TYPE                           = 3
       UNOPENED                       = 4
       UNSTARTED                      = 5
       WINDOW                         = 6
       BAD_PAGEFORMAT_FOR_PRINT       = 7
       SPOOL_ERROR                    = 8
       OTHERS                         = 9
    IF SY-SUBRC <> 0.
    write:/ 'ERROR IN HEADER'.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'END_FORM'
    * IMPORTING
    *   RESULT                         =
    * EXCEPTIONS
    *   UNOPENED                       = 1
    *   BAD_PAGEFORMAT_FOR_PRINT       = 2
    *   SPOOL_ERROR                    = 3
    *   CODEPAGE                       = 4
    *   OTHERS                         = 5
    CALL FUNCTION 'CLOSE_FORM'
    * IMPORTING
    *   RESULT                         =
    *   RDI_RESULT                     =
    * TABLES
    *   OTFDATA                        =
    * EXCEPTIONS
    *   UNOPENED                       = 1
    *   BAD_PAGEFORMAT_FOR_PRINT       = 2
    *   SEND_ERROR                     = 3
    *   SPOOL_ERROR                    = 4
    *   CODEPAGE                       = 5
    *   OTHERS                         = 6
    <b>difference between</b> 
    1<b><u>.open_form and Start form
    2.end_form and Close_form.</u></b>
    Open_form => It assign the form and printer, It should be first.
    Start_form =>  It start Writing mode. You can use write_form  in loop to write more than one lines befor End_form. 
    End_form => It end writing mode of current page and will require to start again through Start_form.
    Close_form=> it end the Form. After this you can not start again for created file.
    Reward if helpfull
    Regards
    Pavan

Maybe you are looking for

  • Ftp software and listbox selection

    Hi, I am wondering if someone can help me with my program. Part of my program requires me to design some ftp software. I need to be able to read the row which the user has selected and then when the user hits one of the main buttons (i.e. Make Dir, R

  • Error message when trying to download iTunes to PC

    I have tried several time to update my iTunes and I keep getting this message.  "There is a problem with this windows installer package. A prrogram rus as a part of te se up did not finish as expected.  Contact your support personel or package vendor

  • Power Mac G5 frozen at Apple Screen

    I have a 2005 G5 PowerMac. It has been locking up lately. Tonight it will not boot. Everytime I turn it on I get to the apple screen and the circle keeps going round and round. I then followed the directions to reset the PMU and I disconnected the se

  • Getting Data From MySQL Database using Dreamweaver CS4 Built In Functions

    Hi, I am really in need of some help if you don't mind. I basically have a website with user regsitration system etc and so on. I basically connected to my Data Base in Dreamweaver CS4 and now want to use the tools in Dremweaver CS4 to display Data f

  • Component Configuration Problem

    Hi! When trying to create a new Component Configuration, I receive the following error: The following error text was processed in the system TS3 : Screen output without connection to user. The error occurred on the application server PSD1P02_TS3_01 a