Changing all Layer names to Uppercase

I have been trying to clean up the layers in a document(s) with the following script.  It all works except for the UPPERCASE line.
Does anyone have any ideas?
function standardizeLayerNames()
                var myDoc7=app.activeDocument
                var myLayerCount7 = myDoc7.layers.length
                for(var myCounter7 = 0; myCounter7 < myLayerCount7; myCounter7++){
                        var selectLayer7 = myDoc7.layers[myCounter7]
                        selectLayer7.visible=true
                        selectLayer7.locked=false
                        selectLayer7.name = selectLayer7.name.replace ("-", "_")
                        selectLayer7.name = selectLayer7.name.replace(" ", "_")
                        selectLayer7.name = selectLayer7.name.CaseChangeType.UPPERCASE

function standardizeLayerNames() {
          var myDoc7 = app.activeDocument;
          var myLayerCount7 = myDoc7.layers.length;
          for (var myCounter7 = 0; myCounter7 < myLayerCount7; myCounter7++) {
                    var selectLayer7 = myDoc7.layers[myCounter7];
                    selectLayer7.visible = true;
                    selectLayer7.locked = false;
                    selectLayer7.name = selectLayer7.name.replace(/[- ]/g, "_").toUpperCase();

Similar Messages

  • Change All Field Names in a Table to have a Lowercase First Letter

    I have an SQL database with many tables.  All of the field names in each table start with an Uppercase letter. I would like to programmatically change all of the field names in each table to start with a lowercase letter.  Can this be done?
    E.g.:  "FieldName" to "fieldname"
    Thanks.

    O.K.  Just in case anyone else runs into this, I used Carl's answer to guide me in the right direction. This is my final code that created the commands I needed to run a batch (where TMaster is my schema name and the WHERE statement contains
    the datatypes in your tables):
    SELECT
    'EXEC SP_RENAME ''TMaster.'+TABLE_NAME+'.'+COLUMN_NAME+''',
    '''+LOWER(SUBSTRING(COLUMN_NAME,1,1))+SUBSTRING(COLUMN_NAME,2,255) 
    +''',
    ''COLUMN'''
    FROMINFORMATION_SCHEMA.COLUMNS
    WHEREDATA_TYPE='int'.

  • When I change a clip name it changes all clip names

    In Event Browser or Inspector when I try and name a clip, or enter notes, the change I make appears in all clips as if all are linked.
    Thanks, Nick

    Naming is a minor part of the metadata, and probably the least useful.
    Use notes or named favorites
    Keyword notes might be a little better if you need the data to carry into the timeline

  • How to change all class name on my java program?

    I want to change class name like this. This class name changes into a, b, c, d, e,.....
    MyClass m = new MyClass(); ------> a m = new a();
    MyClass2 m2 = new MyClass2(); ------> b m2 = new b();
    before I saw this code.
    I think it is can be using tool or program.
    anybody know?
    thanks in advance.

    Google for Java obfuscator

  • 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

  • How to change layer name with Wacom pen?

    Anyone have any good tips on this?
    50% of time I do this the style menu come up instead.
    With mouse, no problem, with Wacom pen, this happens.
    I don't see a right click option to change a layer name, maybe I don't see it? That would help a lot. thanks!

    kevin4545 wrote:
    Trevor,
    driver 6.1.5-2 Intuos 3.
    This has plagued me since on got on board with Wacom 5 years ago. No problem with mouse, just with Wacom.  Is there a new driver for this?
    I am using an Intuos 4 with driver 6.2.0w5
    Kevin was it you I was discussing drivers with a few weeks ago?  No, I have found the thread:
    http://forums.adobe.com/message/4186232#4186232

  • Why do my layer names disappear on save......

    Hi All
    I am saving an ai file in illustrator 8 format from CS4, I change a layer name and save then close. When I open the file again, the layer name is not preserved. I have looked through the forums and docs but there is nothing about this , is there a little known setting. I know about the 'remember layer names on paste' and I have it enabled but still no good.
    Also the shortcuts for the layer panel do not work (default keys), for example the alt+eyeIcon should hide all but the layer clicked on as the alt+lock should lock all but the layer clicked on, but it is not happening ?
    Any help appreciated. Thanks.
    Dean

    I am saving an ai file in illustrator 8 format from CS4, I change a layer name and save then close. When I open the file again, the layer name is not preserved.
    How do you name them? What is your system? AI 88 files use the old ASCII/ DOS charset, which limits the selection of characters, as well as was the length of the layer names limited back then. Also, if your system is set to a language dependent on specific Unicode features, the names may not be typed in with the correct characters in the first place due to Unicode vs. ASCII...
    Mylenium

  • Is it possible to preserve the layer name when I copy and paste from Illustrator into Photoshop?

    Is it possible to preserve the layer name when I copy and paste from Illustrator into Photoshop?
    At the moment it just appears as "Vector Smart Object" in Photoshop and I have to take another step and change the layer name.
    Thank you!

    Not that I know. PS doesn't care for these kinds of things and uses its own naming system.
    Mylenium

  • OMB+ : Retrieving all map names ?

    Hi,
    Is it possible to retrieve all mapping name through OMB+, I'd like to change all SMTP name and port.
    I'm able to change all email activities for one mapping, but not for all mappings at the same time.
    Thanks
    Gaétan

    Hi
    Yes it is possible to retrieve all the mappings. I wrote a TCL to do exactly what you have want to do. The script is pasted below.
    This script basically accepts 3 parameters - SMTP server /From Address / To Address. - - feel free to change to suit your requirements.
    proc owb_alter_pf_email_actv {PROJ SMTP FROM TO } {
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # CONNECTING TO THE DESIGN REPOSITORY
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         puts "Connecting to the OWBREPO Design Repository as $userval and password $passval"
         OMBCONNECT $userval/$passval@$hostval:$portval:$srvcval
         OMBCC '$PROJ'
         set projcon [OMBDCC]
         puts "current project context is                $projcon"
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # CHANGING THE CONTEXT TO PROCESS FLOW MODULES
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    set pfmodList [ OMBLIST PROCESS_FLOW_MODULES 'MOD_EDW_.*' ]
    set i 1
    foreach pfmodName $pfmodList {
         OMBCC '$pfmodName'
         set curcon [ OMBDCC ]
         puts "Current PF Mod context is $curcon"
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # CHANGING THE CONTEXT TO PROCESS FLOW PACKAGES
    # AND NAVIGATING THROUGH PROCESS_FLOWS ENDING WITH '*SYSTEM'
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         set pkgList [ OMBLIST PROCESS_FLOW_PACKAGES '.*_SYS.*' ]
         set j 1
         foreach pkgName $pkgList {
              OMBCC '$pkgName'
              set curcon [ OMBDCC ]
              puts "Current PF MOD PKG context is      $curcon"
              set pfList [ OMBLIST PROCESS_FLOWS ]
              puts "ETL Process Flow     Activity Name     Parameter     Old Value     NewValue"
                   foreach pfName $pfList {
                        set actvList [ OMBRETRIEVE PROCESS_FLOW '$pfName' GET EMAIL ACTIVITIES ]
                        set l 1
                        foreach actvName $actvList {
                             set actparList [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' GET PARAMETERS ]
                             set m 1
                             #set parVal 0
                             foreach actparName $actparList {
                                  set n 1
                                  switch -- $actparName {
                                  "SMTP_SERVER" {
                                       set actparVal [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' PARAMETER  '$actparName' GET PROPERTIES (VALUE)]
                                  OMBALTER PROCESS_FLOW '$pfName' MODIFY ACTIVITY '$actvName' MODIFY PARAMETER '$actparName' SET PROPERTIES (VALUE) VALUES ('$SMTP')
                                  OMBCOMMIT
                                       set parVal [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' PARAMETER  '$actparName' GET PROPERTIES (VALUE) ]
                                  puts "$pfName     $actvName     $actparName      $actparVal     $parVal "}
                                  "FROM_ADDRESS" {
                                       set actparVal [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' PARAMETER  '$actparName' GET PROPERTIES (VALUE)]
                                       OMBALTER PROCESS_FLOW '$pfName' MODIFY ACTIVITY '$actvName' MODIFY PARAMETER '$actparName' SET PROPERTIES (VALUE) VALUES ('$FROM')
                                       OMBCOMMIT
                                  set parVal [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' PARAMETER '$actparName'  GET PROPERTIES (VALUE)]
                                  puts "$pfName     $actvName     $actparName      $actparVal     $parVal "}
                                  "TO_ADDRESS" {
                                       set actparVal [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' PARAMETER  '$actparName' GET PROPERTIES (VALUE)]
                                       OMBALTER PROCESS_FLOW '$pfName' MODIFY ACTIVITY '$actvName' MODIFY PARAMETER '$actparName' SET PROPERTIES (VALUE) VALUES ('$TO')
                                       OMBCOMMIT
                                       set parVal [ OMBRETRIEVE PROCESS_FLOW '$pfName' ACTIVITY '$actvName' PARAMETER '$actparName'  GET PROPERTIES (VALUE) ]
                                  puts "$pfName     $actvName     $actparName      $actparVal     $parVal "}
                                  #end switch
                                  incr n
                             incr m
                        incr l
         incr j
    OMBCC '../..'
    incr i
    #OMBCC '..'
    # end of proc
    OMBCOMMIT
    OMBDISC
    Good Luck!
    Mahesh

  • Changes to machine name

    How do I change the name of my iMac? I want to rename the machine and the home file.

    Renaming the Mac is easiest done by re-installing if you want to change all the names.
    You can change the long name on the Home account in System Preferences > accounts.
    Likewise the Computer Name in Sys Pref > Sharing.
    Changing the short name on the Home folder is a much more difficult job. Do it wrong and you won't be able to access any of your data.
    As it involves logging in as Root User, there is also potential for mayhem if you touch anything other than advised in the instructions.
    With that caveat, here's the procedure;
    How to enable the root user
    Mac OS X v10.6 and later
        1.    From the Apple menu choose System Preferences....
        2.    From the View menu choose Accounts.
        3.    Click on the lock and authenticate with an administrator account.
        4.    Click Login Options....
        5.    Click the "Edit..." or "Join..." button at the bottom right.
        6.    Click the "Open Directory Utility..." button.
        7.    Click the lock in the Directory Utility window.
        8.    Enter an administrator account name and password, then click OK.
        9.    Choose Enable Root User from the Edit menu.
        10.    Enter the root password you wish to use in both the Password and Verify fields, then click OK.
    Change short name;
    2.
    Log in as root.
    3.
    Navigate to the /Users folder.
    4.
    Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be all lowercase, with no spaces, and only contain letters.
    5.
    Use the Accounts pane in System Preferences to create a new user with the short name that you used in the previous step.
    6.
    Click OK when "A folder in the Users folder already has the name 'short name'. Would you like to use that folder as the Home folder for this user account?". Note: This will correct the ownership of all files in the Home folder, and avoid permissions issues with the contents.
    7.
    Choose Log Out from the Apple menu.
    8.
    Log in as the newly created user. You should be able to access all of your original files (on the desktop, in Documents, and in the other folders of this Home).
    9.
    After verifying that your data is as expected, you can delete the original user account via the Accounts pane of System Preferences.
    10.
    Disable the root user.
    How to disable the root user
    Mac OS X v10.6 and later
        1.    From the Apple menu choose System Preferences....
        2.    From the View menu choose Accounts.
        3.    Click on the lock and authenticate with an administrator account.
        4.    Click Login Options....
        5.    Click the "Edit..." or "Join..." button at the bottom right
        6.    Click the "Open Directory Utility..." button.
        7.    Click the lock in the Directory Utility window.
        8.    Enter an administrator account name and password, then click OK.
        9.    Choose Disable Root User from the Edit menu.
    Message was edited by: noondaywitch

  • If I change a file name, how can I get all the links to update?

    I've recently finished my webpage
    (kensingtonconcertseries.com),.....then my client wanted to change
    the name of one of his pages from 'Marold Duo' to
    'Rodewald-Morebello Duo.' All of my links to that page are to the
    original page(MaroldDuo.html). Arrrhhhhh!!! Is there anyway I can
    change the name of the page and have all the links within the
    website update automatically?
    I figured out my problem...make a copy and rename it and put
    it on the server. Simple....eventually, I'll have to get rid of the
    original file, but for now works well.

    On Sun, 3 Feb 2008 22:55:19 +0000 (UTC), "kai1111"
    <[email protected]> wrote:
    >I've recently finished my webpage
    (kensingtonconcertseries.com),.....then my
    >client wanted to change the name of one of his pages from
    'Marold Duo' to
    >'Rodewald-Morebello Duo.' All of my links to that page
    are to the original
    >page(MaroldDuo.html). Arrrhhhhh!!! Is there anyway I can
    change the name of
    >the page and have all the links within the website update
    automatically?
    If you change a file name within Dw's File manager - it will
    offer to
    update all pages linked to it, accept that invitation
    ~Malcolm N....
    ~

  • Can I change what layer is used to name a Smart Object?

    I really love smart objects, and in particular I appreciate being able to combine a layer and its adjustment layers into a single smart object. However, when I create smart objects from multiple layers this way, I end up with names like "Hue/Saturation 31" and "Curves 16". Is there a way to set Photoshop to name the smart objects based on the primary layer, so I don't lose the layer names that actually indicate what's in the smart object?
    For example, I do a lot of editing and combining groups of "selfies" that people send me. Once I extract them from their backgrounds, I bring them into a single file, with each "selfie" named with the name of the person pictured. So, for example, I'd have a Jane Doe layer, a John Smith layer, etc. Then I add adjustment layers to each one, to match their exposure and color as much as possible. Then, if any of the adjustment layers are not applied evenly to the entire smart object, I combine the smart object and its adjustment layers into a new smart object, so I can move and scale it easily without messing up the alignment of the combined layers. However, then I have to go back to the original files to know who is who.
    Smart objects work much better than linked layers, but all the extra steps necessary to re-name them are driving me nuts. Does anyone have a solution?
    Paula

    When I know i'll be transforming or adding additional filters, I prefer to go directly to creating smart objects rather than grouping them first, since the relevant layers are automatically "grouped" by being pulled into the smart object. My thought is that the default name for a smart object (or a group, for that matter) should be the lowest layer on the selected stack that has a non-default name, since in most cases that's the one you'd want to use for the new smart object. I don't know exactly how Photoshop recognizes layer names, but since it knows what number to assign to new layers or individual types of adjustment layers, it should also be able to recognize when a layer name is not a default name.

  • How do I do a mass change of face names in iphoto?  For example, I have 500 pictures named Michelle Smith, but she is married and is now Michelle Johnson.  How do I change all the photo face names to the new name en masse?

    How do I do a mass change of face names in iphoto?  For example, I have 500 pictures named Michelle Smith, but she is married and is now Michelle Johnson.  How do I change all the photo face names to the new name en masse?

    You edit the name in the Corkboard view.

  • Impact on roaming profile accounts if we Change User logon Name to Employee Number format in Active Directory for all User accounts

    I want to understand if we change User logon Name to Employee Number format in Active Directory for all User accounts, then what would be the impact on existing profile. Whether we need to change it manualy or it will connect to same profiles in terminal
    session.
    As i observed it create new profile after logon name changed to employee number where existing users profile settings get fails to load and prompt for new settings (such as outlook reconfiguration, share drive mapping etc.).
    Kindly let me know the proper process to overcome with this, how to connect same existing roaming profile with employee number format change.

    Hi,
    What if we change the user name of user account, will it have impact on roaming profiles.
    Yes, it will affect roaming profiles. Please rename the roaming profile folder as the new user account name, in addition, change the profile path in ADUC.
    Here is an related article below for you:
    How to Rename a Windows 7 User Account and Related Profile Folder
    http://social.technet.microsoft.com/wiki/contents/articles/19834.how-to-rename-a-windows-7-user-account-and-related-profile-folder.aspx
    Best Regards,
    Amy

  • Host name is changing all the time

    Hi
    The host name of my Mac is changing all the time
    I recently  bought a new camera and connected it
    this may be the problem?
    What should I do?

    There are several possible causes for this problem.
    1. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    2. A Mac wakes from sleep due to network traffic. This is due to a bug in OS X that may only affect some models.
    3. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    4. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    5. See also this support article.
    Rename the computer in the Sharing preference pane.

Maybe you are looking for

  • Viewing SQL Server data(NTEXT column) to Oracle

    Hi, I m trying to connect Oracle 12c to MS SQL (Gateway) HTRAPORU column is NTEXT type on MS SQL    SELECT T.HTRAPORUTEXT, T.HTRAPORU,             T.DURUMID, T.LABOZELNOT, T.SGTARIHSAAT, T.LABKABULTARIHI, T.CALISMABASLAMATARIHI,             T.CALISMA

  • Changing title of invited event

    It is natural for people who use iCal to invite me to a personal meeting to give the event my name as a title. Likewise, it is natural for me to make the title of the event their name. Unfortunately, as the invitee, iCal does not appear to let me cha

  • Bugs or not?

    I just got my first iPhone 4 and I'm in love with it However, there are two things I was wondering if anyone else was having the same thing happening? 1) How far down does the "ringer" go? Mine leaves one bar left, but there have been times when all

  • How to use EJB 3.0 in Visual Pack Web ?

    Hello everybody ! is there someone who can explain me how to bind a TABLE component visually with a particular business method of an EJB.3.0 (in Netbeens 5.5 / Visual Web Pack) -Is there a way to do the same thing as we can do it in Sun Java Studio C

  • Duplicate tracks

    duplicate tracksK Hello all, I have a 6g Zen. Sometimes, at random,?I will be looking at a track listing for an album and the tracks will have two of each. For example: 3 songs on the album, 26 tracks shown, 26 tracks played. Iit seems to me that if