Layer name in AI Files

I Have a problem when reading and parsing Adobe Illustrator files. When a layer name contains German Special Characters like ä, ö, ü, Illustator uses a encoding which I do not understand. The following Byte-Codes are written for ä, ö, ü:
"ä" -> 0xE280B0
"ö" -> 0xCB86
"ü" -> 0xC2b8
Does anybody know how to decode these Byte codes? Itßs not Latin1, not Unicode, so: what is it?
Thanks for any hint*

Stoeffu,
There may be a coding error; the code used for  ä seems to be the UTF-8 code for ‰, as it appears from this web page (third column, second column being Nokia S80):
http://aspector.com/~brf/Cyfer/technical.html
ä
0xE4
0xC3A4
0x2030
0xE280B0
According to this web page, http://bytes.com/topic/postgresql/answers/173340-codepage-win1252, 0xE280B0 is also a WIN1252 code, but not for ä
Or it may be a secret Illy code.
In any case, is it not possible to reverse the code, and get something reasonable, such as this?
"ä" -> 0xE280B0 -> ae
"ö" -> 0xCB86 -> oe
"ü" -> 0xC2b8 -> ue

Similar Messages

  • Script to search layer names

    Hi -
    Does anyone know if there is a script that can search through layer names within a file for a specific text string and then select it as the active layer?
    For instance, if a file has 4 layers, named My LayerX, LayerY, LayerZ, LayerA, I want to automatically search for a layer that has the text "rA" and make it the active layer.
    Thanks.

    This requires CS4 or better. It searchs using a RegExp and Action Manager so it should be very fast. It is set up now to deal with more than one matching layer.
    var re = /rA/;// a reg exp
    var matches = collectNamesAM(re);// get array of matching layer indexes
    for( var l = 0; l < matches.length; l++ ){
        makeActiveByIndex( l, false );
        // do something with layer
        alert(app.activeDocument.activeLayer.name);
    }// next match if any
    function collectNamesAM(re){
         var allLayers = new Array();
       var startLoop = Number( !hasBackground() );
       var endLoop = getNumberOfLayer();
       for( var l = startLoop;l < endLoop; l++){
            while( !isValidActiveLayer( l ) ) {
                l++;
            if( getLayerNameByIndex( l ).match(re) != null){
                allLayers.push( l );
         return allLayers;
    // Function: getActiveLayerIndex
    // Description: Gets gets the Action Manager API index
    //                        of activeLayer corrected for Background Layer
    // Usage: var idx = getActiveLayerIndex();
    // Input: None
    // Return: Number - correct AM itemIndex
    // Dependices: hasBackground
    function getActiveLayerIndex() {
         var ref = new ActionReference();
         ref.putProperty( 1349677170 , 1232366921 );
         ref.putEnumerated( 1283027488, 1332896878, 1416783732 );
         var res = executeActionGet(ref).getInteger( 1232366921 )
                                                           - Number( hasBackground() );
         res == 4 ? res++:res// why the skip in this doc?
         return res;  
    // Function: isValidActiveLayer( )
    // Description: Checks LayerSection for 'real' layers
    // Usage: if( isValidActiveLayer() )
    // Input: None
    // Return: Boolean - True if not the end of a Set
    // Notes:  Needed only if the layer was made active
    //               using Action Manager API
    function isValidActiveLayer( idx ) {
         var propName = stringIDToTypeID( 'layerSection' );// can't replace
         var ref = new ActionReference();
         ref.putProperty( 1349677170 , propName);// TypeID for "Prpr"
         // 'Lyr ", idx
         ref.putIndex( 1283027488, idx );
         var desc =  executeActionGet( ref );
         var type = desc.getEnumerationValue( propName );
         var res = typeIDToStringID( type );
         return res == 'layerSectionEnd' ? false:true;
    // Function: hasBackground
    // Description: Test for background layer using AM API
    // Usage: if( hasBackground() );
    // Input: None
    // Return: Boolean - true if doc has background layer
    // Notes:  Requires the document to be active
    //  DOM:  App.Document.backgroundLayer
    function hasBackground(){
        var res = undefined;
        try{
            var ref = new ActionReference();
            ref.putProperty( 1349677170 , 1315774496);
            ref.putIndex( 1283027488, 0 );
            executeActionGet(ref).getString(1315774496 );;
            res = true;
        }catch(e){ res = false}
        return res;
    function makeActiveByIndex( idx, forceVisible ){
         try{
              var desc = new ActionDescriptor();
              var ref = new ActionReference();
              ref.putIndex(charIDToTypeID( "Lyr " ), idx)
              desc.putReference( charIDToTypeID( "null" ), ref );
              desc.putBoolean( charIDToTypeID( "MkVs" ), forceVisible );
              executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
         }catch(e){ return -1;}
    function getNumberOfLayer(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref);
    var numberOfLayer = desc.getInteger(charIDToTypeID("NmbL"));
    return numberOfLayer;
    function getLayerNameByIndex( idx ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Nm  " ));
        ref.putIndex( charIDToTypeID( "Lyr " ), idx );
        return executeActionGet(ref).getString(charIDToTypeID( "Nm  " ));;

  • Load files to stack with out file extention as part of layer name

    Ok so as the title says i'm trying to figure out how to modify the "Load Files to Stack..." script so that it doesn't put the file extention as part of the layer name. it makes it a pain to have to go through and remove it when dealing with a lot of layers. I'm using photoshop CS5 on Win 7.
    Also if possible a script that would make Comp Layers for each layer created when loading files to stack it's a bit much to ask but worth a shot

    If anyone is just looking to import files into stack without extension names here's what I did:
    1- Go to your adobe scripts folder:
    64 bit - C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts\
    32 bit - C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Presets\Scripts\
    2 - Copy and paste these 2 files somewhere other than in the adobe folder like the desktop (I had to due to permission restrictions when saving):
    Load Files into Stack.jsx
    Stack Scripts Only\CreateImageStack.jsx
    3 - Rename these files to
    Load Files into Stack - no ext.jsx
    CreateImageStack_noext.jsx
    4 - edit Load Files into Stack - no ext.jsx (I use notepad++) and save
    Line 16 - <name> Load Files into Stack (no extension) </name>
    Line 43 - $.evalFile(g_StackScriptFolderPath + "CreateImageStack_noext.jsx");
    5 - edit CreateImageStack_noext.jsx, insert this line into "line 411" (just above "app.activeDocument.activeLayer.name = this.fName;") and save
    Line 411 - this.fName = this.fName.replace(/(?:\.[^.]*$|$)/, '');
    6 - copy and paste these edited files back into your adobe ...\Presets\Scripts\ folder (overwrite folder), reload photoshop and you should now see in File > Scripts > Load Files into Stack (no extension) available!
    And for the lazy, here are the two files
    load_files_into_stack_no_ext.zip
    drop these in your photoshop scripts folder:
    64 bit - C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts\
    32 bit - C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Presets\Scripts\
    Hopefully this helps someone! Why adobe just doesn't have this as the default is beyond me.

  • Exporting Layers to PNG files using each layer name to create the file name??

    Hi All
    I'm trying to sort the following problem and was hoping somebody here could help with a scripting solution - my knowledge extends as far as actions unfortunately - which I don't think is appropriate for this.
    I've created a User interface in Illustrator with many layers and have exported this as a psd with layers.
    Basically what i'm wanting to do is export every layer as a png file while using the layer name to create the file name - each layer needs to be clipped.
    There is no transparency in the png.
    I've run the export to files script - but the names are too long and there is no anti aliasing.
    I've tried running a script from Illustrator - but it doesn't see sub layers - and doesn't name the layers.
    any help would be appreciated.
    thanking you in advance
    regards
    nate

    Hi,
    We just released this tool: FERRY (http://ferry.thedamarmada.com). It does exactly what you want and a little bit more.
    I think it's worth it a try.
    It comes with a free demo that will export 5 layers.
    Take a look and let us know if it's what you need.
    It could be easily tweaked.
    Jordi

  • Is it possible to print the layer name on file/copy when print or export file?

    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl

    Karl Z wrote:
    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl
    InDesign's pasteboard, bleed, and slug areas are independent for each document page. Running header text variables in these areas can capture sources on document pages. If you place a text frame with a character style for the layer name, and a character style for the language name, on a layer, and capture them in a character-style-based running header in the slug, for example, the source from whichever layer is visible will appear in the running header in the slug area. Similarly, you can capture other text variables for page number, filename, date/time, etc.
    It may take a little fussing to set it up the first time, but thereafter when you change layer visibility, the visible layer name changes automatically.
    NOTE: Text frames on master page pasteboards, bleed, or slug areas do not appear on document pages unless they also touch the document page border.
    Above: Master page view
    Above: Page 1 view
    Above: Page 2 view
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • Exported PNG files getting extra characters in name and linked files losing link

    UGH!.. Hope that made sense.
    Okay...I work on a couple hundred graphics for software at a time, usually creating each piece in a layer with the correct naming convention as the layer name.  Then I use the "Save Layers and PNG. Artboard" script for batch export them into the ONG files...all named properly.  This was a Blessing from heaven.
    However, about three months ago, Illustrator starting adding a "dash" mark in place of a space between words.  I can't link this to an update or other change, wish I could.  This is causing a huge problem..as the software these graphics are for REQUIRES the names be perfect...including the spaces (Can't be underscores, nada).  I'm having to go through an manually rename over half the files just to remove this dash mark.
    There is nothing in the original script for this. 
    I have gone through all the settings.  I have adjusted the Output Settings / Saving Files to eliminate every instance AI is asked to add anything but a space.   Although I'm not sure if these Output settings are used when the script runs.  Don't know if it's the script, some other setting buried somewhere.
    Any other thoughts or solutions?  Are there other scripts that do the same job that I might try to see if I get better results?  I attached a link to a download of my current script
    https://dl.dropboxusercontent.com/u/23703370/SaveLayersAsPNGArtboard.jsx
    Second issue isn't script based, but I'll ask anyway.  Regularly, when I open an AI file that has PNGs, JPG, and other graphics in the file, the "links" have been lost and require me to manually re-link each one, or delete the now empty file object and add it back in.  This includes embedded objects.
    The AI file, nor the graphics have been edited, changed, renamed, or any of the files or folders moved.  Nothing that would cause this that I can think of.  ANyone have a thought why this is happening and how I can prevent it?
    OH YEAH...CS5.5   Windows 7       ThankS  !!!

    Also, out of curiousity, you have a Div named header, also a separate header section containing just the logo in it. Any specific reason?
    And is the image on the site supposed to look like this?
    And, a couple of typos such as this one:
    Funding your Eeducation

  • Script for using layer name in Save for Web command

    I am using the Save for Web  command (Illustrator CS2) to export layers to CSS so that each layer is  saved as a different jpg.  The only issue I have is that I want the  layer name to be part of the file name, but layer name is not an option  when I look at the "Edit Output settings" dialog for saving files.  Is  there anyway I can do this? I do not have experience writing or working with scripts.
    For example. My fiel name is flower.ai.  I will have 20  different layers (each containing a different color of the same image)  and want the exported file to be flower-scarlet.jpg,  flower-cranberry,jpg, etc. Right now I am looking at renaming all the  files manually, but as I am creating 40 images per product on my website, this will be very time consuming.
    Thanks in advance
    Christine

    Btw.. to make it work for JPGs, change the PNG options to the following:
    var options = new ExportOptionsJPEG();
            options.antiAliasing = false;
            options.optimization = false;
            options.artBoardClipping = true;
            options.qualitySetting = 100; // value of 0 to 100, 60 is medium, 100 is perfect
            options.blurAmount = 0;
            options.verticalScale = 100;
            options.horizontalScale = 100;

  • How can I copy the layer from one .PSD file to another .PSD file?

    Hi,
    Actually it is shape and mask on one layer which I want to use it on my Photoshop CS4 file. If I select all the layer and copy it to my file it just copies the shape but not the mask. How can I copy MASK to my file?
    Please do hlep.
    Actually I am trying to copy the following layer.

    I believe the fastest way would be to duplicate the layer and send it to the other document. Open both images. Click the document tab of the document with the shape layer. With the shape layer selected in the layers palette, right click where it says the shape layer name. Select "duplicate layer" from the context menu. In the dialog that comes up, select the document you want to copy that layer to in the destination box then press ok.
    Alternately, you can open both images then pull the document frame tabs down to open both images in your workspace. Grab the shape layer in the document's layers palette by left clicking it...keep the left button pressed (hand icon should be a grab icon). While left button is still pressed, drag the shape layer over the receiving document. To make the shape layer register in the same location, press the shift key and keep it pressed. Release left mouse button while the layer is over the receiving document. Release shift key after you have released the left mouse button.
    This tutorial has a good photo reference for what I mean when I say pull the image tabs down so both documents appear in the same workspace...also shows drag/drop:
    http://www.photoshopcstutorials.co.uk/html/cs4_workspace___palette_notes.html

  • Script to change layer name in to Document name.

    Hi I would like to make the active layer name the same as the document name.  I know very little about scripting.  I found this script:
    var idoc = app.activeDocument;
    var ilayer = idoc.activeLayer;
    var filename = idoc.name;
    ilayer.name = filename;
    It does almost what I need it to do. except that it also copies the ".ai" in to the layer name.  Is there some way to modify this script to have it exclude or delete the file extension?
    Thanks for any help.

    Or, if you want to keep the same construction as your example...
    var idoc = app.activeDocument;
    var ilayer = idoc.activeLayer;
    var filename = idoc.name;
    filename = filename.slice (0, filename.lastIndexOf(".")); //just add this line to the construction.
    ilayer.name = filename;
    Gustavo.

  • Setting the layer name from a format plugin with CS2 and before

    Hello,
    I wrote a new format plugin and the name of the layer shown in PS , when I read a file, does not seem to be consistent on all computers for versions CS2 and before :  some times I get "Background" and some times I get "Layer 0" .
    When the layer is named is "Background",  it is locked. If I double click on the layer, I get a panel to rename it and the name suggested is "Layer 0" (and not "Background").
    Somehow, it seems that my plugin is not doing exactly the right thing or there is a setting in PS options (or in the registry) that controls/causes that behavior. My understanding is that we can't name layers from the plugin before version CS3 (setting the layerName field in the FormatRecord makes no difference for CS2 and before).
    I do not care much about the actual layer name as long as that name is consistent for all installations. Does anybody know what is going on?
    Thank you!
    Gilbert

    If it has transparency, it has to be a layer ("Layer0").
    If it doesn't have transparency, it is treated as a background.
    And yes, changing the background to a layer does normally rename it to "layer X".

  • Active Layer Name as Text Variable/Live Caption?

    Hi all,
    I work for a company that uses heavily layered InDesign files to create variable brochures, with the appropriate layers activating for output as pdfs based on user information. Our clients often have difficulty discerning what layer they're looking at when we send them proofs for approval, and I'd like to find a way to have the names of active layer on any given page appear automatically in the slug, as though they are text variables or live captions.
    One rather inelegant solution I've come up with is creating a small uncolored picture to put onto each layer, with the layer name as that picture's file name, and link it for Live Captioning. This is a huge messy timesuck though, and I'd love to see if I can just dedicate a text variable to display the names of active layers on a page prior to output. Any help/info is very much appreciated.
    Thanks!

    Willi—that's a great point. I was simply hoping to avoid the reiterative task of writing it out in the slug so it would change automatically if the layer name was changed, and having to go back through old files to put this info in (each document typically has 150+ layers). If I can't find an automated solution, this is most likely the route I'll be taking.

  • Asterisk on Layer Names

    I recently switched from PC to Mac and notice on the Mac
    version of Flash CS3 there are sometimes asterisks that appear next
    to the layer names. I have never noticed these before so I assume
    it is a Mac thing....anybody know what the asterisks mean??

    Thanks Todd.
    The second link explains how to switch from the Layer Name to the Source
    Name view in the Timeline panel. It doesn't state that when the Layer
    name is the same as the Source name, brackets appear around the name in
    the Layer Name view. But...now that I've switched back and forth between
    the two views, I see that's what's going on.
    I added a comment about this in the Help file.
    =======

  • I can't get rid of layer names from the Ultiboard PCB properties-General layers tab

    A bunch of DXF layer names were erroneously entered into Ultiboard 10.1 a few years ago during a DXF importing operation. I upgraded to 12.0 recently and hoped that the old layers would be eliminated. I have been wanting to get rid of them for a long time. I tried deleting the ub_config file in AppData, but it didn't remove them. Is there anything you can think of to extract them from the program's grasp? Thanks, Tod
    Solved!
    Go to Solution.

    Hi Tod,
    I suspect one of your design file is causing this.  If you go to Options>>PCP Properties>>General Layers, do you see the DXF layers in here?  If you see the layers, can you select it then press the Delete button?
    Tien P.
    National Instruments

  • Save as png- layer name changes

    I'm using PNG save options to generate a PNG from a psd, but when I run the script the final output changes the layer name that was set in the original file to "layer 0". If I comment out the close command, I can see the layer name stays throughout the entire process, but don't know why the save as would cause the layer name to be lost? Any ideas?
              pngOptions = new  PNGSaveOptions();
              pngOptions.interlaced=false;
    myDoc.convertProfile('sRGB IEC61966-2.1', Intent.RELATIVECOLORIMETRIC, true, true );
    myDoc.saveAs((new File(folderString)),pngOptions,true);

    I have a new need with this same project. I have 12 separate .psd files per product (same product but in different color combinations). Each .psd has 144 layers with unique layer names. Once I open one file, I run an action script (recorded within PS) to update all the layers links, and rename the layers with the product sku # with a 3rd party Script. This sku # is the same # that all 12 files need to be updated with. The problem is that when i run this recorded script, I have to manually punch in the sku # for each file even though it is the same for everything because the script brings up a window each time it is called upon. The info doesnt stay in the script. THEN, the recorded scripts saves, then save as and the name of the file just stays the same and saves over itself... which is bad. I need it to save as a new name (1,2,3 or a,b,c would be fine) so I can rename later. Can you help me streamline the production of this project please so I dont have to sit here forever!?!?!
    Thanks a million.
    Kelly

  • ExportPNG based on layer name

    I'm trying to export a png sequence with a command with the following code
    fl.getDocumentDOM().exportPNG("document.pathURI/layer.name.png", true, false);
    as that code shows, I have no idea how to code, I searched the actionscript data base and tried to piece together what I want, to render out a PNG sequence to the FLA location (instead of the last location a png sequence was rendered to) and have the PNG's named after the layer selected. Is this possible? Even when I gave this code a legit location and name, I got an error back saying the maximum size bitmap that can be created is 8000x8000?

    you can't specify the layer or frame in exportPNG().  you can specify whether to use the current frame or all frames.  you've specified all frames.
    the first parameter should be the path/file name of the exported png.
    so, if you wanted to export to png the on-stage elements in frame 6 of your main timeline, you could use:
    var doc = fl.getDocumentDOM();
    var root = doc.getTimeline();
    root.setSelectedFrames(5,5);
    fl.getDocumentDOM().exportPNG("file:///F|/Flash/frame6.png", true, true);  // you need to adjust the path and possibly file name.

Maybe you are looking for

  • Verizon 2.0 UA for Android stops working with Win 7

    Ever since the last software upgrade, my computer gives me an error whenever I attach my phone to it. The problem details: Problem signature:   Problem Event Name:    APPCRASH   Application Name:    SUA.exe   Application Version:    1.0.0.1   Applica

  • BlackBerry Curve 8520 - in need of unlocking code

    I want to unlock my BB Curve 8520, so that I can use it in Europe with a local sims card when visiting family, etc. Anybody any idea how to do that?? I asked ATT, but they told me I had to go to RIM to get this............  RIM says I have to to my c

  • CDM and printing from Client side

    Hi all, Here I have installed RH9 and Tarantella 3.40. and I have 2 network card. First one is eth0 is for LAN and second is for static IP i.e eth1. my application server is win2k and I can access application easily. Now my problem is I want use clie

  • Premiere Elements 4 - shake reduction

    In Cyberlink Power Director Express there is a function to magically steady footage (handy when it was shot by my kids on their first outing with a video camera). I didn't see anything in PE4 but a quick search on this forum brings up a plugin for Pr

  • I already imported favorites when downloaded but I can't find them, any advise?

    I was using internet explorer, chose to download mozilla firefox and it gave me the option to import favorites, passwords, etc. I have mozilla fox now but I can't find my favorites.