Post-Clone script error

Hello
I am facing clone after error on aix 5.3 OS 11i when I run the script clone post about db, he error.share any solution is much appreciated
$ perl adcfgclone.pl dbTier
Enter the password [APPS] APPS:


First create a new context for the cloned system file.
The program will ask you for information on the new system:

RC-50004: an error occurred in CloneContext:
null
Check the log file CloneContext_01210431.log for more details.
ERROR: creation of context not completed successfully.
Please check for errors in the /tmp/adcfgclone.err file

Thank you
MAAN

Published by: user1116442 on January 20, 2011 03:40

Please see the two docs referenced above.

Thank you
Hussein

Tags: Oracle Applications

Similar Questions

  • Update the test instance. Problem with post clone.

    I am updating a database with a recovery in production. Feed the archive logs until the database has been stable. Now I can not post clone and adconfig to work. I think it's the listener who is causing the problem.

    When I ran adcfgclone.pl

    I chose 34 port.

    This is the listener:

    > lsnrctl status upg6

    LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 26-SEP-2014 15:54:08

    Copyright (c) 1991, 2013, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROCupg6))

    STATUS of the LISTENER

    ------------------------

    Alias upg6

    Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production

    Date of beginning 2014-SEP-26 15:41:39

    Uptime 0 days 0 h 12 min 29 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /upg6/11g-product/11g204/11.2.0.4/network/admin/listener.ora file

    The listener log file /Upg6/11g-product/11g204/11.2.0.4/log/diag/tnslsnr/ssoradb2/upg6/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROCupg6)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = ssoradb2.simfoods.com) (PORT = 1525)))

    Summary of services...

    Service 'PLSExtProc' has 1 instance (s).

    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...

    Service 'upg6' has 1 instance (s).

    Instance of 'upg6', status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    Also, it is the last thing to settling the adconfig log:

    [AutoConfig error report]

    The following report lists the errors autoconfig met in each

    execution phase.  Errors are grouped by directory and by phase.

    The format of the report is:

    < file name > < phase > < eventually return code >

    [PROFILE PHASE]

    AutoConfig could not successfully run the following scripts:

    Directory: /upg6/11g-product/11g204/11.2.0.4/appsutil/install/upg6_ssoradb2

    afdbprf.sh INSTE8_PRF 1

    Fate of automatic configuration with State 1

    The problem was with the Listener.ora file. I've corrected the port and autoconfig ran perfectly.

  • Script errors

    How can I fix it

    Please post a screenshot of this script error message.

    https://support.Mozilla.org/en-us/KB/how-do-i-create-screenshot-my-problem

    It is best to use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed a maximum file size of 1 MB.
    
    Then use the Browse .... button below the Post a Reply text box to upload the screenshot.
    
  • HP printer Assistant does not work, script error

    Hi, I have a Photosmart Plus B210 connected wireless to my home network.

    When I try to run the wizard on the printer, I get a script error (only, not open in Notepad), as seen in this post:

    http://support.HP.com/us-en/document/c03640384

    To try to solve this I have done both steps of the solution 1 and 2 in this post (I'm on Vista x 64) and still have the problem.

    In desparation I tried also the recommendation of this post, suggested by Erico:

    http://h30434.www3.HP.com/T5/printer-networking-and-wireless/script-error/TD-p/1460221

    I have uninstalled/reinstalled all the software and drivers, using the two Uninstall HP once, and using another control panel and still have the problem.

    Note, printing works fine, just cannot run the wizard on the printer. Thank you for your help.

    Hi scooby_doo,

    I found another forum with someone with script errors, I wonder if the solution might work for you.

    HP printer Assistant scipt errors

    I would like to know if it works and if not I will continue to seek a solution for you.

  • Windows XP script error

    Windows XP script error: when you try to update Adobe Acrobat, I can download the update, but when I try to install it, I get a message: "an error has occurred in the script on this page."  What is a script?  How should I do?

    Hi Tony,.

    Welcome to the Microsoft Community and thanks for posting the question.

    According to the description, it seems that you are facing a problem during the installation of Adobe Acrobat on your Windows XP operating system.

    It would be great if you could answer these questions to help you further.

    1. what version of Internet Explorer is installed on your computer?

    2 is the issue limited only by updating Adobe Acrobat?

    Script error messages are displayed by Internet Explorer when there is a problem with the JavaScript or VBScript code on the Web site you are looking at. Sometimes a script error can be caused by an error during the download of a Web page, but more often it is an error in the Web page itself.

    I suggest you to download and run offline installers

    Adobe Reader: http://get.adobe.com/reader/enterprise/

    Flash Player: http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player-windows.html#main-pars_header

    Keep us informed on the status of the issue.

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • script error when you try to play my pc game?

    I have the script error whenever I try to play one of these medical games I've purchased and downloaded from the internet. I don't know that I can do to fix it if someone could give me please an answer I would be very happy because I'm starting to get annoyed with the fact that I can't play the game and spend twenty dollars on it.

    Hi shanna2015,

    ·         What browser do you use?

    ·         What is the full error message that you receive?

    ·         Are you able to play games properly?

    If you use Internet Explorer, you can follow these methods and check if it helps.


    Method 1

    You can follow this link and check if the problem persists.

    How to resolve script errors in Internet Explorer on Windows computers

    Note: Article applies to IE 7 or IE 8 however remains valid for IE 9 as well.


    Method 2

    You can also enable compatibility view in Internet Explorer and try to play the game.

    Some sites Web may not behave as expected in Internet Explorer

    Hope the helps of information.

    Please post back and we do know.

  • Java script error

    Can I receive e-meil but cannot send. Eerytime the java script error nassage appear.

    I install java in my computer. Help, please

    Hello

    Using any email client or its site on the Internet? Please post the full error message... Reference: http://support.microsoft.com/kb/555375

  • How can I fix: internet Explorer script error "automation server cannot create the object.

    Execution of search help Quicken 2011 this error always comes up.  The file or program associated with the error message is \awApi5.dll/awLocalize.js Answerworks 5.0.

    Hi kadialcamara,

    1. did you of recent changes on the computer?

    2. When you receive the message of internet script explorer?

    Check out the link below on the forums of intuit and check if it helps.

    Help with Script error-res: / / C:\Program Files\Common Files\AnswerWorks 5.0\awApi5.dll/awLocalize.js

    For additional support post your query in the forums of intuit.

    https://qlc.Intuit.com/

  • Cannot print from windows live mail - script error

    HP Laserjet 1020

    Windows 7 64 bit

    Windows Live Mail - when I try to print, I get a script error

    Printer driver is updated. Test page prints.

    Prints not Firefox, but works for IE 10 tho?

    Any ideas? Help, please

    I'm sorry you have a printing problem in Windows LIVE mail.

    You may need to clear the CACHE of the browser.

    You can also download an alternative driver that will help. (Shane_R) has a great post on how to download.

    http://h30434.www3.HP.com/T5/printer-all-in-one-software-drivers-e-g-Windows-8/How-to-assign-alternate-print-drivers-in-different-versions/TD-p/1957011

    '"Click the WHITE STAR if you want to say thank YOU" '

    Let me know if it helps.

  • I can't send a fax. I get a script error.

    I have a windows 7 x 64 computer with windows 2008 server standard.  I have setup the server with the fax server role.  I can connect the Windows 7 workstation and Windows scanning on the Fax Server.  When I try to send a fax but I get the following error:

    Script error
    An error occurred in a script on this page.
    Line of 2126
    1 tank
    Error: Argument or invalid procedure call.
    Code: 0
    URL: res.//leframe.dll/preview.js

    I completely reinstalled Windows 7 x 64 thought, that the files were corrupt, but I still get the same error.  I've uninstalled and reinstalled Fax and Scan and run SFC and no corrupted files were found.

    I was wondering if the cause of the problem is the fact that the folder my documents is re-located to a folder of data networking, because who has moved fax and my documents folders.
    Any suggestions?

    Hi Jonathan,.

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • Script error reports

    I get 'error occurred in the script on this page ".

    Line 216

    1 tank

    Unspecified error

    Code 0

    URL: res://ieframe.dll/preview.js

    I am on Windows 7

    How can I fix it?

    Hello

    Thanks for posting your query in Microsoft Community.
     
    After the description of the question, I understand that you receive script errors when you try to print in Internet Explorer 7. Let me know if I'm wrong.
     
    (1) what is the version of Internet Explorer installed on your computer?
    (2) have you made changes on the computer before this problem?
     
     If you receive errors when trying to print, I suggest you to return the article mentioned below and check the status of the issue.
    How to fix script errors in Internet Explorer?
    http://support.Microsoft.com/kb/308260

    I hope it helps. If you have problems in the future, please let us know. We will be happy to help you.
  • Can't play Scrabble because the Script error

    I tried to load a Scrabble game from a disc, but I got a script error.  I use Windows 7, and the disc is designed for Windows 95/98.  Could be the problem?  Can it be fixed?

    Some older games from 95/98 can do run on W7, some may not.

    Have you tried to install or run the game in compatibility mode? Try to mark the program under W95/W98 and see if it works then.

    If it still fails then also try the privilege "run as Administrator" box as this can sometimes help.

    If the game needs it, also try to tick the boxes res screen 640 x 480 and 256 colors.

    However, there is no guarantee that this will work.

    If you W7 32-bit it is perhaps a better chance to get to manage if you have 64-bit, which may have other problems esp with the old 16-bit games or installers.

    If the game has been loaded on a Windows 95 or W98 computer but actually ran in the BACK, then you can get it running on W7 in DOSBOX or similar. But you must read this first if you are not familiar with it. In a first time - http://www.dosbox.com/wiki/Basic_Setup_and_Installation_of_DosBox

    If you still can't work, please post back with as much information as possible, i.e. your version of W7, games full title and maker etc. and the exact error and message when it appears.

  • Windows 8 on desktop script error

    Whenever I turn on the desktop computer I get an annoying message that reads "Script error: an error has occurred in the script on this page." Line: Char 0: 0 error: Script Error Code: 0 URL:

    http://widgets.xrosview.com/widgets/3rdParty/jQuery.1.7.1.min.js Do you want to continue running scripts on this page? YES/NO"I went through all the boxes of Internet options for the question, but it did no good. Help, please?

    Hello

    Please contact Microsoft Community.

    I understand that you are facing the issue at the start.

    I will definitely help you with this.

    When you receive script errors, Web pages do not display or work correctly in Internet Explorer.

    Check out the links below and check if that helps:

    https://support.Microsoft.com/en-us/KB/308260

    I hope this helps. Please post back with the State of the question and we will be happy to help you further.

  • Script errors and a question

    //Created by Daryl R. Smith
    //This is the tab for Totes
    
    #target illustrator
    
    var thisDoc = app.activeDocument;
    
    if (thisDoc.selection.length > 0)
    {
    
    var w = new Window ("dialog", "Choose Totes Template", undefined, {closeButton: false});
    w.alignChildren = "right";
    
                  w.onShow = function()
                    {  
    
                        for(var i=0; i<totes1.children.length; i++)
                {  
                    var thisPanel2 = totes1.children[i];  
                    thisPanel2.originalLocation = [thisPanel2.location[0], thisPanel2.location[1]];  
                }//end for
            
            }//end on show function
        
    var tpanel = w.add ("tabbedpanel");
    tpanel.size = [400, 520]; 
    
    
    //**********************************************************************************************************************************************************
    //******************************************************Section to setup the Totes Tab******************************************************************
    //**********************************************************************************************************************************************************
    
    //creates the Totes Tab
    var totesTab = tpanel.add ("tab", undefined, "Available Totes");
    totesTab.orientation = "column";
    
    //Creates first Row Group for Totes, contains panels 1,2 and 3
    var TotesGroup = totesTab.add("group",undefined);
            TotesGroup.orientation = "row";
            TotesGroup.alignChildren = "left";
    
    //first Totes Panel
    var totes1 = TotesGroup.add ("panel", undefined, "");
    totes1.alignChildren = "left";
    totes1.size = [300,480];
    
    
    var docSelection = app.activeDocument.selection;
    var newGroup = app.activeDocument.groupItems.add();
    
    for ( i = 0; i < docSelection.length; i++ ) {
       var newItem = docSelection[i] ();
    newItem.moveToEnd( newGroup );
    }
        
       alert (thisDoc.selection.length)
    
    GetToteTempNames()
    
    function GetToteTempNames()
    {  
        
        //Replace this address for the "toteTempPath" to the folder that has all the templates it in it, then the for loop will place them all
        //into a radio button array for the user to choose which one they want.  This updates everytime that this script is ran so if
        //one if removed or added it will show up reducing the amount of required time needed to update the script.
        //when replaced make sure to change the \ marks to / marks or it will not work.
        
      var toteTempPath = Folder ("Z:/  Vitronic Master Templates/STE2 Templates/TOTES & BAGS");   
      var toteTempFiles = toteTempPath.getFiles();  
      var TotenamesArr = [];  
      for(var i=0; i<toteTempFiles.length; i++){  
      var thisToteFile = toteTempFiles[i];  
      TotenamesArr.push(thisToteFile.displayName); 
      }  
    
      return TotenamesArr;  
    }  
    var totesarr1 = GetToteTempNames();
    
            for(var i=0; i<totesarr1.length; i++){  
                var lbl = totes1.add("radiobutton", undefined, totesarr1[i]);  
            }  
        
            var scrl = TotesGroup.add('scrollbar'); scrl.size = [20, 480];  
              
            scrl.onChange = scrl.onChanging = function()
            {  //start function
                for(var i=0; i<totes1.children.length; i++)
                {  //start for
                    var thisPanel2 = totes1.children[i];  
                    var xLoc = thisPanel2.originalLocation[0];  
                    var yLoc = thisPanel2.originalLocation[1];  
                    thisPanel2.location=[xLoc, yLoc-((this.value/100) * ((totes1.children.length*27.5) - (scrl.size[1]+5)))];  
                    // These numbers are my arbitrary way of setting the y location  
                    }//end for loop
                }//end function
            
           totes1.children[0].value = true;
            
            var bottombuttons = w.add ("group");
            bottombuttons.orientation = "row"
            
            var rsize = bottombuttons.add ("panel", undefined, "Resize Artwork?");
    rsize.alignChildren = "left"
    rsize.orientation = "column"
    
    rsizeyes = rsize.add ("radiobutton", undefined, "Yes");
    rsizeno  = rsize.add ("radiobutton", undefined, "No");
    
    rsize.children[1].value = true;
    
    
    var kbottombuttons = bottombuttons.add ("group", undefined, "")
    kbottombuttons.orientation = "column"
    kbottombuttons.add ("button", undefined, "Ok");
            
    
     //**********************************************************************************************************************************************************
    //********************This section is for the functions to output your choice then run the function depending on the choice you made****************
    //**********************************************************************************************************************************************************
    
    if (w.show () == 1)
    {
        
    var templateselected = selected_rbutton
    
    var requestedtemplate = selected_rbutton (totalgroups)
    
    var confirmed = confirm ("You picked [ " + selected_rbutton (totalgroups) +" ]"+ "\nYou picked [ " + questionResize (rsizechoice) + " ] to resize" + "\n" +"\nContinue?");
            confirm.noAsDflt == false;
            
            if (confirmed == true)
            {
                
                
                copy();
                openTemp ();
                paste();
                centerArt ();
                resizeart ();
                savefile ()
               //need to wait for the save script to finish before it does the put name so that if the user changes the file name from the save pallet it will be reflected
               //in the putname function.
               
               wait = savefile();
    while(!wait) {
        //wait = false; // this is just killing time  
        // so is this
        a++;     
          
        if (a>1000) break; // guard against infinite loop  
    }  //end wait
               
                putname ();
                
             } /*end if */ else
         {
             alert ("You chose not to continue, script stopped")
             }//end else
    }//end if OK
    
    
    //**********************************************************************************************************************************************************
    //*********This section is for the function to check which option for resize gets pressed and returns the text to a variable for output******************
    //**********************************************************************************************************************************************************
    
    var rsizechoice = [rsize]
    
    function questionResize (rsizechoice)
    {//start function
    //when choice is pressed return choice text for variable output    
    for (var i = 0; i < rsize.children.length; i++)
    {
    if (rsize.children[i].value == true)
    return rsize.children[i].text;
    }//end for
    }//end function QuestionResize
    
    
    //**********************************************************************************************************************************************************
    //***************************************************************This is the section that will center the artwork ******************************************
    //**********************************************************************************************************************************************************
    
         var thisDoc = app.activeDocument;
        thisDoc.rulerOrigin = [0,0];  //  Sets the coordinates of the artboard to the lower left hand corner of the document.
        thisDoc.pageOrigin = [0,0];  //  This makes sure a valid reference point is used for different sized documents.
        
        function centerArt()
       {   
           var thisdoc = app.activeDocument;  
            var selecteditem = app.activeDocument.selection;
            var hasDocCoords = app.coordinateSystem == CoordinateSystem.ARTBOARDCOORDINATESYSTEM;
            
            
            var p = thisdoc.pageItems;  
            for (var i = 0, l = p.length; i < l; i++) {  
                var pID = p[i];  
                if (pID.guides == true) {  
                    var guideBox = pID  
                }  
            }   
            var wNum = guideBox.width;  
            var hNum = guideBox.height;
            var swNum = selecteditem.width;
            var shNum = selecteditem.height;
            
            var sxOffset = (swNum/2);
            var syOffset = (shNum/2);
            var xOffset = (wNum/2);
            var yOffset = (hNum/2);
            
            
            var xNum = guideBox.position[0]+xOffset;  
            var yNum = guideBox.position[1]-yOffset; 
            
            var guideXCenter = xNum-sxOffset;
            var guideYCenter = yNum+syOffset;
            
            var sxNum = selecteditem.position[0]+sxOffset;
            var syNum = selecteditem.position[1]-syOffset;
            
            //to test your script for position un annotate the two alerts below
            
                   alert("GuideBox Data:\nWidth: "+wNum+"\nHeight: "+hNum+"\nX Position: "+xNum+"\nY Position: "+yNum); 
                    alert ("Selected object Data:\nWidth: "+swNum+"\nHeight: "+shNum+"\nX Position: "+sxNum+"\nY Position: "+syNum);
                   
                   
            //changes the position of the selected artwork to the center of the guide box.
            app.activeDocument.selection[0].position = [guideXCenter, guideYCenter]    
        }//end centerart
    
       function resizeart()
    {
       if (questionResize (rsizechoice) == "Yes")
       {
            for (var i = 0; i < app.activeDocument.pageItems.length; i++) 
            {  
                  
                if (app.activeDocument.pageItems[i].guides == true) {  
                    var guideBoxSize = app.activeDocument.pageItems[i];  
                }  //end if
            }   //end for
            var guideW = guideBoxSize.width;  
            var guideH = guideBoxSize.height;
            
            var itemW = app.activeDocument.selection.width;
            var itemH = app.activeDocument.selection.height;
            
             //to test your script for resize un annotate the two alerts below
             
            alert ("guide is this tall " + guideH + "\nguide is this wide " + guideW);
            alert ("item is this tall " + itemH + "\nitem is this wide " + itemW);
            
            var artWidth = itemW;
            var artHeight =itemH;           
    
        if (artWidth > artHeight)
            {
               var a = (guideW/artWidth)*100;
               app.activeDocument.selection[0].resize(a,a);
             }   
        if (artHeight > artWidth)     
            {
               var b = (guideH/artHeight)*100;
               app.activeDocument.selection[0].resize(b,b);
             }
         
     var artWidth2 = itemW;
    var artHeight2 =itemH;    
    
     if (artHeight2 > guideH)
        {
           var c = (guideH/artHeight2)*100;
          app.activeDocument.selection[0].resize(c,c);
          }
            
    
         }//end if doresize
    }//end function resizeart
    
    function putname ()
    {
      
      var thisDoc = app.activeDocument;
            thisDoc.rulerOrigin = [0,0];
            thisDoc.pageOrigin = [0,0];
      
      var filename = app.activeDocument.name.replace(/\.[^\.]+$/, '');
      var createdate = app.activeDocument.modified;
      
      var  theDate = new Date();
            var day = theDate.getDate();
            var month = theDate.getMonth() + 1;
            var year = theDate.getFullYear();
            var hours = theDate.getHours();
            var min = theDate.getMinutes();
                if (min < 10)
                    min = ("0" + min);
            var morn;
                if (hours >= 12)
                    {
                        hours = hours-12;
                        morn = " PM";
                    }
                else
                    morn = " AM"
    
    var saveDate = (month + "-" + day + "-" + year + "    " + hours + ":" + min + morn );
      
      
      
    
      var nameTextFrame = thisDoc.textFrames.add();
        nameTextFrame.contents = globalartistname + "\n" + filename + "\n" + saveDate;  
        nameTextFrame.top = 1000;
        nameTextFrame.left = 100;
        nameTextFrame.filled = true; 
        nameTextFrame.alignment = "center";
        
        }//end put name
    
    function savefile ()
    {
        
        //change this folder location for the "savescript" variable to the one where the location of the save script is located on the server, 
        //This save script is for the pallet that will pop up and list the different save options, not the individual save scripts themselves.
        
            var savescript =  new File("S:/Art/ArtDept/Illustrator JS Palette/Scripts/Art Share Server/Save/Save Option Pallet");
                savescript.open("r");      
           var bt = new BridgeTalk;
                bt.target = "illustrator";          
           var script = savescript.read();
                savescript.close();               
           bt.body = script;
           bt.send();  
           
           if (saved = true)
           {
               alert("File saved")
            }
           
           if (saved == false)
           {
               alert ("File not saved")
               }
           
           return true;
     }      
    
    
    //**********************************************************************************************************************************************************
    //********************This section is for the functions to check which button gets pressed and returns the text to a variable for output ****************
    //**********************************************************************************************************************************************************
    
    
    //all radiobutton groups must be pressent in this array
    var totalgroups = [totes1]
    
    //this function checks each group for the 1 radio button is clicked then returns its text
    function selected_rbutton (totalgroups)
    {//start function to check buttons
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Totes tab buttons
    
    //when totes1 is pressed return text for output
    for (var i = 0; i < totes1.children.length; i++)
    {
    if (totes1.children[i].value == true)
    {
    return totes1.children[i].text;
    }//end if
    
    }//end if
    }//end for
    
    //////////////////////////////////////////////////////////////////////////open template 
    
    function openTemp()
     {
         //change the folder location of the templates here but leave the last section that is black, this will allow the script to open which
         //ever template they chose from the radiobuttons.  This location should be the same as the toteTempPath above but reduces the
         //chance for something to break by pulling the address here again instead of from the variable near the begining of the script.
         
     var gettotetemp = new File("Z:/  Vitronic Master Templates/STE2 Templates/TOTES & BAGS/" + selected_rbutton (totalgroups));
    
    open(gettotetemp);
    
    }//end open temp function
    
    }//end if selection check
    
    
    else
    {
        alert("Please select the artwork.");
      } // end else selection check 
    

    This is my entire script with notes to help, my script does not work it telling me there is an error on a different line every time that I run and the line indicating the error is on is something simple like .alignChildren = 'left '; I'm at a loss as to why it has stopped working.

    My question is, after I get it going again once I made a mistake when I wrote this, because I was looking at him with an element of single path to make sure that he moved to the model, resized and saved but when I try with a bunch of different objects, it breaks even if try to group them all together first.  It will not be the entire selection copy(), so I added a section to the script near the 50 line that takes all the elements of the path of the selection and puts them in a group.  I'm going on this and that and running it and test it because I had that done and I can't make it work, I am at my wits end and looking for help.

    What I need to do is the following in the correct order;

    Copy();

    openTemp ();

    Paste();

    centerArt ();

    resizeart ();

    SaveFile)

    putname ();

    separately each function works fine but when I try and put together something breaks.  I'll post the script that I use for the savefile() in the next post.

    most likely, the problem is copy(), paste(), the dough isn't reliable, instead, you can duplicate the object to a target document, then first, when you open your model, return a reference to, so you can use it to move the duplicate group.

    See my comments with @, I have use savefile() or putname(), I'm focused on resize() and center()

    //Created by Daryl R. Smith
    //This is the tab for Totes 
    
    #target illustrator 
    
    var thisDoc = app.activeDocument; 
    
    if (thisDoc.selection.length > 0)
    { 
    
    var w = new Window ("dialog", "Choose Totes Template", undefined, {closeButton: false});
    w.alignChildren = "right"; 
    
                  w.onShow = function()
                    {   
    
                        for(var i=0; i1000) break; // guard against infinite loop
    }  //end wait 
    
                //putname ();  // commented out for testing purposes only @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    
            } /*end if */ else
        {
            alert ("You chose not to continue, script stopped")
            }//end else
    }//end if OK 
    
    //**********************************************************************************************************************************************************
    //*********This section is for the function to check which option for resize gets pressed and returns the text to a variable for output******************
    //********************************************************************************************************************************************************** 
    
    var rsizechoice = [rsize] 
    
    function questionResize (rsizechoice)
    {//start function
    //when choice is pressed return choice text for variable output
    for (var i = 0; i < rsize.children.length; i++)
    {
    if (rsize.children[i].value == true)
    return rsize.children[i].text;
    }//end for
    }//end function QuestionResize 
    
    //**********************************************************************************************************************************************************
    //***************************************************************This is the section that will center the artwork ******************************************
    //********************************************************************************************************************************************************** 
    
        var thisDoc = app.activeDocument;
        thisDoc.rulerOrigin = [0,0];  //  Sets the coordinates of the artboard to the lower left hand corner of the document.
        thisDoc.pageOrigin = [0,0];  //  This makes sure a valid reference point is used for different sized documents. 
    
        function centerArt()
      {
          var thisdoc = app.activeDocument;
            //var selecteditem = app.activeDocument.selection; // [error] this throws no error here, but it does down below, selection returns an Array @@@@@@
            var selecteditem = app.activeDocument.groupItems[0]; // since you have duplicated a group, just get a reference to it @@@@@@@@@@@@
            selecteditem.selected = true; // you don't have to select items to work with them, I just selected to continue Debugging your script @@@@@@@@
            var hasDocCoords = app.coordinateSystem == CoordinateSystem.ARTBOARDCOORDINATESYSTEM; 
    
            var p = thisdoc.pageItems;
            for (var i = 0, l = p.length; i < l; i++) {
                var pID = p[i];
                if (pID.guides == true) {
                    var guideBox = pID
                }
            }
            var wNum = guideBox.width;
            var hNum = guideBox.height;
            var swNum = selecteditem.width;
            var shNum = selecteditem.height; 
    
            var sxOffset = (swNum/2);
            var syOffset = (shNum/2);
            var xOffset = (wNum/2);
            var yOffset = (hNum/2); 
    
            var xNum = guideBox.position[0]+xOffset;
            var yNum = guideBox.position[1]-yOffset; 
    
            var guideXCenter = xNum-sxOffset;
            var guideYCenter = yNum+syOffset; 
    
            var sxNum = selecteditem.position[0]+sxOffset;
            var syNum = selecteditem.position[1]-syOffset; 
    
            //to test your script for position un annotate the two alerts below 
    
                  alert("GuideBox Data:\nWidth: "+wNum+"\nHeight: "+hNum+"\nX Position: "+xNum+"\nY Position: "+yNum);
                    alert ("Selected object Data:\nWidth: "+swNum+"\nHeight: "+shNum+"\nX Position: "+sxNum+"\nY Position: "+syNum); 
    
            //changes the position of the selected artwork to the center of the guide box.
            //app.activeDocument.selection[0].position = [guideXCenter, guideYCenter]; // use the group reference instead @@@@@@@@@@@@@@@@@
            selecteditem.position = [guideXCenter, guideYCenter]; // selecteditem is the duplicated group @@@@@@@@@@@@@@@@@@@@@@
        }//end centerart 
    
      function resizeart()
    {
      if (questionResize (rsizechoice) == "Yes")
      {
            for (var i = 0; i < app.activeDocument.pageItems.length; i++)
            {   
    
                if (app.activeDocument.pageItems[i].guides == true) {
                    var guideBoxSize = app.activeDocument.pageItems[i];
                }  //end if
            }  //end for
            var guideW = guideBoxSize.width;
            var guideH = guideBoxSize.height; 
    
            //var itemW = app.activeDocument.selection.width;  // selection returns an array @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
            //var itemH = app.activeDocument.selection.height;  // same as above @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
            var itemW = app.activeDocument.selection[0].width;
            var itemH = app.activeDocument.selection[0].height; 
    
            //to test your script for resize un annotate the two alerts below 
    
            alert ("guide is this tall " + guideH + "\nguide is this wide " + guideW);
            alert ("item is this tall " + itemH + "\nitem is this wide " + itemW); 
    
            var artWidth = itemW;
            var artHeight =itemH;           
    
        if (artWidth > artHeight)
            {
              var a = (guideW/artWidth)*100;
              app.activeDocument.selection[0].resize(a,a);
            }
        if (artHeight > artWidth)
            {
              var b = (guideH/artHeight)*100;
              app.activeDocument.selection[0].resize(b,b);
            } 
    
    var artWidth2 = itemW;
    var artHeight2 =itemH;     
    
    if (artHeight2 > guideH)
        {
          var c = (guideH/artHeight2)*100;
          app.activeDocument.selection[0].resize(c,c);
          } 
    
        }//end if doresize
    }//end function resizeart 
    
    function putname ()
    { 
    
      var thisDoc = app.activeDocument;
            thisDoc.rulerOrigin = [0,0];
            thisDoc.pageOrigin = [0,0]; 
    
      var filename = app.activeDocument.name.replace(/\.[^\.]+$/, '');
      var createdate = app.activeDocument.modified; 
    
      var  theDate = new Date();
            var day = theDate.getDate();
            var month = theDate.getMonth() + 1;
            var year = theDate.getFullYear();
            var hours = theDate.getHours();
            var min = theDate.getMinutes();
                if (min < 10)
                    min = ("0" + min);
            var morn;
                if (hours >= 12)
                    {
                        hours = hours-12;
                        morn = " PM";
                    }
                else
                    morn = " AM" 
    
    var saveDate = (month + "-" + day + "-" + year + "    " + hours + ":" + min + morn ); 
    
      var nameTextFrame = thisDoc.textFrames.add();
        nameTextFrame.contents = globalartistname + "\n" + filename + "\n" + saveDate;
        nameTextFrame.top = 1000;
        nameTextFrame.left = 100;
        nameTextFrame.filled = true;
        nameTextFrame.alignment = "center"; 
    
        }//end put name 
    
    function savefile ()
    { 
    
        //change this folder location for the "savescript" variable to the one where the location of the save script is located on the server,
        //This save script is for the pallet that will pop up and list the different save options, not the individual save scripts themselves. 
    
            var savescript =  new File("S:/Art/ArtDept/Illustrator JS Palette/Scripts/Art Share Server/Save/Save Option Pallet");
                savescript.open("r");
          var bt = new BridgeTalk;
                bt.target = "illustrator";
          var script = savescript.read();
                savescript.close();
          bt.body = script;
          bt.send();   
    
          if (saved = true)
          {
              alert("File saved")
            } 
    
          if (saved == false)
          {
              alert ("File not saved")
              } 
    
          return true;
    }       
    
    //**********************************************************************************************************************************************************
    //********************This section is for the functions to check which button gets pressed and returns the text to a variable for output ****************
    //********************************************************************************************************************************************************** 
    
    //all radiobutton groups must be pressent in this array
    var totalgroups = [totes1] 
    
    //this function checks each group for the 1 radio button is clicked then returns its text
    function selected_rbutton (totalgroups)
    {//start function to check buttons
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Totes tab buttons 
    
    //when totes1 is pressed return text for output
    for (var i = 0; i < totes1.children.length; i++)
    {
    if (totes1.children[i].value == true)
    {
    return totes1.children[i].text;
    }//end if 
    
    }//end if
    }//end for 
    
    //////////////////////////////////////////////////////////////////////////open template 
    
    function openTemp()
    {
        //change the folder location of the templates here but leave the last section that is black, this will allow the script to open which
        //ever template they chose from the radiobuttons.  This location should be the same as the toteTempPath above but reduces the
        //chance for something to break by pulling the address here again instead of from the variable near the begining of the script. 
    
    var gettotetemp = new File("Z:/  Vitronic Master Templates/STE2 Templates/TOTES & BAGS/" + selected_rbutton (totalgroups));
    //var gettotetemp = new File("c:/temp/templates/" + selected_rbutton (totalgroups)); 
    
    var template = open(gettotetemp);  // get a reference to the template @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
      return template; // return the open template document @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    }//end open temp function 
    
    }//end if selection check 
    
    else
    {
        alert("Please select the artwork.");
      } // end else selection check
    
  • View 4 Post synchronization script exact sequence?

    Hello

    I'm trying to understand the exact sequence of a deployment of linked clone. Especially for the message synchronization script.

    I am facing a strange behavior. Sometimes when you connect to a desktop put into service for the first time, he asks to reboot the system and sometimes not. I refer to the same pool, based on the same replica.

    I wonder if I should add a synchronization with a reboot in her message. But the question is: reboot will disrupt ongoing deployment process.

    This is one of the reasons why I would like to know the sequences of a deployment.

    Can someone bring some light on this subject?

    Thank you very much

    Eric

    The postscript runs after the clone has been deployed for a restart should not affect anything.   Useful link for postscript.

    http://www.thatsmyview.NET/2009/04/16/post-syncronization-scripts/

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

Maybe you are looking for