name of layers to export to an external file

Hi all

is it possible to export the names of layers ( this.getOCGs () [i] .name ) using JS in an external file (csv, xml, etc.) in order to place the names in an excel file?

Thank you and best regards,

Alex

Sure. Have a look at the createDataObject and exportDataObject methods.

Tags: Acrobat

Similar Questions

  • Layers of export in the form of RGB & coordinated Info files?

    Using CS4. Trying to find a way to export layers in a PSD as individual files WITH coordinates & RGB values in the name of the file... I know already, the script 'Export layers as files' exists... but may not know how to apply the coordinates and the RGB info... the file name without renaming it manually each layer...

    Is there a way to create an action that adds the name of layer with coordinates? Same question with the RGB values...

    I could then run scripts/actions and then export them into individual files...

    Thoughts?

    How is that?

    appendCoords( app.activeDocument )
    function appendCoords( theParent ) {
         for ( var m = theParent.layers.length - 1; m >= 0; m-- ) {
              var theLayer = theParent.layers[ m ];
              if ( theLayer.typename != "LayerSet" ) {
                   if( !theLayer.isBackgroundLayer ){
                        app.activeDocument.activelayer = theLayer;
                        var bounds = app.activeDocument.activelayer.bounds;
                        var x = bounds[0].as('px');
                        var y = bounds[1].as('px');
                        app.activeDocument.activelayer.name = app.activeDocument.activelayer.name+' X'+x+' Y'+y;
                   }
              }else {
                   findTextLayers( theLayer );
              }
         }
    }
    
  • Winmail in vista mail export then problem of file name different when imported into windows live mail?

    win mail in export Vista mail then face the different file name problem when importing into windows live mail?

    I have dell laptop and vista 32 - bit os worm and now I change my laptop and have os windows 7, but when I export the name of folder windows vista mail rename (long file name) so when I import in windows 7 in the windows live mail client it is not imported as well as in win mail. folder and sub-folder is not in good
    the path folder and subfolder and subfolder; s subfolder is not to this strucherd only in win mail in vista. so, how to solvedthis problem and I want to win software mail in windows vista then where to download in windows 7. PS please help me I have the database of records of mamy creat inside.

    Hi ChintanThakkar,

    Since you are facing problems with its import to Windows Live mail, you can publish your application in the Windows Live Forum for assistance.

    Windows Live Support

    http://windowslivehelp.com/solution.aspx?SolutionID=0f26bfb0-7799-46a9-A969-dfc8186110f7

    Hope this information is useful.

  • Export of collections to the external file allows only export as a jpeg image and not the original file types?

    Export of collections to the external file allows only export as a jpeg image and not the original file types?

    Why is this?

    DOOH-just found out why. the video bar was enabled prevail so on options-now them it works thank you for your answers.

    George

  • Script - layers of export files does not - need urgent help

    Hello I am using windows 7 ultimate 64-bit and adobe photoshop cs5 trial

    When I use the script - export layers to files

    with the way that the images below shows

    but it does not create a new image instead of destination file

    Basically, it does not work

    the image of my diapers

    http://img88.imageshack.us/img88/8530/layersb.png

    How do I run the script

    http://img684.imageshack.us/img684/812/exportl.png

    I have sandy bridge 2600 k @ 4.8 ghz

    16 GB of ram ddr 3

    Thanks for the help

    Try manually to enable the visibility of your layers before export and turn embedding of ICC.

    Mylenium

  • Export to a Photoshop file, writing layers unavailable

    Hi all

    I'm new to this forum, I did some research and could not find an answer to my problem. I hope that you will be able to help me !

    I'm used to work and create my projects with Illustrator CS4, and then click the file > > export > > Photoshop file > > check the layers options write > > OK.

    I don't know what I did with one of my file, but suddenly I can't tick the option "Write Layers" while it was working fine a few days ago...

    I tried with other files I have and it works fine... but not with this new...

    Do you have an idea of what I've done?

    This file contains 66 layers, and there is no nested groups (I read online that could be the problem but it's not)...

    I tried to delete all the layers except one and I still have this problem, I can only export it in the form of flat image...

    Thanks for your help! I really need to export it to a file with layers photoshop.

    Laurent

    Couldn't you copy & paste after you have enabled the option "Paste remembers layers", this should then keep your layers correctly.

  • Export bookmarks in csv file

    I have a script that exports bookmarks to a csv file.


    The script works really at a stage where the csv file is created and opened with the name mark book being listed in the csv file.

    All other bookmark names are not.

    Some advice would be most appreciated by modifying the script to list all bookmarks in the csv file.

    var bm = this.bookmarkRoot;

    var ibmLength = bm.children.length;

    for (var i = 0; i < ibmLength; i ++)

    BookName var = bm.children [i] .name;

    fieldValues var = [];

    fieldValues.push (bookname);

    this.createDataObject ('output.csv', fieldValues.join ());

    this.exportDataObject ({cName: 'output.csv', nLaunch: '2'});

    Thank you

    You must use media for loop for:

    var bm = this.bookmarkRoot;

    var ibmLength = bm.children.length;

    fieldValues var = [];

    for (var i = 0; i)< ibmlength;="" i++)="">

    BookName var = bm.children [i] .name;

    fieldValues.push (bookname);

    }

    this.createDataObject ('output.csv', fieldValues.join ());

    this.exportDataObject ({cName: 'output.csv', nLaunch: '2'});

  • Pull down of information menu from external file

    I want my drop down menu information contained in an external file, so I can use it. Several pages without inserting the code whenever I can are updated in one place.

    <! DOCTYPE html >

    < html lang = "en - es" >
    < head >
    < / head >
    < body >

    < name of the form = "UnitTest" action = "Inspector.html" method = "POST" > "
    < div align = "center" >

    < select name = "Inspector" several size = "1" >
    < option value = "1234" > 1234 < / option >
    < option value = '56789' > 56789 < / option >
    < option value = > '98765' 4321 < / option >
    < / select >

    < / div >

    < / make >

    < / body >

    < / html >

    Sandy

    I went to the Stack Overflow website http://stackoverflow.com/questions/8988855/include-another-html-file-in-a-html-file and found some useful code. He did something funny I hope that you can build a help with. This is the code I found and use;


        

                     
                           
                             

    backup content


                           

                      
           


        
                         
                      
                           
                             

    backup content


                           

                      

    How can I get rid of these big gaps?

  • Problem opening external files in Web Player

    When you use the Web with Authorware 7.02 reader, whenever I try to open an external file in Winword (Microsoft Word), it looks like on the desktop.

    This has happened even if I used the 'get. put. bin win file name.doc"a .aam web put in, so rather than look in the same folder as the .aam is in the basics of file card instuctions noted, it looks like on the desktop.

    What should I put in the FileLocation ^? "Put." is the only name I know only to "look in the same folder as the .aam is in.

    Setting Put in an edition of button should be as I said earlier ".» "------" It's a period and a backslash.

    My mistake on the code, you must use what I posted:

    JumpOutReturn ("", FileLocation ^ "YourWordFile.doc")

    Or, with your file name: -.

    JumpOutReturn("",FileLocation^"A1ChangeStrategyAgendaR.doc")

    It's not the code that goes in the aam file. It is in the main file of Authorware.

    HTH

    Steve

  • 4000 + a question about external files.

    Hey people, seeing that I hang on, here I think it is the best place for my 4000th post on the Adobe Forums (get a life!).

    Does anyone have a tutorial on the passage of the photos made to an external file? I want it inside a normal plugin, not as a process action.

    That's a very personal project, by images of ffmpeg for having my timelapse movies created with an export from Lightroom.

    In your processRenderedPhotos(), you have a loop where you go through all the exportContext:renditions one by one (from the standard stuff for almost all plugins to export). You may launch the application within this loop. Move after the loop, he started only once once all photos are rendered.

  • Added a link to an external file in the table of contents

    I would like to be able to have a link in the table of contents in an external file (such as a pdf or doc Excel file) that can reside on the same server as the online help project, without having to add the external file to the project in a baggage file. Basically, I put in the address of the file, just as you would for a URL, but RoboHelp does not allow me to do. I can add a link of this type on a topic page, but I don't see how to do this in the table of contents. The idea is that this file could be maintained outside the project to online help, and the online help will always be a link to the most recent version (without having to update anything in the online help). Someone at - it ideas?
    Thank you!
    Lynn

    Nevermind, I figured it. I just need to add the following at the beginning of the URL address...

    file://

    I also need to remember that there may be no space anywhere in the folder names and file name when the link in the table of contents.

  • Export tables to flat files

    Hello

    Can I export tables to flat files (csv) using pl/sql. I mean suppose I have 2 paintings "student" and "topic" and I want to create two files student.csv and subject.csv please let me know, if I can do using pl/sql for tables at once.

    Even if I can do it for a single table, I can write a script to automate for all tables. Please let me know with your suggestions. Appreciate your help.

    Thank you

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

    Adapt to the exit of styles and different types of data are needed.

  • Name programmatically change a sequence in a sequence file

    Hi, I was wondering if there is a way to programmatically change the name of (rename) a sequence in a sequence file. Thanks in advance!

    You should be able to by this method: (assuming that the sequence you want to edit in the same file)

    ThisContext.SequenceFile.GetSequenceByName (Parameters.OldName). Name = Parameters.NewName

    It does not validate it works correctly but. You really need to check the new name does not already exist, and that the name is valid (only contain letters, numbers, and underscores. Name cannot contain spaces, begin with a digit or be empty. In addition, the name of t may not be 'Value')

  • How do you find the name of the Group and channel your TDMS file name?

    How do you find the name of the Group and channel your TDMS file name?

    Nevermind, I've used the file viewer.

  • SkyDrive, I created a folder, the names of 'recipes', I want to drop this file into categories for different types of food.

    If I create a folder called 'recipes' is it possible to create a path to break the categories, e.g., beef, pork, etc.

    SkyDrive, I created a folder name "recipes", that I want to drop this file into categories for different types of food, i.e. beef, pork, biscuits, pies, etc.  Is this possible?

    You can get help with Windows Live here services: http://windowslivehelp.com/forums.aspx?productid=6

Maybe you are looking for