How do I batch-rename objects/paths (not just layers)?

Question from a complete n00b:
I need to rename a large number of selected objects/paths. This is because I want to use another script that only works when my objects have the default name, "<Path>". So really, I just need to remove existing names of objects.
This other script is here:
http://kelsocartography.com/blog/?p=325
Of course, I could manually remove names by double-clicking on objects in the layers palette and deleting the name, but that's no fun.
I've found some great scripts for renaming layers, but nothing for non-layer objects.
First, I'm trying to remove names from ALL objects in the document.  once that's working, I want to only remove names of selected objects.
Here's my very simple non-working javascript - (the whole thing):
app.activeDocument.pageItem.name = "";
my test Ai file is also really basic: a few rectangles, some of which have been named in the layers palette.
When I run this, I get:
Error 21: undefined is not and object.
Line: 1
->     app.activeDocument.pageItem.name = "";
I've tried a number of other approaches, and either get "undefined is not an object" or nothing happens. 
pageItem has "name" as a writable property, so I think it's what to use, but I really don't know what I'm doing - help!
I'd also happy to use actions, but I'm stuck on that too.

Thanks!!
Here's my final script:
////START SCRIPT////
//how to use: select objects that you want to rename, then run script
//note - new name may not display until you unselect objects
var docRef = activeDocument;
for (var i=0; i < docRef.pageItems.length; i++)
       if (docRef.pageItems[i].selected == true)
               docRef.pageItems[i].name = "";
////END SCRIPT////
currently, it renames with no text.  In other words, it removes existing names.
One thing that was messing me up was that new names are not immediately displayed - you have to unselect your selected objects before names in the layers palette refresh.

