Is possible to separate path using script....?

Hi Everyone,
I have one overall path and two outer edge path.
use overall path to separate each like pant and tops.
Is possible to separate path using script. I have also tried script but is not working on second separation.
can any rectify that script is possible...?
-yajiv
#target Photoshop
app.bringToFront;
var docRef = app.activeDocument;
var myDocname=app.activeDocument.name
var e=0
try {
    var ecp=docRef.colorProfileName;
     var n=docRef.pathItems.length;
                    if(n>0){
            if(docRef.pathItems[0].name=="Path 1"){
              var pathRef = docRef.pathItems[0].duplicate(); 
              var path1=docRef.pathItems.getByName("1");   
              //path1.duplicate();         
              path1.select();
              Path_copy();
              var pathitem=docRef.pathItems.getByName("Path 1 copy");
               pathitem.select();
               Path_Paste();
               pathitem.operation = ShapeOperation.SHAPEINTERSECT;
               Path_Combine();
               var path1=docRef.pathItems.getByName("1");  
               var pathRef1 = path1.duplicate();
               path1.select();
               path1.remove();
                var pathitem=docRef.pathItems.getByName("Path 1 copy");
                pathitem.select();
                pathitem.name="1";
                var pathitem=docRef.pathItems.getByName("Box");
                pathitem.select();
                Path_copy();
               var path1=docRef.pathItems.getByName("1 copy");  
                path1.select();
                path1.name="OL"
                Path_Paste();
                path1.operation = ShapeOperation.SHAPEXOR;
                Path_Combine();
               var pathRef = docRef.pathItems[0].duplicate(); 
               var pathitem=docRef.pathItems.getByName("Path 1 copy");
               pathitem.select();
               Path_copy();
               var path2=docRef.pathItems.getByName("OL");  
               path2.select();
               Path_Paste();
               path2.operation = ShapeOperation.SHAPEINTERSECT;
               alert(path2.operation);
               Path_Combine();
catch (e) {
   alert(e);
//alert ("PSR_LWC_PLUS_V2_PT - Color Profile not Embedded...\n Check it out...!!!")
function Path_copy(){
    var id200 = charIDToTypeID( "copy" );
    executeAction( id200, undefined, DialogModes.NO );
function Path_Paste(){
    var id204 = charIDToTypeID( "past" );
    executeAction( id204, undefined, DialogModes.NO );
function Path_Combine(){
            var idcombine = stringIDToTypeID( "combine" );
                var desc26 = new ActionDescriptor();
                var idnull = charIDToTypeID( "null" );
                    var ref25 = new ActionReference();
                    var idPath = charIDToTypeID( "Path" );
                    var idOrdn = charIDToTypeID( "Ordn" );
                    var idTrgt = charIDToTypeID( "Trgt" );
                    ref25.putEnumerated( idPath, idOrdn, idTrgt );
                desc26.putReference( idnull, ref25 );
            executeAction( idcombine, desc26, DialogModes.NO );

Hi c.pfaffenbichler,
Finally with your guidance I rectify the script error.
Thank you for your time and knowledge, I really do appreciate it.
Once again Thanks for your continue support.
"Wish you Happy successful New Year - 2012...!!!"
Regards
-yajiv....
Here is the Code.....!
// create path intersections;
// 2011; use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
// set to pixels;
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.POINTS;
var theArray = new Array;
var theNumber = myDocument.pathItems.length;
// »simplify« paths and collect components;
for (var m = 0; m < theNumber; m++) {
          myDocument.pathItems[m].select();
          combinePath();
          theArray.push(collectPathComponents(myDocument, myDocument.pathItems[m]));
      var OV_Path=myDocument.pathItems[0]
    // create intersections;
    for (var n = 1; n < theNumber; n++) {
        //alert(OV_Path);
          var theFirst = collectPathComponents(myDocument,OV_Path );
          var theSecond = theArray[n];
          for (var a = 0; a < theSecond.length; a++) {
                    theFirst.push(theSecond[a]);
          var thePath = createPathFromPathComponentActionDesc(theFirst, "intersect",0);
          makePath(myDocument.pathItems[0].name+" intersected with "+myDocument.pathItems[n].name);
          combinePath();
// create subtraction;
    var theFirst = collectPathComponents(myDocument, myDocument.pathItems[0]);
    for (var o = 1; o < theNumber; o++) {
              var theSecond = theArray[o];
              for (var a = 0; a < theSecond.length; a++) {
                        theFirst.push(theSecond[a])
    var thePath = createPathFromPathComponentActionDesc(theFirst, "subtract",1); // Modify the parameter, add flag for function
    //subtract
    makePath("all others subtracted from "+myDocument.pathItems[0].name);
    combinePath();
// reset;
app.preferences.rulerUnits = originalRulerUnits;
    function combinePath () {
    // =======================================================
    var idcombine = stringIDToTypeID( "combine" );
        var desc4 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idPath = charIDToTypeID( "Path" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref3.putEnumerated( idPath, idOrdn, idTrgt );
        desc4.putReference( idnull, ref3 );
    executeAction( idcombine, desc4, DialogModes.NO );
    //components correspond to subPathItems,  subpathList contains the actual paths than can make up one subPathItem ;
    ////// collect path infor from actiondescriptor //////
    function collectPathComponents (myDocument, thePath) {
        //var myDocument = app.activeDocument;
        var originalRulerUnits = app.preferences.rulerUnits;
        app.preferences.rulerUnits = Units.POINTS;
        // based of functions from xbytor’s stdlib;
        var ref = new ActionReference();
        for (var l = 0; l < myDocument.pathItems.length; l++) {
                  var thisPath = myDocument.pathItems[l];
                  if (thisPath == thePath && thisPath.name == "Work Path") {
                            ref.putProperty(cTID("Path"), cTID("WrPt"));
                  if (thisPath == thePath && thisPath.name != "Work Path" && thisPath.kind != PathKind.VECTORMASK) {
                            ref.putIndex(cTID("Path"), l + 1);
                  if (thisPath == thePath && thisPath.kind == PathKind.VECTORMASK) {
               // var idPath = charIDToTypeID( "Path" );
                var idPath = charIDToTypeID( "Path" );
                var idvectorMask = stringIDToTypeID( "vectorMask" );
                ref.putEnumerated( idPath, idPath, idvectorMask );
         var desc = app.executeActionGet(ref);
        var pname = desc.getString(cTID('PthN'));
        // create new array;
        var theArray = new Array;
        var pathContents = desc.getObjectValue(cTID("PthC"));
        var pathComponents = pathContents.getList(sTID('pathComponents'));
        for (var m = 0; m < pathComponents.count; m++) {
        var comp = pathComponents.getObjectValue(m);
        var subPathList = comp.getList(sTID("subpathListKey"));
        var shapeOp = comp.getEnumerationType(sTID("shapeOperation"));
        //alert("shapeOp - "+shapeOp);    q
        theArray.push([comp, subPathList, shapeOp]);
        // by xbytor, thanks to him;
        function cTID (s) { return cTID[s] || cTID[s] = app.charIDToTypeID(s); };
        function sTID (s) { return sTID[s] || sTID[s] = app.stringIDToTypeID(s); };
        // reset;
        app.preferences.rulerUnits = originalRulerUnits;
        return theArray;
    ////// create a path from an array of pathcomponents //////
    function createPathFromPathComponentActionDesc (theArray, shapeOperation,flag) {
    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putProperty(cTID('Path'), cTID('WrPt'));
    desc1.putReference(sTID('null'), ref1);
    var list1 = new ActionList();
    for (var m = 0; m < theArray.length; m++) {
              var desc37 = new ActionDescriptor();
              if (m == 0 && flag=0) {
                        desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), cTID('Intr'));
              else  if (m == 0 && flag=1) {//Modify mode to exclude.....!
                         desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), theArray[m][2]);
              else {
                        switch (shapeOperation) {
                                  case "intersect":
                                  desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), cTID('Intr'));
                                  break;
                                  case "subtract":
                                  desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), cTID('Sbtr'));
                                  break;
                                  case "exclude":
                                  desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), 696);
                                  default:
                                  desc37.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), theArray[m][2]);
                                  break;
              var list5 = new ActionList();
              desc37.putList(cTID('SbpL'), theArray[m][1]);
              list1.putObject(cTID('PaCm'), desc37);
    desc1.putList(cTID('T   '), list1);
    executeAction(cTID('setd'), desc1, DialogModes.NO);
    ////// make work path regular path //////
    function makePath (aName) {
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc4 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idPath = charIDToTypeID( "Path" );
            ref2.putClass( idPath );
        desc4.putReference( idnull, ref2 );
        var idFrom = charIDToTypeID( "From" );
            var ref3 = new ActionReference();
            var idPath = charIDToTypeID( "Path" );
            var idWrPt = charIDToTypeID( "WrPt" );
            ref3.putProperty( idPath, idWrPt );
        desc4.putReference( idFrom, ref3 );
        var idNm = charIDToTypeID( "Nm  " );
        desc4.putString( idNm, aName );
    executeAction( idMk, desc4, DialogModes.NO );

Similar Messages

  • Collect Thread Dump using Script and direct to separate log file

    Dear Legends,
    I request you to provide me some useful guide lines to collect Thread Dump using script in linux and redirect the output to a separate log file, not the STDOUT file. If it is redirecting to STDOUT then how to extract only the thread stack to a separate log file.
    i used
    ps -ef | grep java
    kill -3 <pid> >> ss1_td.log
    but it is not providing the thread stack to the log file.
    Anykind of help would be appreciated much.
    Regards,
    Karthik

    Hi Ram,
    Really a great and useful script for me at the right time. It solved my requirement and i made some changes to my requirement and the script it working fine to collect the thread dump and even i have checked the thread dump with SAMURAI works fine.
    Helpful site also refer sites like these which contains more valuable things for weblogic. We will meet in the forums again.
    Note: also please update several links available in the site like UNIX scripts, WLST, Python etc.
    Regards,
    Karthik

  • Save each page of a multi-page document as a separate file using spawned file names with javascript

    Hello
    We are currently changing our hard-copy personnel files and converting them to pdf files.  We have scanned the entire file into one multi-page document.
    I am wanting to save each page (or groups of pages) as separate files.
    In order to facilitate this, I have duplicated field names--such as FirstName, LastName, EmpNo on each page.  This information should be static for the entire file.
    However--I also need information that will change for each individual "page" or document--such as TypeOfDoc, Date, etc.  I have used the Spawn fields using the overlay method on each of the pages in the document.  Then I went in and filled in the information for each page of the document--such as TypeOfDoc, DateOfDoc.
    Now I want to save each page of the document as a separate file using the field names as the file name.
    I first created an action that would split all the pages into separate files and save them into a folder.
    Then I want to save each file as a specific file name based on the information in the fields.
    My problem is obtaining the name of the spawned field name.  The rest of the field names I am not having a problem with.
    This is what I have so far to name the file.
    // Get the field value
    var oPage = this.pageNum;
    var fn = getField("P" + oPage + ".TEMPLATE.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    // Save the file
    myTrustedSpecialTaskFunc(this, fp);
    This code is also accompanied with folder level scripts.
    My problem is obtaining the name of the spawned fields using javascript.  Each document has several pages--so I would like to obtain the field name through script.
    I receive the following error.
    TypeError: getField("P" + oPage + ".TEMPLATE.DATE") is null
    I think this is due to the fact that I have extracted all the pages as individual files.
    If I were to do the above, but not extract the pages first--I do not know how to just save one page at a time.
    Please help.  This is a massive project, and if we have to save each file individually, it will take a lot of time.
    I am a beginner, so any assistance is appreciated.
    Thank you

    I am not understanding exactly where to put the curly brackets.  I have tried two different ways, and still get the same error.
    This is one way
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    {this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    The other is this
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    Thank you for your help.

  • How do I turn a dashed line into separate paths?.

    I have made a dashed line by turning the path into a dashed line using the stroke panel. I now want to separate the dashed line into separate paths. But when I expand the line it asks to expand the fill and stroke. I don't want an outline and fill, I just want paths. Can anyone throw some light on this please.

    This processes the JPG files, and then assumes that the CAF files are in the flle structure you provided.
    Select files in the Image Folder:
    The Run Shell Script [pass input as arguments] is:
    for f in "$@"
    do
         caf="$f"
         caf=${caf/Images/Audio}
         caf=${caf%.*}.caf
         echo \<img src=\""$f"\"\>\;\;[sound:$caf\]\;\;
    done

  • Logical path using in abap program

    hay,
    I want to create file in application server directory.
    so i want the user to select the Logical path and file name from screen.so that he can create the file and seved in selected logical path.{path used must be from Instance profile DIR_LOGGING,GLOBALPATH directory etc).
    could you pls tell me how to do this using parameter for user input selecting FILE PATH.
    Do we have Functional module for Retrieving physical path
    from logical path?
    could you pls help me..
    ambichan.

    hey,
    Thanks for your reply.
    Instead of using logical file name as input, can we allow the user to select logical path using parameter?
    I want user to select Logical path or logical file name from parameter. is it possible?
    (I want to avoid user to input insteal want to allow user to select the path)
    ambichan
    Message was edited by: ambi chan

  • Is it possible to skip the use of a router to get wireless from imac to macbook? (both osx10.5.8)

    Current setup is my imac (osk 10.5.8) is plugged into my dlink router. Wife gets her connection for her macbook (aslo osx 10.5.8) wirelessly from the router.
    Is it possible to skip the use of a router? That is, plug the ISP's inbound cable to my mac and somehow my wife's macbook be able to wireless connect to my iMac?
    Just looking to get around the router that is a possible cause for slowness.

    Some sort of router is needed for both of you to share the cable service. Is the router yours or part of the cable modem provided by the cable company? If the latter ask the cable company to service the device to be sure everything is working properly. If you have a separate modem and the router is yours, then replace it.
    Why do you believe your wireless is slow?
    I would also consider upgrading your computers' OS X.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s MobileMe service; fees and
               terms apply.

  • Using script to automatically arrange timeline and sceneline workspaces.

    This is a simple demonstration of using VB Script to adjust panels in PE3.
    In PE3, when you adjust the height of the timeline, the height of the sceneline is also adjusted the same amount, and vice versa. You could use script to automatically adjust the height of the sceneline or the timeline whenever you switch respective modes. The script below does that.
    This is for those who are familiar with script writing and the Windows Script Host. The vb script below includes properties and methods from the AutoItX library (free download).
    Option Explicit
    Dim oAutoit, strWinText, strLastTime, lngX, lngY
    Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
    oAutoit.WinWaitActive "Adobe Premiere Elements -"
    strLastTime = "start"
    Do
    ' Quit the script if mousepointer put in upper left corner (0,0).
    lngX = oAutoIt.MouseGetPosX
    lngY = oAutoIt.MouseGetPosY
    if lngX = 0 and lngY = 0 then
    set oAutoIt = nothing
    Wscript.Echo "Your script has ended."
    Wscript.Quit
    end if
    ' Read the text of the window so we can determine the workspace setup.
    strWinText = oAutoIt.WinGetText("Adobe Premiere Elements -")
    ' If DVD Menu tab selected, then don't do anything, otherwise
    ' check if in Sceneline or Timeline mode.
    if instr(strWinText, "DVD Menu") = 0 then
    if instr(strWinText,"EditTimeControl") <> 0 then
    if strLastTime <> "timeline" then
    ' Reset the Edit Workspace and then adjust the timeline panel height
    oAutoit.Send "{alt}wke"
    oAutoit.Sleep 250
    oAutoit.MouseMove 1078, 646
    oAutoit.MouseDown "left"
    oAutoit.MouseMove 1078,400
    oAutoit.MouseUp "left"
    strLastTime = "timeline"
    end if
    else
    if strLastTime <> "sceneline" then
    ' Reset the Edit Workspace and then adjust the sceneline panel height.
    oAutoit.Send "{alt}wke"
    oAutoit.Sleep 250
    oAutoit.MouseMove 1078, 646
    oAutoit.MouseDown "left"
    oAutoit.MouseMove 1078,762
    oAutoit.MouseUp "left"
    strLastTime = "sceneline"
    end if
    end if
    end if
    WScript.Sleep 2000
    loop
    The script might work as-is if your screen is set for 1280 x 1024 and the Premiere Elements 3 window is maximized. Save the script in a text file with a .VBS extension, and then run it. Afterwards click on the Sceneline or Timeline buttons in PE3. It may take up to 2 seconds before the mouse starts moving on it's own. The screen coordinates were ascertained using the AutoIt Info tool.

    You shouldn't make assumptions about what the names of the volumes are - both the Finder and System Events have terminology to determine if a disk is the startup volume (or a local volume, for that matter), for example:
    tell application "System Events"
      repeat with someDisk in (get disks whose startup is false and local volume is true)
        set someDisk to POSIX path of someDisk
        do shell script "diskutil umount " & quoted form of someDisk & " &> /dev/null &"
      end repeat
    end tell
    Note that if you are unmounting a disk from a standard account you will be prompted for administrator authentication.

  • I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why?

    I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why the iTunes Scripting Brigde returned failed when it is actually success? It occurred exactly 2 minutes after submit the request to Scripting Brigde. Is this 2 minutes related to the Apple Event time out? if it does, how do I get around this problem? thx

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • How to find the id of the node given the path using connect by?

    I have a table like this:
    CREATE TABLE tab1 (Id INTEGER, Name VARCHAR2(100), ParentId INTEGER)
    Let's say I have the following rows:
    Id name ParentId
    1 X NULL
    2 Y 1
    3 Z 2
    4 A 3
    Now, given the path /X/Y/Z/A, I need to return 4
    Is it possible to achieve this using CONNECT BY?
    If it helps, I have over simplified the scenario - that a node has only one child. In reality, a node can have many children.
    Thanks.

    Hi,
    user2888313 wrote:
    Thanks for the suggestions - will follow from now on. Here's one way to post the sample data, given the CREATE TABLE statement you posted earlier:
    -- Basic data:
    INSERT INTO tab1 (id, name, parentid) VALUES (1,  'X', NULL);
    INSERT INTO tab1 (id, name, parentid) VALUES (2,  'Y', 1);
    INSERT INTO tab1 (id, name, parentid) VALUES (3,  'Z', 2);
    INSERT INTO tab1 (id, name, parentid) VALUES (4,  'A', 3);
    -- To test branching (i.e., multiple children for the same parent):
    INSERT INTO tab1 (id, name, parentid) VALUES (11, 'P', 1);
    INSERT INTO tab1 (id, name, parentid) VALUES (12, 'Q', 1);
    INSERT INTO tab1 (id, name, parentid) VALUES (13, 'R', 12);Alternatively, you could post a WITH clause, as someone did above.
    I am not clear how to use the LEVEL pseudo column. Should I just start from the root, find all paths up to the level I am looking for? Could you please give me the syntax? Sorry, I'm still not clear what you want, or why you want it.
    Do you want 4 because 'A' is the 4th generation in this family tree (that is, because 'A' has 3 ancestors), or do you want 4 because id=4 is on the same row as name='A'? In the former case, use LEVEL; in the latter, use the id column.
    This query shows both:
    SELECT  SYS_CONNECT_BY_PATH (name, '/')          AS name_path
    ,     LEVEL                                AS lvl
    ,     id
    FROM     tab1
    START WITH     parentid     IS NULL
    CONNECT BY     parentid     = PRIOR id
    ;Output from the expanded sample data:
    NAME_PATH                   LVL         ID
    /X                            1          1
    /X/Y                          2          2
    /X/Y/Z                        3          3
    /X/Y/Z/A                      4          4
    /X/P                          2         11
    /X/Q                          2         12
    /X/Q/R                        3         13

  • How can apply configure file in ssis by using script task ?

    I had  two config file in ssis
     1. config file as per QA
    2. config file as per Production
     I think apply dynamically by using script task for above file (acc to server)
    How can I apply in script task for config file path in C# script
    any one provide Helpful code ??
    Thanks

    I applied script Task  with below code :
    public void Main()
    //User::Config,User::Config_Pd,User::Config_QA
    Application App = new Application();
    Package Pack = new Package();
    DTSExecResult pkgResults;
    string strPackageName;
    string filename = "";
    string configvalue;
    configvalue = Dts.Variables["Config"].Value.ToString();
    strPackageName = Directory.GetCurrentDirectory().ToString() + "\\Excel Reports from Remittance advice\\Child.dtsx";
    try
    Pack = App.LoadPackage(strPackageName, null);
    if (Pack != null)
    if (configvalue == "DEV")
    filename = Dts.Variables["Config_QA"].Value.ToString();
    else if (configvalue == "PROD")
    filename = Dts.Variables["Config_Pd"].Value.ToString();
    else
    Dts.TaskResult = (int)ScriptResults.Failure;
    System.Windows.Forms.MessageBox.Show("Unable to bind the XML Configurations");
    return;
    } System.Windows.Forms.MessageBox.Show("Config:"+filename);
    Pack.ImportConfigurationFile(@filename);
    Pack.EnableConfigurations = true;
    Pack.Configurations.Add();
    App.SaveToXml(strPackageName, Pack, null)
    pkgResults = Pack.Execute(); //Pack.Execute();
    System.Windows.Forms.MessageBox.Show("Results:" + pkgResults.ToString());
    Dts.TaskResult = (int)ScriptResults.Success;
    But ouput in ssis showing as
    But some thing missed in code  plz help me ...

  • Dynamic Load Plan creation using scripting

    Hello All,
                   We have a requirement to create load plans dynamically i.e using script groovy. Idea is that we will store interface scenarios in a table and then script will read these scenarios an create dynamic load plans. Now following are my question.
                   1) Is it possible to create load plans through script ? (different blogs on net claims that you can do anything or everything whatever ODI studio can do)
                    2) Any pointer what API to use for this task ? I am very new to scripting and have zero idea about how to go about it . if possible please suggest sample script to create load plans (I can see some sample to create interface,folder etc on net.)
    Thanks in advance for your reply.
    Thanks & Regards

    ODI SDK apis allows dynamic creation of Loadplans. Oracle Fusion Middleware Java API Reference for Oracle Data Integrator
    Studio too uses these APIs for LP related operations so you should be able to do using these whatever studio allows.
    You can find SDK samples at Oracle Data Integration Sample Code

  • Is it possible to set up a script to auto render as new files appear in queue

    We have a system that creates images automatically and we need to be able to automatically convert and re-size them and move them to a new location. Some are needed as .gif animations but most are stills.
    I can set up a series of comps with the appropriate render queues
    Is there a way to trigger a render when new files are written to the project's images folder.
    Every day these images would be updated several times. The old images would simply be overwritten.
    An additional component would be to stop the warning message that I am about to overwrite an existing file on the render.
    Thank you in advance.

    When you say "the project's images folder", do you mean a folder in the file system, or a folder in the AE project window?  Although I can't help you with the specifics, I'm pretty sure the former is possible (using scripting at the OS level to trigger an AE script), while the latter is not.

  • How Save File using script ?

    Hi Expert
    I am using MAC OSX 10.8.3 and InDesign CS5.5
    I use this script to save the InDesign file and run this script using Adobe ExtendScript ToolKit CS5.5
    #target indesign
    var myDocument=app.activeDocument;
    myDocument.save(File("/var/New.indd"));   
    But Script give error
    can not save "untitle1.indd" under a new name
    where "untitle1.indd" is created indesign file name.
    Is it Script proble or InDesign problem
    or
    MAC OSX problem ?
    How save file  ?
    Thanks.

    Bill joy wrote:
    Is it Script proble or InDesign problem
    or
    MAC OSX problem ?
    Hi Bill,
    I think it is your path problem. (Are you able to save this file in UI there?)
    Check:
    mFile = new File("/var/New.indd");
    mFile.isValid;
    You can't go forward until above == true;
    You could check how your system records a path using this in ESTK:
    mFile = File.saveDialog();
    select any file and check ESTK console.
    Script is creating a new File object with path you can see (not saving anything), so do it same way.
    If you will pass above with true save a doc using:
    mDoc.save(mFile);
    Jarek

  • Can I export macro lists using scripting?

    I work at a business newspaper and we create a index of all company names at the end of each edition. However, in order to make the process of confirming uniformity between company names in the index and company names as they appear in a story it would be nice to export a text macro list to our network so that all reporters could use the same code for, let's say" "Example Co." Is this possible using scripting?
    Thanks,

    Hello,
    You should export the data of the 8i database using the *8i* export utility.
    Then, you import the generated dump to the 10g database with the *10g* import utility.
    Else, you may care of the character set so as to avoid conversion.
    Sorry Azar, I didn't see that you answered already.
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Jan 30, 2010 9:19 AM

  • How to hide or lock toolbar fileds by using script

    Hi experts,
    Could you please let me know how to lock or hide toolbar fields by using script.
    Thanks,
    Pavan

    Hi Pavan,
    I dont think its possible using scripting because I don't find any APIs for toolbars.
    However, you can achieve this using toolbar customization.
    You can use the following config :
    Customization Type: Business Object
    Target Class ID: Contract Document (2002)
    Target Toolbar ID:system.toolbar.document.doccommon.contractdocument.contractdocumentactions.actions
    Overrides:
    Hidden  -- Yes 
    Let us know if you are looking for something else.
    Thanks
    Devesh

Maybe you are looking for

  • Hotmail not working in the Mail app

    I've got a iPad 3G. The Hotmail worked fine for the first few days in the Mail app but it's not working any more. It does not sync. The 'Checking for Mail' keeps on running but no message is downloaded. I've deleted and recreated the account, I've di

  • Sorting n:m Mapping

    Hi, I try to sort an n:m mapping. The Toplink Workbench has an Sorting Option for n:m mapping, but I need to sort for an attribute which is located in the reference Table. The QueryKey-ComboBox of the Collection Properties Tab does not contain the At

  • Oracle on Intel based Solaris

    Hi all, Any idea regarding Oracle 8i/9i software on Intel based Solaris. Can I use Oracle 8i Sparc Software for Intel based Solaris? Thanks

  • Album sorta missing on Match

    My wife has Dave Matthews & Tim Reynolds "Live in Las Vegas" Vol 1 & 2.  I added each to my itunes library on my MBPro tonight. I see each album in my itunes library. Each album (and every song in each album) has the proper cloud logo next to it. Vol

  • Default parametre input in the URL that is generated

    Hi I have a report that is a part of a 3.x template. The report contains a parametre input of organisation code and month. Is it possible (through and predefined URL) to make sure that a spesific organisation code is filled in, and it allways pick th