Palette selective error

Hi all

I own PS CS5. For some time it has been to come up with the following error at the end.

"Errorpalette selective." "XML parsing error: 'not well formed (invalid token)' at line 1"

Is there a way to return to normal program?

see you soon

Nick

The selective Palette of Nik/Google plugin update.

Tags: Photoshop

Similar Questions

  • Try to download Acrobat Pro XI, get suite error regardless of the drive that I select: "error".

    Try to download Acrobat Pro XI, get next error regardless of the drive that I select: "Error 1327: invalid drive...". »

    Hi pastorjeff7878,

    Please follow the steps mentioned in the KB: http://helpx.adobe.com/creative-suite/kb/install-error-1327-invalid-drive.html .

    Kind regards

    Romit Sinha

  • Select error Bay on Tecra M5

    Hello

    I have a Tecra M5 (M5L - Core [email protected] GhZ, 1 GB RAM, 100 GB HARD drive). As I bought it had only a Combo CD-RW/DVD, it can only play DVDs and burn CDs. So, I bought a DVD of Nec drive (Optiarc DVD RW AD - 7543-A).
    But now when I turn on the lappy just after the "Toshiba" screen, pops up a message "Select Bay error" and then start Windows (XP Pro), it does not recognize the drive, it does not appear, and the reader don't either ejects when I push the button.
    The strange thing is that when I pull chase him and plug it (while Windows is running) immediately it is recognized and I can use it without any problems, I can read and burn CD/DVDs. It just doesn't recognize it when the pc starts, but only when windows is running. I have updated the BIOS and drivers.
    I also tried with a different burner, Toshiba, but it gives the same error.
    Can someone help me?

    Thank you!

    Hello

    It is always recommended to use parts compatible equipment 100% because in this way you can be sure that everything will work ok. I found the info Tecra M5 came with different ratings, and some models have a DVD super multi drive inside. The STRANGE even, you can use with your Tecra. It must be PA3359E-2DV2 part number.

    Check it out!

    I don't really know what you can do now, but in my opinion, you should simply exchanging the drive with a compatible.

  • Appeal of selection error: TypeError: cannot read property 'msie' of undefined so that the update of the publication of message FTP Muse 2015.2 [was: update problems after installation of Muse 2016.2 site]

    Hello

    After the Muse 2016.2 update, I made some changes in a Web site, I'm trying, updated through publication > FTP host and now the site is unavailable. I get the following error messages in Chrome:

    JavaScript exception: error calling selection: TypeError: cannot read property 'msie' undefined.

    The site is: duplycopy.com

    I've attached a screenshot of the Chrome Console tab.

    duplycopy_co.jpg

    Any help will be very appreciated!

    Daniel

    Post edited by: Catherine Rollet

    Hi Daniel,.

    Thank you for reaching out to us on this subject. I just responded to you via email as well with more details.

    We had to look more closely at the error that you get everywhere.

    It seems that the problem occurs because third party shopping widget on your page load a stripped down version of jQuery (the popular JavaScript library) that does not include a method of detecting browser (jquery.browser) which is needed for the sites of Muse:

    If you wish to continue using the third party widget, we recommend you reach out to the third party and inform them that if they want to load another version of jQuery that Muse loads by default it must load the entire library.

    Please let us know if you have any questions or need any clarification.

    Kind regards

    Marc

  • Select error Ora-01401

    Friends... for the last 2 days, I'm going crazy with this error and just can't go through with it.

    DB: 11.2.0.3

    Characteset: WE8I08859P1

    Table: comments

    Col: (col1 vachar2 (4000))

    I move the comments table to UTF18 database characterset.

    I am selecting 'col1' of table 'comments' and try to identify the lines that are more 4000 characters, so that I have find the rows of problem and fix them before the import.

    Whatever I do just can't go

    "Ora-01401: insert the value too large for the column.

    error.

    SELECT rowid

    Comments

    WHERE LENGTH (convert (col1, 'AL32UTF8')) > 4000;

    Query works perfectly well until he hits line which increases to 4,000 characters when it converts the UTF8.

    Is it a smart way to display of rowid and error?

    OK, let's go.

    I have reproduced your scenario on a system (v11.2.0.3) with CharacterSet = AL32UTF8.

    That's why I had to convert it to something as AL16UTF16.

    Like pl/sql can handle varcahr2 larger 4 000 bytes, I took this way.

    create notes of table (col1 varchar2 (4000))

    insert into comments values (lpad ('A', 4000, ' A'))

    Select length (col1) in comments

    LENGTH (COL1)

    4000

    Select convert (col1, 'AL16UTF16') comments

    ORA-01401: inserted value too large for column

    declare

    l_var varchar2 (20000);

    l_len pls_integer;

    Start

    for rec in (select col1, rowid comments) loop

    l_len: = length (convert (rec.col1, 'AL16UTF16'));

    If l_len > 4000 then

    dbms_output.put_line (rec.rowid |': ' | l_len);

    end if;

    end loop;

    end;

    ABYrWhAJIAAAADUAAA: 8000

    BTW: I'm still interested what happens if you issue the query above AL32UTF8 database on a connection to the database WE8I08859P1.

  • The IKM selector selection error: IKM SQL for Hyperion Planning

    Hello

    On the tab 'Flow' of my model, I click on my head to target. Then on the drop down 'Selector IKM', select 'IKM SQL for Hyperion Planning. It gives the error:

    Internal error: ODI-15526: IKM IKM SQL for Hyperion Planning not accepted for stage director and target technology


    Any ideas? I am really new green on ODI and I am at the end to try to run my dimension build. Any help is appreciated.

    You must select a transit area which is different to the planning, because this isn't an intermediate technology supported. What you need to do is to go to the tab definition of your interface tick the 'target different transit zone"and then select a relational technology (that is, one that takes supported SQL) in the drop-down list below. If you have no relational db on stage your data and then select ENGINE SUNOPSIS MEMORY which is the memory in DB that is provided as part of the ODI.

  • Word key missing in to_number conversion in the SQL statement select error

    ORA-00905: lack keyword for the below SQL statement error. It should be of to_number (m.EQUIP_SUB_CLASS_ID, '9999')
    between 3800 and the 3699 where Clause. Is that what I miss in the SQL below?

    SELECT  M.EQUIP_NO,M.EQUIP_CLASS_ID, M.EQUIP_DESCR,M.ORG_ID
      from  MAMIS.EQUIP M
     where M.EQUIP_NO in  (  SELECT  M.EQUIP_NO  from  MAMIS.EQUIP M, MAMIS.ORG O 
    where upper(M.ORG_ID) like upper(O.ORG_ID) 
    and length(replace(translate(M.EQUIP_SUB_CLASS_ID, '0123456789', '000000000'), '0')) is null
    and upper(M.fleet_status) like 'ACTIVE'  
    and upper(M.ORG_ID) not like 'NA'  
    and to_number(m.EQUIP_SUB_CLASS_ID , '9999') 
    between 3699 and 3800  )

    Hello

    I don't see obvious errors.

    Whenever you have a problem, please post a full test script that people can run to recreate the problem and test their ideas. Include CREATE TABLE and INSERT statements for all of the tables involved and the results desired from these data. Format your code so people can read and understand.
    See the FAQ forum {message identifier: = 9360002}

    I saw a couple of things you need to know about Oracle, but none of them would cause an error "Missing key word".

    There is no point in using the LIKE operator if you do use wildcards. For example

    upper (M.fleet_status)      like 'ACTIVE'  
    

    is slower than, but otherwise equivalent to

    upper (M.fleet_status)      = 'ACTIVE'  
    

    What are you trying to do here?

    length ( replace ( translate ( M.EQUIP_SUB_CLASS_ID
                                , '0123456789'
                        , '000000000'
                        )
               , '0'
               )
           )               is null
    

    Want to see if m.equip_sub_class_id consists only of numbers, from ' 0 'to 9'?
    If so, you can simply say

    TRANSLATE ( m.equip_sub_class_id
           , 'X0123456789'
           , 'X'
           )          IS NULL
    

    Depending on your front end, you may need a sem, i-colon (;) the end of your query.

  • Help: open multiple AI files produced error in the Palette. (Error: 8702, there is no document.)

    I try to open the files have mulitple via the palette dialog box but it fails on the error: 8702, there is no document. But if I change to win var = new window ('dialogue', 'Batch'); Open the file works well. Did someone help out me?

    var txtSourceFolder = win.add ("edittext", undefined);

    btnOk var = win.add ("button", undefined, "Run");

    {btnOk.onClick = function ()}

    Try

    {

    var sourceFolder = new Folder (txtSourceFolder.text);

    var srFileType = "*.ai.

    var files = sourceFolder.getFiles (srFileType);

    If (sourceFolder! = null)

    {

    If (files.length > 0)

    {

    for (i = 0; i < files.length; i ++)

    {

    var optRef = new OpenOptions();

    optRef.updateLegacyText = true;

    sourceDoc = app.open (files [i], DocumentColorSpace.CMYK, optRef); Returns the document object

    }

    Alert ("the files are saved as HAVE in" + destFolder);

    }

    on the other

    {

    Alert ("no file found");

    }

    }

    }

    catch (Err)

    {

    If (err.substring)

    {

    Alert ("Error:" + err);

    }

    on the other

    {

    Alert ("Error:" + (err.number & 0xFFFF) + ', ' + err.description);

    }

    }

    }

    Win.Center ();

    Win.Show ();

    You must use BridgeTalk to have your talking Palette in Illustrator, search the forums, we have published several scripts that show how.

  • The mutation of the Table... not triggered on SELECT error? And also not on UPDATE?

    I thought I knew how to get Oracle to report an error Table mutation, but when I tried to do it in a demonstration today, it didn't work. Here is what I tried:
    SQL> set serveroutput on
    SQL> create table test_mte (f number);
    
    Table created.
    
    SQL> insert into test_mte values (1);
    
    1 row created.
    
    SQL> insert into test_mte values (2);
    
    1 row created.
    
    SQL> insert into test_mte values (3);
    
    1 row created.
    
    SQL> create or replace trigger test_mte_bt
      2  before insert on test_mte
      3  for each row
      4  declare
      5    wk_cnt number;
      6  begin
      7  
      8    select count(*) into wk_cnt from test_mte;
      9    dbms_output.put_line(wk_cnt);
     10    
     11  end test_mte_bt;
     12  /
    
    Trigger created.
    
    SQL> insert into test_mte values (4);
    3
    
    1 row created.
    I thought that, in a level trigger line, questioning the table on which the trigger is installed, you get an error of the changing table. Same thing with INSERT, UPDATE, or DELETE. Of course, I thought I'd get the problem with DML:
    SQL> create or replace trigger test_mte_bt
      2  before insert on test_mte
      3  for each row
      4  declare
      5    wk_cnt number;
      6  begin
      7  
      8    update test_mte set f = 10 where f = 1;
      9    dbms_output.put_line('Updated: '||SQL%ROWCOUNT);
     10    
     11  end test_mte_bt;
     12  /
    
    Trigger created.
    
    SQL> insert into test_mte values (4);
    Updated: 1
    
    1 row created.
    We are on Oracle 11.1.0.7. Could something have changed in this upgrade? I'm completely confused.

    Thank you
    -= Chuck

    If the trigger is an INSERT... VALUES, Oracle knows this is a special case and that exactly 1 line will be inserted. This means that, indeed, a row-level trigger is no different with a statement-level trigger so the restriction on the questioning of the trigger table is not present.

    If you were writing your next INSERT statement as a query - even if this query returns a single row, you will get an error because Oracle knows the syntax that you are guaranteed to get exactly one line.

    SQL> insert into test_mte
      2    select 5
      3      from dual;
    insert into test_mte
                *
    ERROR at line 1:
    ORA-04091: table SCOTT.TEST_MTE is mutating, trigger/function may not see it
    ORA-06512: at "SCOTT.TEST_MTE_BT", line 4
    ORA-04088: error during execution of trigger 'SCOTT.TEST_MTE_BT'
    

    Of course, when you write the actual code, you never want to count on each insert is a single-row INSERT statement... VALUES statement so there is not much cause to take advantage of this gap in practice.

    Justin

  • The view table selection error external references

    Can someone explain why the error near the bottom of the code below? If USER1 grants SELECT on the external table to User2, then USER2 can select the view without any problem; However, I would like to avoid to give User2 access to all the columns in the external table. (I mean only to give USER2 access to two of the four columns).
    SQL> CONNECT sys AS SYSDBA
    Connected as SYS@ as sysdba
    
    SQL> CREATE USER user1 IDENTIFIED BY user1
    User created.
    
    SQL> CREATE USER user2 IDENTIFIED BY user2
    User created.
    
    SQL> GRANT CONNECT, CREATE TABLE, CREATE VIEW TO user1
    Grant complete.
    
    SQL> GRANT CONNECT TO user2
    Grant complete.
    
    SQL> GRANT READ, WRITE ON DIRECTORY EXT_DATA_DIR TO user1, user2
    Grant complete.
    
    SQL> CONNECT user1/user1
    Connected as USER1@ 
    
    SQL> CREATE TABLE emp_xt
    (
      emp_id     NUMBER,
      first_name VARCHAR2(30),
      last_name  VARCHAR2(30),
      phone      VARCHAR2(15)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY EXT_DATA_DIR 
      ACCESS PARAMETERS 
      (
        RECORDS DELIMITED BY NEWLINE
        FIELDS TERMINATED BY ','
        OPTIONALLY ENCLOSED BY '"'            
      )
      LOCATION ('emp.txt')
    )
    REJECT LIMIT 0
    Table created.
    
    SQL> SELECT COUNT(1) FROM emp_xt
    
      COUNT(1)
    ----------
             4
    1 row selected.
    
    SQL> CREATE OR REPLACE VIEW emp_xt_view AS SELECT first_name, last_name FROM emp_xt;
    View created.
    
    SQL> SELECT COUNT(1) FROM emp_xt_view
    
      COUNT(1)
    ----------
             4
    1 row selected.
    
    SQL> GRANT SELECT ON emp_xt_view TO user2
    Grant complete.
    
    SQL> CONNECT user2/user2
    Connected as USER2@ 
    
    SQL> SELECT COUNT(1) from user1.emp_xt_view
    SELECT COUNT(1) from user1.emp_xt_view
    *
    Error at line 0
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    ORA-04043: object "USER1"."EMP_XT" does not exist
    
    SQL> CONNECT user1/user1
    Connected as USER1@ 
    
    SQL> GRANT SELECT ON user1.emp_xt TO user2
    Grant complete.
    
    SQL> CONNECT user2/user2
    Connected as USER2@ 
    
    SQL> SELECT COUNT(1) from user1.emp_xt_view
    
      COUNT(1)
    ----------
             4
    1 row selected.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    user503699 wrote:

    Sven wrote:
    You have an interesting point for the current user AUTHID. What would be the consequences for that?

    Published by: Sven w. on August 11, 2010 16:45

    I'm not quite familiar with the feature of the data cartridge, nor used TYPEs a lot. But as the external tables use a type defined by the system (ORACLE_LOADER), I think a SQL against an external table called the underlying type procedure/function, and it is where the user rights come into picture.

    This seems very likely. I'm just thinking if there is a way around the problem. An idea might be to select on the view with User1 instead of user2. Perhaps via a loopback database link.

    Complete shot in the dark:

    not tested syntax

    /* do this as user1!  */
    create database link myDb connect to user1 identified by user1 using 'myDB';
    
    create view testLink_view as select * from externalTable_view@myDB;
    
    grant select on testLink_view to user2;
    

    I do not know if you need create the link to the db, since these often telesignalisations are already in place.

  • Impossible to decode and import the wav/mp3 file selected"error in Captivate 4

    Good afternoon.

    I exported and modified a Captivate presentation audio in Soundbooth. After editing, I save the file as a. WAV. When I import the file to the slide, I receive the error message listed above.

    I followed the other discussions in the forum and performed the following:

    XP Pro (32 bit - SP3)

    E-Learning Suite

    Captivate 4

    Soundbooth CS4

    • Downloaded and installed new NSAudio.dll
    • NSAudio.dll successfully registered
    • Ran successfully the restoreCP4regentries.bat and the restoreRegPermCP4.bat
    • Restarted the computer
    • Ran the program as long as administrator (even if he asked me to re - register the product - a little strange)

    I always get the error when I try to import WAV files. If I convert the files to MP3 format, they can be imported. At the moment I prefer not to import them in MP3 format.

    WAV format is uncompressed, 44, 32 floating little (I also tried other bits).

    I lost a whole afternoon of productivity to this.

    Any thoughts on how to solve this problem? It seems that I followed all the recommendations I've seen so far.

    Hello

    Captivate seems a bit picky about WAV format. You might have to adjust a few settings with the WAV output. You could start by trying the following and see if it is resolved.

    Start with a backup copy of the audio clip

    Open base Windows Sound Recorder

    Open the WAV file with questions in sound recorder

    Click file > save as

    Click the change... button - make no changes, and click OK (this should change it to PCM format)

    Try to import the WAV file after that and see what happens.

    Personally, I would use the MP3 myself. Not sure why you are against it. After all, this is what will end up in your compiled result.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • 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
    
  • Causes read errors files waveform of reading Analog Waveform Editor in LabVIEW (.hws)

    Hey Gang,

    In my application, I want to create files using the Analog Waveform Editor and then, through LavVIEW, playing through a D/A.

    I was not able to read the file .hws in LV I tried both methods:

    The use of the VI of waveform read in waveform palette, gives error-1821.

    I looked in the knowledge base and found the article "with the help of the Analog Waveform Editor material and the HWS file with multifunction" as recommended by using the HWS screws that are part of the FGEN driver.  I tried and you get a wrong-21515.

    The file that I want to read is fairly small, only 20 samples.  Is there a restriction on the .hws files or Waveform Editor I'm not aware of?

    I have attached the file if someone is willing to experiment. I had to change the .hws in .txt extension to be able to attach.

    All responses will be appreciated.

    Thank you

    Roger

    Hello!

    Thanks for the validation test!

    I don't know what is happening, but I just worked around it by the VI Express NOR-HWS, as you said and converting into a 1 d of doubles.

    Thank you

    Roger

  • VI FPGA-61017 open error

    LabVIEW RT running on the cRIO-9068, LabVIEW FPGA programming mode. Citing the FPGA VI open (from the RT program) returns the error-61017 code. Everything seems to work OK, but unexplained errors keep me awake at night. I looked everywhere but could not find an explanation for this error. Did anyone here know what makes?

    I'm glad to hear that you understood.

    I know the error codes are out there somewhere on the internet, but I usually do it is go to the Help Menu in LabVIEW, select error explain and enter the error Code I'm interested.

    Sebastian

  • Log exact error line

    Hello

    I have procedure for logging the errors below and I want that the procedure would be connect not only error code and the massage, but also name of line and the procedure of error that is causing the error. Is there a function or sth to connect to this kind of information?

    create or replace package paketas as

    procedure error_log (object_in in varchar2);

    ins procedure;

    end;

    /

    create or replace package body as a paketas

    ins procedure as

    l_num pls_integer;

    Start

    Select 0

    in l_num

    of the double

    where 1 = 0;

    exception

    while others then

    error_log ("INS");

    ins end;

    procedure error_log (object_in in varchar2) as PRAGMA AUTONOMOUS_TRANSACTION;

    number of n_code;

    n_massage varchar2 (100);

    Start

    n_code: = SQLCODE;

    n_massage: = SUBSTR (SQLERRM, 1, 100);

    -Connect line and procedure name - error

    INSERT INTO mistakes (e_id, code, message, e_time)

    VALUES (er_id.nextval, n_code, n_massage, sysdate);

    COMMIT;

    end error_log;

    end paketas;

    /

    Hello

    Yes, you can use the dbms_utility.format_error_backtrace function

    EXCEPTION

    WHILE OTHERS THEN

    Log_Errors ("Error_Stack... » || Chr (10) |

    DBMS_UTILITY. FORMAT_ERROR_STACK());

    Log_Errors ("Error_Backtrace... » || Chr (10) |

    DBMS_UTILITY. FORMAT_ERROR_BACKTRACE());

    DBMS_OUTPUT. PUT_LINE ("-");

    But I have changed a bit in your procedure.

    create or replace package paketas as

    procedure error_log (code number, message in varchar2, procname in varchar2);

    ins procedure;

    end;

    /

    create or replace package body as a paketas

    ins procedure as

    l_num pls_integer;

    Start

    Select 0

    in l_num

    of the double

    where 1 = 0;

    exception

    while others then

    error_log (SQLCODE, SQLERRM, "INS");

    ins end;

    procedure error_log (code number, message in varchar2, procname in varchar2) as PRAGMA AUTONOMOUS_TRANSACTION;

    number of n_code;

    n_massage varchar2 (100);

    Start

    n_code: = code;

    n_massage: = SUBSTR (message, 1, 100);

    -Connect line and procedure name - error

    INSERT INTO mistakes (e_id, code, message, e_time, procname)

    VALUES (er_id.nextval, n_code, n_massage, sysdate, procname);

    COMMIT;

    end error_log;

    end paketas;

    /

    Start

    Paketas.ins;

    end;

    /

    Select * errors;

    1 100 ORA-01403: no data available January 8, 16 INS

    Concerning

    Mahir

Maybe you are looking for