Similar Messages

  • How do I uninstall an app entirely, not just deleting it from the Launchpad?

    How do I uninstall an app entirely, not just deleting it from the Launchpad? I've delete the app at the Launchpad, but the remaining files of it are taking up space in my macbook. How do I do that?

    As Cunnla says, the best way to remove an application and all auxiliary files associated with it is to use a developer supplied uninstaller or, lacking that, directions on uninstalling from the developer. Unfortunately, there are a number of applications which have no developer uninstaller nor instructions.
    Some won't recommend it, but I use AppDelete for those apps with no instructions. It gets rid of most auxiliary files and I've never had a problem with it. I just make certain that the auxiliary files that AppDelete selects are, in fact, associated with the application.
    My 2¢...
    Clinton
    MacBook Pro (15” Late 2011), OS X 10.??, 16GB Crucial RAM, 960GB M500 Crucial SSD, 27” Apple Thunderbolt Display

  • How do you add full folders and not just individual files in the new itunes?

    How do you add full folders and not just individual files in new itunes? i just reformatted my HD and went to add all my music and it's only letting me add files not folders!?!?

    "Add Folder to Library" is still in the file menu, but you might need to bring up the menu bar to see the file menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:

  • I've used iMessage for abit now and latly my step dad has got an ipad that is now joint to the same computer and on his ipad is my number and the email for imessage and i want to no how to get it of fully and not just untick it?

    I've used iMessage for abit now and latly my step dad has got an ipad that is now joint to the same computer and on his ipad is my number and the email for imessage and i want to no how to get it of fully and not just untick it?

    Hi barryfromwarrington,
    Welcome to the Support Communities!  There are two things I can think of to keep your Stepdad's information separate from yours on the computer and the iPad.   On the computer, he should have his own administrative account, and on the iPad he needs his own Apple ID for iTunes and iCloud services.  Here is some basic information to get started.  I don't know if you have a Mac or Windows computer, so I'll include info for both.)
    OS X Yosemite: Set up users on your Mac
    http://support.apple.com/kb/PH18891
    OS X Yosemite: Set up users on your Mac
    If your Mac has multiple users, you should set up an account for each person so he or she can personalize settings and options without affecting other users. 
    Add a user
    Choose Apple menu > System Preferences, then click Users & Groups.
    Click the lock icon  to unlock it, then enter an administrator name and password. 
    Click Add  below the list of users. 
    Click the New Account pop-up menu, then choose a type of user.
    administrator: An administrator can add and manage other users, install apps, and change settings. 
    Enter a full name for the new user. An account name is generated automatically. To use a different account name, enter it now—you can’t change it later. 
    Enter a password for the user, then enter it again to verify. Using a password hint is recommended to help the user remember his or her password. 
    Click Create User.
    For an administrator, select “Allow user to administer this computer.”
    Last Modified: Nov 18, 2014
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues - Apple Support
    http://support.apple.com/en-us/HT203206
    Follow the steps below to create a new user account in Windows Vista or Windows 7:
    Choose Start > Control Panel.
    Open "Add or remove user accounts." (If you're using the Classic view in Windows Vista, open "User Accounts," and then open "Manage another account.")
    Select "Create a new account" and follow the instructions to set up the account.
    Once you create the new account, choose Start > Log Off.
    Log in to the new user account.
    Open iTunes and see if the issue you're experiencing persists in this new user account.
    Frequently asked questions about Apple ID - Apple Support
    http://support.apple.com/en-us/HT204161
    iCloud: Set up iCloud
    http://support.apple.com/kb/PH2609
    Cheers,
    - Judy

  • How can I Batch Rename Files in Aperture?

    Yesterday I imported some new photos and accidentally used the settings from my last import which named my images in a way that needs to be changed. I have already rated and edited many of the images so I don't want to reimport them from my memory cards.
    Is there a way to batch rename the images - preferably to the original file name from the camera? If not a custom name would be fine.

    Metadata->Batch Change

  • How can one put ACLs on "content" not just objects....?

    All,
    The security realms available in Weblogic Server only allows one to put
    ACL control on an "object" and not anything about putting security on the
    "content" that moves through that object or is accessible by that object. I
    wonder how people are designing around this "restriction".
    For example, I would like to be able to have a policy based system that says
    that, even though client A and Client B both can "execute" a servlet XYZ
    that sends a form, I would like to only allow client A to modify the
    contents and Client B to modify and send updates.
    Does anyone have any suggestions or know of any tools for doing this
    "declaratively" so it does not have to be hand coded in the servlet / EJB
    etc. Ideally one using some emerging standard like XACL?
    TIA
    Bart Jenkins,CTO
    Globeflow SA

    Hello,
    Other than doing something similar, I believe weblogic pushes a productcalled
    entegrity that provides fine grained security for weblogic....The product is called AssureAccess and the company is called Entegrity
    Solutions. AssureAccess achieves fine-grained, policy-based access control
    for EJBs, JSPs, Corba objects, and other web resources.
    For example, I would like to be able to have a policy based system that
    says
    that, even though client A and Client B both can "execute" a servlet
    XYZ
    that sends a form, I would like to only allow client A to modify the
    contents and Client B to modify and send updates.You can do precisely that using AssureAccess. Let me know if you'd like
    additional details.
    Thanks,
    Randeep
    "mark lesk" <[email protected]> wrote in message
    news:[email protected]...
    >
    We have implemented a fine grained security scheme that we coupled withStruts.
    We define our fine grained permissions in the Struts configuration file onan
    action by action basis and then also in our jsp pages to restrict thecontent
    returned to the user. Out Struts controller servlet is responsible forenforcing
    those permissions by checking with a permission cache that is populatedfrom a
    database.
    Other than doing something similar, I believe weblogic pushes a productcalled
    entegrity that provides fine grained security for weblogic....
    "Bart Jenkins" <[email protected]> wrote:
    All,
    The security realms available in Weblogic Server only allows one to
    put
    ACL control on an "object" and not anything about putting security on
    the
    "content" that moves through that object or is accessible by that object.
    I
    wonder how people are designing around this "restriction".
    For example, I would like to be able to have a policy based system that
    says
    that, even though client A and Client B both can "execute" a servlet
    XYZ
    that sends a form, I would like to only allow client A to modify the
    contents and Client B to modify and send updates.
    Does anyone have any suggestions or know of any tools for doing this
    "declaratively" so it does not have to be hand coded in the servlet /
    EJB
    etc. Ideally one using some emerging standard like XACL?
    TIA
    Bart Jenkins,CTO
    Globeflow SA

  • Why does batch rename Original Case not work properly?

    The Batch rename funtion for >Current Filename >Name >Original Case does not work.
    Why?

    For some reason it doesn't do a thing. Unless my inderstanding of its function is not correct.
    It doesn't a thing by design, when having selected 'current filename' / Name / and 'Original Case' it does what it says, it leaves everything original as is in the existing filename. You can also choose to use uppercase and lowercase to either change all characters of the existing file name to uppercase or lowercase.
    I can imagine you have been mislead by the fact the write UPPERCASE and lowercase to show as an example and used two capitals in 'Original Case'. Sadly enough the use of capitals in common throughout Bridge is not very consistent and sometimes even very strange to put it mildly…

  • How do you truly distort (I mean not just scale, rotate or skew) a movieclip!

    How do you truly (I mean not just scale, rotate or skew) a movieclip! You can do it to an object but not a movieClip!
    Why have adobe never included this in the features of new versions? Why do they persist in improving the back end coding of Flash but offer very limited graphic improvements. We've upgraded to CS4 and I hoped that free-transform for movieclips would be included, but no!
    Anybody know if they'll ever do it!

    Hi there,
    We do have this enhancement request on file, so I will send it in again for review. I agree it would be handy (I am assuming you would like to animate those transformations?)
    Please let us know of your most common uses for this feature so I can add it to what we have on file.
    Thanks,
    Jen.

  • Itunes no longer has my music in my music library. How do I transfer ALL my music (not just the purchased from Itunes) from my Ipod Touch back to my Itunes library on my computer.

    ITunes no longer has any of my music in my music library. How do I transfer all of my music ( not just the purchased music from ITunes) from my IPod Touch to Itunes library on my computer for syncing to other devices.

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • How to turn off all cellular service (not just data) without airplane mode?

    Hi,
    I work in a lab where cell service is minimal.  In iOS8, can we turn off all cellular service (not just cellular data) without using airplane mode?  It would also be helpful to be able to keep GPS on with all cell service turned off when hiking.
    Thanks,
    Matt

    matt100psi wrote:
    Hi,
    I work in a lab where cell service is minimal.  In iOS8, can we turn off all cellular service (not just cellular data) without using airplane mode?  It would also be helpful to be able to keep GPS on with all cell service turned off when hiking.
    Thanks,
    Matt
    Unfortunately, no. To turn off cellular service, requires the device to be put into Airplane Mode, which also turns off the GPS receiver.

  • I'm exhausted of trying to find a solution to a problem created by Apple. I have moved to iCloud, following your instructions and now I can not use my mobileme e-mail address. How can I contact directly with Apple, not just an automatic reply phone number

    I'm exhausted of trying to find a solution to a problem created by Apple. I have moved to icloud following all your instructions and now I can not use my mobile me e-mail address. I can not activate icloud because when I put my e-mail address it answers that somebody is already using my address. I have my old e-mails, but I can not receive any e-mail or send them.
    I have contacted Apple Technical Support in Spain and I was sent an e-mail saying that I have to call a phone number and when I call it is always an answering machine who answers that says that I have to pay 50€ for a consultation or wait for 10 minutes. When I have made the consultation it was never mentioned that I have to pay 50€ for a phone consultation. If I don't want to wait I have to pay for the Apple Tecnical Support which cost 250 €, this was not mentioned in the technical support page.
    Can somebody let me know how can I contact Apple in another way in order to talk with a human being or chat directly? I was very happy just using my mobileme e-mails, I didn't need any clouds and I was force by Apple to registered if I want to continue using my mobileme e-mail address.

    Sandra,
    See this Apple support document for information on reporting an issue with your iTunes purchase.
    http://support.apple.com/kb/HT1933
    B-rock

  • HT4527 My old mac book was backed up to a Time Machine drive.  That Macbook is dead.  I have a new Mac Mini.  How do I get the iTunes library (not just the music files but all other data...playlists, ratings, etc) on the new Mac from my Time Machine?

    My old Mac died. I had it backed up to a Time Machine external drive (fortunately).  I have a new Mac. I want to get my entire iTunes library from the Time Machine drive to the new Mac. I want not only the music files but all the "library" metadata, playlists, song rankings, unique genre designations. How do I do this?

    No backup is a huge mistake.
    You can redownload some itunes purchases in some countries:
    Downloading past purchases from the App Store ... - Apple - Support

  • How MOVE TV shows to Apple TV, not just SYNC?

    I have some TV shows on my MacBook Pro that I want to MOVE to my Apple TV (to free up space and because I don't ever really watch TV on my computer).
    How can I do this, please?
    Thanks.

    rcook349 wrote:
    I have some TV shows on my MacBook Pro that I want to MOVE to my Apple TV (to free up space ...)
    not a good idea. see this user tip.
    instead, get an external HD and let iTunes move the files to it. courtesy of *Chris CA* come these instructions:
    +Point iTunes prefs -Advanced - iTunes media folder location to the NAS.+
    +Don't uncheck anything or delete anything from iTunes.+
    +In iTunes, select all the files you want to copy to the NAS.+
    +Then right click - Consolidate selected files.+
    +This copies the selected items to the location on the NAS.+
    +You can then delete these from the iTunes media folder (\Music\iTunes\iTunes media\Movies)+
    JGG

  • Composite image/graphic: how to make whole thing smaller (and not just one piece at a time)?

    Hi there,
    I have a graphic that I've made out of three or four bits and pieces.  I'd now like to make the whole thing smaller.
    If I go for the round 'target' in the middle, I can make that section smaller, but each of the other sections stays large and it becomes a dog's breakfast.
    Is there a way to make the whole (nicely-composed) thing smaller, all at once?
    Thanks,
    Malcolm

    Aha.  Select the parts and then choose Scale from the Object/Transform menu.  Wonderful
    Thanks so much!
    Malcolm

  • How do I reload _all_ tabs? Not just the current tab.

    While reading a blog, I'll open all the interesting conversations. If I'm away from the computer for a few hours, I want to refresh all the tabs with one click - not page by page by page. Thanks.

    This can be done by right-clicking on a tab and selecting "Reload All Tabs"

Maybe you are looking for