Does anyone know how to remove all words of 'copy' of the name line HAVE layers?

I downloaded a script PSD which automatically delete the word "copy" of all layers. Inside of GOT it, I can't do this. Can someone help me? Here's the script jsx PSD file:

----------

///////////////////////////////////////////////////////////////////////////////
Script name: RenameLayers.jsx
Version: 1.0
Date: 27/02/08
"Use: Removes ' copy 1, copy 2, etc." in the name of all the layers
///////////////////////////////////////////////////////////////////////////////

#target photoshop
$.localize = true;
var displayDialogMode = app.displayDialogs;

app.bringToFront ();
app.bringToFront ();
app.displayDialogs = DialogModes.NO;

processObjects (app.documents processDocument, function () {alert ("you have no open documents")})
app.displayDialogs = displayDialogMode;

///////////////////////////////////////////////////////////////////////////////
Function: processObjects
Use: Work theMainFunction on each object in the list theObjects
Entry: The list of objects (documents, layers, etc.), function to run on each object, function to run on parent, if there is no object
Return: value returned by the function used
///////////////////////////////////////////////////////////////////////////////
function processObjects (theObjects, theMainFunction, theAlternateFunction) {}
var returnValue = null;
If (theObjects.length == 0) {}
If (!) () theAlternateFunction == undefined) & &! (theAlternateFunction == null) & &! (theAlternateFunction == "")) {
returnValue = theAlternateFunction (theObjects.parent);
}
} else {}
If (!) () theMainFunction == undefined) & &! (theMainFunction == null) & &! (theMainFunction == "")) {
for (var i = theObjects.length - 1; i > - 1; i--) {}
returnValue = theMainFunction (theObjects [i], i);
}
}
}
return returnValue;
}

///////////////////////////////////////////////////////////////////////////////
Function: processDocument
Use: Treat the layers in the document with the function 'processLayer '.
Entry: Document subject of Document index object
Back: no
///////////////////////////////////////////////////////////////////////////////
function-processDocument (objectRef, i) {}
app.activeDocument = objectRef
processObjects (objectRef.layers, processLayer, null);
}

///////////////////////////////////////////////////////////////////////////////
Function: processLayer
Usage: Delete "copy" of the name of layer (Layer content Set of processes)
Entry: Object layer Layer object index
Back: no
///////////////////////////////////////////////////////////////////////////////
function processLayer (objectRef, i) {}
If (objectRef.typename == 'LayerSet') {}
var layerCount = processObjects (objectRef.layers, processLayer);
}
renameLayer (objectRef)
Returns 0
}

///////////////////////////////////////////////////////////////////////////////
Function: renameLayer
Usage: Delete "copy" of the name of layer (Layer content Set of processes)
Entry: Object layer Layer object index
Back: no
///////////////////////////////////////////////////////////////////////////////
function renameLayer (objectRef) {}
var theRegEx = new RegExp (/ (\s*copy\s*\d*) + $/)

If (theRegEx.test (objectRef.name)) {}
Save the State of the layer (visible or invisible)
var layerVisible = objectRef.visible
var numero_index = 0
numero_index = objectRef.name.indexOf ("copy")
objectRef.name = objectRef.name.substr(0,indexnumber)
objectRef.visible = layerVisible
}
Returns 0
}


----------

Anyone?

I wrote the original code you have several years ago, I did a quick check and if you change the first lines of what follows, it should work:

#target illustrator
$.localize = true;
var displayDialogMode = app.displayDialogs;

app.bringToFront ();
app.bringToFront ();
app.displayDialogs = DialogModes.NO;

processObjects (app.documents processDocument, function () {alert ("you have no open documents")})
app.displayDialogs = displayDialogMode;

The code has been mistake out on the lines that changed the displayDialogMode and who brought the application forward, so I have commented out them. I don't have time now to see that needs to be done to ensure that this work (if they can), but it should work for you.

Tags: Illustrator

