Compatible with CS5 ?

Hi, I hope someone can help, the following script doesn't work in CS5 ?
============================================================
// Generated by CoffeeScript 1.7.1
var LayerRenamer, layerRenamer;
LayerRenamer = (function() {
  function LayerRenamer() {
    if (app.activeDocument.selection.length > 0) {
      this.replacements = [prompt("What would you like to replace?", "Eg: source"), prompt("What would you like to replace it with?", "Eg: replacement")];
      this.renameLayers(app.activeDocument.selection);
    } else {
      alert("Select the layers you would like to be renamed.");
  LayerRenamer.prototype.renameLayers = function(layers) {
    var layer, name, _i, _len, _results;
    _results = [];
    for (_i = 0, _len = layers.length; _i < _len; _i++) {
      layer = layers[_i];
      layer = layer.parent;
      name = layer.name;
      _results.push(layer.name = name.replace(this.replacements[0], this.replacements[1]));
    return _results;
  return LayerRenamer;
layerRenamer = new LayerRenamer();

Give this a shot and see if it works for you.
var doc = app.activeDocument, lays = [];
for(var i = 0; i < doc.layers.length; i++){
    lays.push(doc.layers[i].name);
var w = new Window('dialog',"Layer Name Editor");
var list = w.add('group');
list.orientation = "Column";
var head = list.add('group');
head.alignment = "left";
var p = head.add('statictext', undefined, "Prefix");
var n = head.add('statictext', [0,0,165,20], "            Layer Name");
var s = head.add('statictext', undefined, "Suffix");
var  pre = [], nam = [], suf = [];
for(var i = 0; i < lays.length; i++){
    newLine(i,"item" + i);
function newLine(num,item){
    item = list.add('group');
    item.alignment = "left";
    pre[num] = item.add('checkbox', undefined,"");
    nam[num] = item.add('edittext', [0,0,200,20], lays[i]);
    nam[num].characters = 50;
    suf[num] = item.add('checkbox', undefined, "");
var sep1 = list.add("panel");
sep1.alignment = ["fill","fill"];
sep1.minimumSize.height = sep1.maximumSize.height = 2;
var prefixt = list.add('statictext', undefined, "Prefix to add to checked layers");
var prefix = list.add('edittext', [0,0,250,20], "");
var sep2 = list.add("panel");
sep2.alignment = ["fill","fill"];
sep2.minimumSize.height = sep2.maximumSize.height = 2;
var prefixt = list.add('statictext', undefined, "Suffix to add to checked layers");
var suffix = list.add('edittext', [0,0,250,20], "");
var sep3 = list.add("panel");
sep3.alignment = ["fill","fill"];
sep3.minimumSize.height = sep3.maximumSize.height = 2;
var ButtonGroup = w.add("group");
  ButtonGroup.margins = [0,-10,0,-8];
  ButtonGroup.alignment = "right";
  var go = ButtonGroup.add ("button", undefined, "OK");
  var stop = ButtonGroup.add ("button", undefined, "Cancel");
  stop.onClick = function(){
  w.close();
    go.onClick = function(){
        var validatePre = false, validateSuf = false, validateMessage = "";
        for(var i = 0; i < lays.length; i++){
            if(pre[i].value == true && prefix.text == ""){validatePre = true}
            if(suf[i].value == true && suffix.text == ""){validateSuf = true}
        if(validatePre == true){validateMessage = "Layers have been marked for Prefix, but no Prefix entered\n"}
        if(validateSuf == true){validateMessage = validateMessage + "Layers have been marked for Suffix, but no Suffix entered"}
        if(validateMessage != ""){
            alert(validateMessage);
        }else{
            w.close();
            goTime();
w.show();
function goTime(){
    for(var i = 0; i < lays.length; i++){
        var na = nam[i].text;
        var pr = "";
        var su = "";
        if(pre[i].value == true){pr = prefix.text + " - "}
        if(suf[i].value == true){su = " - " + suffix.text}
        doc.layers[i].name = pr + na + su;

Similar Messages

  • CS5.5 documents not compatible with CS5 documents?

    I have read through the other threads and found that documents created in CS5.5 are not backward compatible with CS5.  Unless, of course, you export them manually from 5.5.
    So ... Really?!  Are you kidding me that that a version 5.5 cannot talk to a version 5.x of something?  We bought a site license for the CS5 Master Collection but without the maintenance because we were led to believe that CS6 was a couple years off.  So when 5.5 came along it implied that there were some changes but not significant enough to warrant the CS6 title.
    Okay, now that I have vented I will ask my real question.  Is it expected that with every release of the Master Collection that it means a major change to the product(s) underneath it such that they will not be directly backward compatible?  If this is the case I would recommend that this is better explained when you are offering up the maintenace.  Had I known this I would have purchased it as well instead of being stuck with having to purchase the entire site license again.
    Thanks, Brette

    Hey there PDX buddy,
    I'm guessing from the rest of your username that you're not a professional user of page layout applications, but a sysadmin of some sort. So of course you'd be surprised to discover this:
    Is it expected that with every release of the Master Collection that it means a major change to the product(s) underneath it such that they will not be directly backward compatible?
    That's the case pretty much across the board for page layout applications.  Note that it's not the Master Collection - many of the apps included do have pretty functional cross-version compatibility. Illustrator, in particular, I've found to be pleasingly verbose about possible feature loss when saving back, offering to convert type to outlines when differences between type rendering engines in versions were likely to cause incorrect text display, and so on.
    But backwards compatibility is not a feature of page layout applications in general. It was the case for Pagemaker, it was and is the case for Quark, and it's been that way for InDesign all along. The same is the case with more obscure layout apps. The only exception I can think of is Publisher - and Publisher projects often crash and burn because there's one person who insists on sticking with Office XP or whatever, and when you use new features of Publisher in a file and then open it in an older version, it does not degrade well. I don't think that it even told you that it wasn't going to bother to try to display some of the content that came from a newer version. I even have a vague recollection of a Quark Passport issue where there was a failure of compatibility between 5.0.1 and 5.0.2, or something along those lines - just a bugfix dot release broke compatbility with the previous release.
    I'd argue that, if you need to support designers or other graphics-layout types, that software maintenance for layout applications is more important that buying software maintenance for your operating system & other software infrastructure. Heck, it's arguably equally as important as offsite backups.

  • LR4 raw converter compatible with CS5 extended?

    Hi right now I have LR3 and CS5 extended which is all I need but LR4 seems a real improvement. However CS5 extended was expensive and manages everything I want to do so will the raw converter in LR4 be directly compatible with CS5 or will Adobe insist that I buy CS6 to attain current compatibility?

    exactly. But the plugin for Photoshop is not available as yet. As far as I know that has to await PS CS6.
    Lightroom is a complete stand alone program and while ACR and LR use the same process engine you need Photoshop CSx with the ACR plugin while LR has ACR as a core component.
    Lightroom does not need any other Adobe product installed on you computer for it to be fully functional.

  • Is Dreamweaver CS6 compatible with CS5.5?

    Is Dreamweaver CS6 compatible with CS5.5?

    HTML is HTML, CSS is CSS.  The code will be fine.  If you are using features specific to that verison, the GUI elements will obviously not be visible, but you can still edit in code view.  An example of this is the Fluid Grid Layouts in CS6 that are not present in CS5.5.  The code will be editable and you will be able to see the changes, but the Grid background won't be there visually.

  • Is Camera Raw 8.3 compatible with CS5? [was:≈]

    camera raw 8.3 to cs5????

    CS5 is only compatible with Camera Raw up to version 6.7
    http://helpx.adobe.com/x-productkb/global/camera-raw-compatible-applications.html
    If you need to open Raw files from a camera which is only supported in later versions of Camera Raw then download the free Adobe DNG converter, convert the Raw files to DNGs then open the DNGs in CS5
    http://www.adobe.com/products/photoshop/extend.displayTab2.html

  • Are CS6 layers compatible with CS5?

    We have recently updated to CS6.  When I created layers on a photo in CS6 then went to open it on another computer that still had CS5 the layers would not open.  Are the versions compatible in this way or do all the computers we use need to be updated to CS6?

    When editing a photo I was adding boxes and arrows.  Each box or arrow is a
    layer.  I later went to another computer in the network that had not been
    upgreaded to CS 6 and I could see that the layers that were created were
    there but I could not view the edits that were made.

  • Is Camera Raw 7.1 compatible with CS5? [was: question]

    Is camera raw plugin 7.1 able to be installed in photoshop CS5?

    What John Waller says:
    Download the free, stand alone DNG Converter, version 8.1, install it, launch it, run it by aiming it to the folder containing the raw files you want to convert and it will convert the raw files from any supported camera into raw DNG files which you can then open in your version of Camera Raw, ACR 2.4 or higher.
    There will be no updates for your version of Photoshop or Bridge—ever.

  • Are plug-ins developed for Indesign CS4 compatible with CS5?

    Will a plug-in developed for Indesgn CS4 work in CS5?

    No. CS4 plugin need to be ported to CS5 - basing on InDesign CS5 SDK
    Regards
    Bartek

  • How can I make my CS6 raw images compatible with CS5.5 users?

    After editing 100+ images in bridge I save the files as DNG for the magazines I work for, it's only just come to my attention that for them to alter the exposure/contrast they must convert the image to 5.5 which means losing the adjustments I've already made.  It's time wasting for both of us.
    I tried using the different options under 'compatibility' of saving for camera raw 2.4 and later (4.1, 4.6, 5.4, 6.6) not sure how to use the custom area.
    Does anyone have an idea on this?
    I'd consider using the previous version just on these jobs but I'm not even sure how to do that.

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.

  • Which current Apple Laptop is compatible with CS5 or later?

    Which version of MacBook Pro is best suited for CS??

    It will depend on which specific application you are looking to utilize.  I would recommend inquiring in those specific applications product forum.

  • I need to install new Mac operating system Yosemite. Will Adobe CS5.5 still be compatible with Yosemite or will I have toupgrade all my Adobe products?

    I need to install an upgrade to my mac - Yosemite.  Will my CS5.45 version of Adobe products be compatible with Yosemite or will I need to purchase and install upgrades to all the products?

    Actually, the question is whether MacOS 10.10 is compatible with CS5.5, an existing application. Alas, when you are running MacOS, you pretty agree to an environment in which an OS upgrade may force application upgrades simply because Apple purposely does not maintain compatibility with existing applications. Sad, but true. Nothing that Adobe can do to get around this.
    And more to your original point, Bob Levine is correct. It is not officially supported on MacOS 10.10 and even if you can coerce it to install and run at all, you will definitely have a compromised experience.
                - Dov

  • Is anyone successfully using Digieffects Camera Mapper with CS5

    Hello all,
    I greatly want to use Digieffects Camera Mapper with After Effects CS5 in Windows 7..
    http://digieffects.com/product/camera_mapper
    But it keeps crashing my installation of After Effects.
    I'm using the demo CS5 version downloaded from the DigieEffects website.  Digieffects support says the demo version works the same as the paid version (except for the watermark.).   No problem there -- if I can get the demo version to work then I will buy it.
    Digieffects support says it works fine with their Windows 7 CS5 installation of After Effects.
    I went so far as to completley reinstall windows and reinstall CS5 master collection.  But after all that work I get the same crash.
    We are talking about a clean install of Windows 7 and a clean install of the CS5 master collection with nothing else installed on the computer.
    And I keep getting the crash.
    So my question here, is anyone succesfully using Digieffects Camera Mapper with CS5.  Are there any tips that I should know of.  Please look at my screen captuers of the steps I take which end up in a crash.
    As I said this is a new (just a few hours old) installation of Windows 7 Professional and a new (just a few hours old) installation of CS5 Master Collection.  No other plug-ins or programs installed.
    Thanks
    ...Rowby

    I'm sorry to say I have not heard from Digieffects regarding Windows 7 CS5 compatibility with Camera Mapper.
    It is strange because I've had at least one phone call from them, and then a few weeks ago they said they confirmed there was a problem and their engineer was working on it, and I should expect to receive an update of the plug-in that works with Windows 7 CS5.
    Since then I haven't heard a peep, even though I sent them 2 follow up support requests.
    In my case I was testing a demo, but Digieffects support said the demo was the same as the non-demo version (except for the demo watermark).
    Below is a link to Digieffects' compatibility page which shows that Camera Mapper is compatible with CS5.
    http://www.digieffects.com/support/compatibility
    Their silence on this issue, after their assurances to me that a fix is eminent, is baffling.
    Below is Digieffects support's last communication with me, on October 11.
    >>
    Rowby,
    I think the engineer has this one figured out. Turned  out to be a problem in the plugin- I will send you an updated one at  some point today as soon as I recieve it from the engineer. Thanks for  your patience and help with this one
    digieffects
    <<<
    Rowby

  • Best strategy for using ACR7 in LR4 with CS5?

    Although all my cameras are supported by ACR6, I would like to use the new process 2012 of ACR7.  I would like to try LR4 (giving ACR7) but don't really want the expense of upgrading from CS5 to CS6 since I don't need any of the CS6 new facilities.  But I would like to try the file organisation facilities of LR4 instead of Bridge (as well as having ACR7 of course).
    I read that PSD files exported from LR4/ACR7 are not compatible with CS5.  Is this correct?  If so, is there a way around this, so that I can do final tweaks in CS5 to a 16bit file processed and output by LR4/ACR7?
    Thanks for any advice you can offer.

    As far as I've heard, you should get PS CS6 if you plan to use LR4. Full stop.
    But, I did hear that there is a 'release candidate' version of ACR6.7 you can get from here: http://blogs.adobe.com/lightroomjournal/2012/03/adobe-camera-raw-6-7-and-dng-converter-6-7 -available-on-adobe-labs.html. This wont show up if you try 'Auto Update' for whatever reasons. Hasn't for me, at least!
    There have been no complaints with the compatibility of the ACR6.7 RC with LR4 and PS CS5.

  • In compatible upgrades  CS5 and Camera Raw 7.4

    Hi,
    I have been shooting with my Nikon D 200 and processing my RAw files thru Adobe camera Raw 6.0 and finishing them in CS5.   Just got my Nikon D7100 which is not compatable with Camera Raw 6.0 but is compatible with 7.4  but 7.4 is not compatible with CS5??
    I have light room 4 but like CS 5 much better.  How can I get Abodobe Camera raw 7.4 if I convert from Raw in that can I bring my image back to CS 5??
    What tcan I do to resolve this dilemma
    Thanks!

    You can get Camera Raw 7.4 by upgrading to Photoshop CS6. It's that simple. The last version of Camera Raw for Photoshop CS5 is version 6.7. You could download the DNG converter version 7.4 and create digital negative copies of your NEF files. Those DNG files will have all of the original raw data in them and you will be able to open those files with Photoshop CS5. But if you are using Lightroom, it has all of the same adjustments that are in Camera Raw. Lightroom will create a TIF or PSD file that contains all of your Lightroom adjustments, and send that file to Photoshop. It's what a lot of people do when they don't have current versions of both Photoshop and Lightroom. It's what I will be doing when Photoshop CS7 is finally released and I can't get any more Camera Raw updates.

  • I just purchase a brand new mac computer and I need to purchase new adobe CS software. Do you know if Adobe CS5 Design Premium-MAc is compatible with new mac computers with the updated software?

    I just purchase a brand new mac computer and I need to purchase new adobe CS software for work. Do you know if Adobe CS5 Design Premium-Mac is compatible with new mac computers with the updated Yosemite software? *No previous adobe CS software versions are on this computer

    There are known technical issues with any older version on Yosemite, even CS6. Some can be worked out, others may not be relevant to you, some will remain unsolved.
    Mylenium

Maybe you are looking for