Similar Questions

  • I accidentally added a Web site to my toolbar as a quick tab somehow. Does anyone know how to remove it on windows xp?

    I accidentally added a Web site to my toolbar as a quick tab somehow. Does anyone know how to remove it on windows xp?

    You can disable the mosaic preview.
    Open Internet Explorer.
    Go to tools and scroll down to Internet Options.
    On the general tab, go to the Section tabs.
    Click on the settings button.
    Uncheck the 'enable quick tabs '.
    Restart Internet Explorer.

    I hope this helps.

  • There is a transparent color to my file in muse whenever I'm editing the file, does anyone know how to remove it?

    Here is a screenshot. I have tried everything to make it disappear, including changing the fill color of the browser, but it just will not change. It doesn't go away when I saw the online site, however. Does anyone know how to remove this color? Thank you in advance!

    Screen Shot 2014-09-10 at 5.51.58 PM.png

    Hi Jessica,.

    Please go to view > click on 'Hide-collection of grid.

    Kind regards

    Aish

  • Does anyone know how I can buy a version student of the folio of police in Australia?

    Does anyone know how I can buy a version student of the folio of police in Australia? I tried the site and by phone and I am told it isn't available? It will never be available?

    Hi Ragstar Ritches

    Currently, there is no plan to provide Font Folio as a version of the student.

    Thank you

    Bev

  • Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Yes, I assumed that was the case, and I thought that this link addressed to her.  I would have thought it was more a function of your network and the OS than Photoshop.

  • Does anyone know how to filter all the items in an XMLListCollection?

    I have a tree with the following structure.
    <>node
    < Node1 >
    < node2 >
    < node3 / >
    < node4 / >
    < Noeud5 / >
    < / node2 >
    < / node1 >
    < / node >

    I need to be able to filter on node 3, 4 and 5 and then after the filter if they do not exist, get rid of the node 2 level and make then another function to check if the node levels 2 is here and if not filter... then filter node levels 1. Basically it is an ascendant of the filter. Flas 2.0 I would filter base level by removing the knots... then move to the next level and to check if they had children or not... If they did not then I would remove the... and then I would repeat the step for the last level.
    Does anyone know how to do this without having to remove the items from the collection... Basically, perform a filter rather than a deletion. I know that the filter function only returns the first element in the xml structure... which is annoying. If anyone can help me I would appreciate it of course?

    Thank you

    I guess that the filtering on a tree passes only in the lymph nodes of the root... It's very lame on part of Flex. Basically, I had to make my own functions to remove the nodes dynamically.
    Remember that this only works on a dynamic array element.
    Delete list ;

    To make this work, I have a main TreeCollection... and that I made a copy. Treecollection.Copy () and deletions of the struct stuff copied. After that the destructions were I made then assigned the copy to the MyTree.dataprovider = copy.

  • Try to delete junk mail in my account hotmail with windows 8 and after having clicked on delete and it comes right off. Does anyone know how to remove it?

    Try to delete junk e-mail with my account hotmail with windows 8, and after clicking on remove the spam is well again. If I go to my email using the icon on the desktop I am able to remove everything. It is only with the icon of mail on the splash screen that I can't remove. Does anyone know hot to delete?

    Hello

    I'm happy to help you with your concern about the removal of junk e-mail.

    Please clarify your statement "it is only with the icon of mail on the splash screen that I can't remove.

    Are you referring to a Mail or Windows Live Mail application?

    We look forward to your response.

    Thank you

  • Does anyone know how to remove orphaned thumbnails of 13 elements?

    I managed to accumulate a very large number of files image duplicated in my db 13 items. It was not practical to remove in E13, so I removed the externally. This left me with a disconnected for each deleted image file thumbnail. If I understand the program, all the tags and other metadata associated with the image file - not the thumbnail. So, I'm looking for a way to either delete orphaned thumbnails sort of batch processing... or maybe rebuild the catalog and generate all new stamps? (if possible)

    Advice or tips would be appreciated.

    Thank you

    David

    DRC8220 wrote:

    If I understand the program, all the tags and other metadata associated with the image file - not the thumbnail

    David

    The catalogue includes the thumbnail cache, which is associated with each element multimedia as well as other metadata.

    Run the command "reconnect missing files" in the file menu of the Organizer. After the search, you will see a list of missing files. There is a small icon on the top of the dialog box to open a dropdown menu with the options:

    -to select all the missing files

    -to remove all the missing files from the catalog.

    Do both, that will remove these entries from the catalog and thumbnail cache.

    ... or perhaps to rebuild the catalog and generate all new stamps? (if possible)

    Yes, it's another solution:

    Photoshop elements (PSE) knowledge base. : how the miniature correct hourglass (generic) in elements Organizer?

    Same solution as the hourglass issue.

  • Does anyone know how to remove icons of the homegroups and libraries from the desktop?

    tried to find a way to do it without having to go into the registry...

    Windows7 Home Premium
    After hours to be annoyed... I can't find any other way.

    1 Homegroup icon:
    Open my computer, Control Panel, system and security, administrative tools, services, and then scroll down to: earphone homeGroup and homeGroup provider, disable both. Close, close the session. the icon should be gone when you log back.

    2. the icon libraries: carefully... Please, if there is no experience in the registry for assistance.

    go to: start, run, type: regedit, select the HKEY_Local_Machine key, navigate to the bottom of conclusion: Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace
    You will see several hexadecimal strings, select each in turn, and the right pane will show you which icon is selected. My icon library was the first chain and showed two lines on the right side of the page, the first being: usersLibraries and the second being: delete the message.

    When you find the string to the appropriate library, create a new folder in your my documents named: registry back up, then highlight the chain on the left, go up to the upper-left corner of the page of the registry and click on file and then export. Save the registry file in your new folder location. I also recorded the two files on the right side of the page and call them what they were called on the page, so I would like to know what they were. (not sure I had to but he doesn't)

    After you save the registry files, you can then remove the string that you selected on the left which in turn, displays the name userLibraries (on the right side of the page).

    Poof it's finally gone! and always available in your saved folder

    Hope this helps

  • Does anyone know how to remove or bypass a password at startup?

    One of my friends I've forgotten the password he used at the start of his computer. Now, it is impossible to get on his computer. I tried to start in safe mode, but it will not allow him, the password always comes to the top, cant get into the bios either, someone knows what to do?

    Thank you, Laura

    [Moved from comments]

    Hello

    Other that the information you have already given, this information for Vista and XP there is little we can do to help you in these Forums.

    If you have problems with BIOS password, you will need to contact their computer manufacturing using BIOS passwords.

    "What to do if you forget your Windows password"

    http://Windows.Microsoft.com/is-is/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

    "If you forget the administrator password, and you do not have a password reset disk or another administrator account, you will not be able to reset the password. If there is no other user account on the computer, you will not be able to log on Windows and you need to reinstall Windows. »

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • does anyone know how to remove temporary sites off business catalyst

    When I connect to my account everything that appears is my main site (which is the only fully hosted) and when I go to 'My Details' to find my temporary accounts (under the tab drop-down "default site"), he asks me change the default - but I hesitate to do that I don't want to change MY settings from main site and also I do not know if it will give me the option to delete temporary sites.

    Thank you

    PS - Is not it assumes that a number of tech support to call this when even paid subscription?

    Hello

    You can delete your test sites using the partner portal,

    http://www.BusinessCatalyst.com/Admin/index.aspx?to=PartnerPortal

    To see more options, refer to this document

    How to cancel or delete a site

    Let me know if you have any question.

  • I have removed the timeline header somehow in my workspace and am not able to bring it back. Does anyone know how to get it back. I changed the workspace, verified and uncheked window installation but does not help. It's a small thing but highly grind

    error.png

    It should show the seconds (time) also... can not recover please help!

    What version? This happens sometimes, and the easiest way to recover is to close Captivate and restart.

  • Does anyone know how to add a folder with sample data the installer to labview

    I have set up a program to install the application to a project I'm working on that.  I want to add a folder to the installation with some sample data files.  Currently, I added a readme file that tells the user to decompress a file included with the Setup program in a certain folder.  Is there a way to automate the process and include this with the installer?

    First add all the files you want to include in the project. Then in the properties of the installer:

    1 use tab destinations to add a folder if you have the sample files contained in their own folder.

    2. on the file source page, expand "My Computer" and find the files in the project you want to add.

    3. Select the folder you want to that they be located on the right side and click the right arrow.

  • I am unable to connect to itunes store, reset the winsock files, but can't seem to be struck from the register. does anyone know how to solve this problem, so I can run itunes?

    Since I updated my version of itunes that I could not connect to the itunes store and itunes was insensitive. I worked for a month with an Apple Advisor on this problem and put us the winsock files, but they are still some how in the register and refuse to be deleted. does anyone know how to remove these registry files you?

    IM losing my mind unable to update my ipod or iPhone... Help!

    Hello

    1. don't you make changes on the computer before the show?
    2. What is the accurate and complete error message that appears on the computer?

    You can try to follow the suggestion contained in the link and check.
    Unable to connect to the iTunes Store
    http://support.Apple.com/kb/ts1368

    You can also view the application in the community of Apple support for further assistance.
    See the links in the help.
    http://www.Apple.com/support/iTunes/
    https://discussions.Apple.com/community/iTunes/itunes_for_windows?view=discussions
     
  • Does anyone know how to get C & C red alert 2 and Yuri revenge works correctly on windows 7?

    I recently purchased the Acer Aspire 8951 G and tried to install my command and conquer collection on it.  The game installs and start correctly, but when you run the audio works and works very well but the video is not, it does not show the mobile scenes that when something on the screen moves (example: volume control).

    Does anyone know how to get these games working properly, either the download of a driver or a patch or configure the settings?

    Thank you...

    CISD

    Hello

    Follow these steps to install in compatibility mode:

    a. right click on the configuration icon, and then click Properties.

    b. click on the Compatibility tab.

    c. check run this program in compatibility mode for and select Windows Vista.

    d. click OK.

    e. now try to run the Setup file and install the game.

    Check if the problem persists.

    Reference:

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

Maybe you are looking for