Looking for a script to automate renaming layer objects, not the layer itself!

Hey there everyone,
I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
Thanks in advance
Ralf

Here is a more descriptive version of the script above... :)
# Change "PSDrive" to PS1: (Sitecode)
CD PS1:
# Get all CMPackages to $CMPackages_All Variable
$CMPackages_All = Get-CMPackage
# Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
$DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
# Set folder to store *.pkgx files
$FilePath = "E:\_ESD\Prestage\" # FilePath
# For all CMPackages
foreach ($obj in $CMPackages_All) {
    $packageType = $obj.PackageType
    $packageID = $obj.PackageID
    $packageVendor = $obj.Manufacturer
    $packageName = $obj.Name
    $packageVersion = $obj.Version
    # Formulate File name based on Vendor Name, version and PackageID
 $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
    # Replace space with underscore
    $FileName = $FileName.Replace(" ","_")
    if ($PackageType -eq 0) {
        if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
            Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
            Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
YPae

Similar Messages

  • JS CS4: Create variable for current layer then select the layer at the end of a script

    I'm coming up blank with the verbiage and spinning my wheels with the OMV and script guide.
    var myOriginalLayer = app.activeDocument.layers.item(0);
    alert(myOriginalLayer)
    returns "object layer" and not the layer's name.
    var myOriginalLayer = app.activeDocument.layers.lastItem().name;
    Does return the layer name I want but not by selection.
    I'm challenged on how to select the layer.

    Hi John,
    The difference lies in that the [Object Layer] is the actual object, and the 'name' is just a property -- just like its color.
    You can use one of these two approaches:
    var myOriginalLayer = app.activeDocument.layers.item(0);
    alert(myOriginalLayer.name);
    will hold the original layer object, and you can see the name if required :-)
    To re-select the layer, use
    app.activeDocument.activeLayer = myOriginalLayer;
    Alternatively, selecting by name goes like
    var myOriginalLayerNAME = app.activeDocument.layers.lastItem().name;
    app.activeDocument.activeLayer = app.activeDocument.layers.item(myOriginalLayerNAME);
    I also noticed the following:
    app.activeDocument.layers.item(0) points to the first layer of your document; not the 'active' one. Similarly, app.activeDocument.layers.lastItem() just points to the very last one. I'm not sure if the order of the activeDocument.layers array mimicks the order as shown in the Labels palette, but I would hope it does :-)
    To get/set the active layer, use app.activeDocument.activeLayer as shown above.

  • Looking for a script that get images' urls from a website

    Hi,
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?

    La_Salamandra wrote:
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?
    You have to improve your design. Even if you can find the Coldfusion code, your design will still fall short in 2 ways.
    First, it is unreliable, because you're depending on some arbitrary site to be available and up to speed. Secondly, it is aesthetically wrong to be collecting pictures, especially large numbers of them, dynamically from someone else's site.  Think of their copyright and bandwidth.
    Fortunately, there are simple solutions. First, identify, by eye, the web pages containing the pictures you're interested in. Ask for permission from the owner.
    You could indeed use Coldfusion's cfhttp or any other script to download the JPGs, PNGs, and so on. But then, why waste your time re-inventing the wheel? It is infinitely better to use a web crawler !
    With most crawlers, you only have to supply the URL of the site, and the file extensions it has to grab (in your case, jpg, png, bmp, and so on).
    One click on the button, and you have them reeling in. Automatically. Some crawlers are considerate enough to enable you to adjust the download bandwidth. (We can learn from a million years evolution wisdom. The vampire bat is known to inject a painkiller before sucking!).
    Now that you've downloaded the images to your site, the links you display to your users are all yours. You may choose to resize some of the images, display them as you wish, and the issues of reliability and bandwidth are now up to you.

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • Install gets stuck looking for /global/scripts/ac_media.js

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

  • Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    Hi All,
    I need a T-script  for sql 2005 and 2008 which should give output as:
    Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    In the list below, everything that is in bold face is available in sys.master_files:
    Drive
    Diskspacefree,
    Databasename
    Filename
    Filetype
    Filesize
    Spaceused,
    spacefree,
    free(%),
    MaxsizeMB
    autogrowthsize
    Filegroup
    Everything in bold face is in sys.master_files. Diskspacefree is also fairly simple; you can get it with xp_fixeddrives.
    Filegroup requires you sys.filegroups in every database, although you can hardcode "PRIMARY" for the file_id = 1.
    To get space used per file, it appears that you need to need to visit every database and run fileproperty(filename, 'SpaceUsed') to get the data.
    You need to revisit the topics for the views and function I have listed here. xp_fixeddrives is undocumented, but the output is very simple to grasp.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Looking for iTunes Script

    I'm looking for a script that would remove ALL the album art from my songs. I've got so many mismatched album covers/art that it would be easier to start over from scratch than to go through all my songs one by one.
    Thanks in advance,
    Chris

    You really don't need a script.
    Select all songs (Command-A) and Get Info (command-I).
    Tick the checkbox at 'Artwork' and click OK.
    All embedded artwork will be removed.
    To remove all downloaded artwork (from the iTunes Store), select all songs again, control-click on the selection and choose 'Clear Downloaded Artwork'.
    Hope this helps.
    M

  • I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    [discussion moved to Creating, Editing & Exporting PDFs forum.]

  • Adobe creative cloud has stopped working, all my individual programmes from adobe open and work fine, but when I try to open adobe cloud it starts to open then says adobe cloud has stopped working, looking for a solution then shuts down, I can not open it

    Adobe creative cloud has stopped working, all my individual programmes from adobe open and work fine, but when I try to open adobe cloud it starts to open then says adobe cloud has stopped working, looking for a solution then shuts down, I can not open it at all.

    Without proper system information and the application logs nobody can tell you much.
    Troubleshoot Creative Cloud download and install issues
    Mylenium

  • Looking for a drum loop app that will run in the background. What are you using?

    Looking for a drum loop app that will run in the background. Suggestions? What are you using? I tried Loopseque and I like it, but I can't make it run once I switch apps. Help please.

        That's definitely strange, kzmidge. I want a working phone in your hands though. I noticed you mentioned you received the suggestion to complete a reset. Did you already do that? Is it working again? Are you receiving an error message?
    If you hesitated a little longer to complete the reset, you can try to place your phone into Safe Mode http://vz.to/rxg0ii and see if you can access mobile sites from your browser. This mode will stop 3rd party applications from running, so you won't be able to use the apps you mentioned but we may be able to narrow down the trouble in Safe Mode. If the mobile sites work, that means the trouble may be in a recently downloaded application and you may be able to avoid the reset my uninstalling some of your more recently installed applications. If it's still giving you trouble, the reset http://vz.to/18wzOCi is the next best step.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • TS4212 can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.  I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work

    can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.   what do I do
    I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work.
    I am really struggling

    Thanks
    someone named  Eloisa   she gave me   a phone no.   or visit hp.com/uk
    cannot make head nor tale of it all.  I am old.  and find everything hard to undertstand

  • When trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    when trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • What's the deal w/ Pages and Merge Fields. I've spent an hour looking for it and poof it's gone. What the ****?

    What's the deal w/ Pages and Merge Fields. I've spent an hour looking for it and poof it's gone. What the ****?

    https://discussions.apple.com/message/25419393#25419393
    Peter

  • I'm looking for a digital picture frame that is compatible with the iPhone 5 and 4S.  I was looking at the Panasonic MW-20 but from what I can see I don't think it is.  Any information would be great!  Looking to buy a replacement frame for Christmas.

    I'm looking for a digital picture frame that is compatible with the iPhone 5 and 4S.  I was looking at the Panasonic MW-20 but from what I can see I don't think it is.  Any information would be great.  Looking to buy a replacement for Christmas.  Thanks!

    Hi - the new lightning connector on the iPhone 5 has an authentication chip so very few 3rd party manufacturers have come out with compatible devices - so I doubt that you will find a frame that works for both phones - however Apple has come out with 2 apapters - one is a cable and one is a direct 30 pin to lightning device - you would have to check out each frame to see if one of these might work - I looked at the Panasonic and it looks promising but I would check the return policy of anything that you buy in a case it doesn't work.

  • I work for the Los Angeles Unified School District. I am looking for a way to remove or hide access to the settings on iPads using Apple Configurator (V1.7.1). Can anyone assist?

    I work for the Los Angeles Unified School District. I am looking for a way to remove or hide access to the settings on iPads using Apple Configurator (V1.7.1). Can anyone assist?

    A similar question came up yesterday. One of the responders posted this:
    Consider DEP, Device Enrollment Program. This will establish the company as the owner of the device.  It will lock an MDM to the divice which in turn will lock profiles to the device.
    Quick overview of zero-touch MDM enrollment, DEP
    http://www.apple.com/education/it/dep/
    "This document offers guidance on some important considerations for getting the most out of your iOS deployment." Covers: Prepare your infrastructure.  Set up devices.  Configure and manage devices.  Deploy apps and content.  Plan for support.
    https://www.apple.com/ipad/business/docs/iOS_Enterprise_Deployment_Overview_EN_F eb14.pdf
    [DocumentBodyEnd:d1616e95-b4ff-4e33-bf0b-3835cf3236c0]

Maybe you are looking for

  • K7N2 Delta ILSR Takes forever to boot.

    Specs: K7N2 Delta ILSR Mobo Athlon xp 2500 Kingston Hyper X 2700 DDR 512mb (its on the list) Geforce 2MX 32mb AGP videocard (I dont play games) 3 Com 56k Win Modem IBM GXP120 60 gig ata133 Hard drive Pine 12X DVD drive LG 24x10x48 CD Burner Antec 300

  • Cannot sync calendars and contacts

    Hello, my friend just got a new iPod with video, and as I was helping him set it all up (he's not very technical), I realized that it won't let me sync contacts and calendars. When you go to iTunes-preferences-iPod, there's no button option for 'cont

  • Why objet is not stopped when page change

    Hi, I'm currently working in my company on a library. A have created a class to display ads in a webrowser. A request is executed every 20 seconds. I display the ads in a panorama page but when i go to a detail page my banner continu to do request. T

  • How do I replace a single instance of a string?

    I'm trying to replace a certain string in a text file. The problem is, there is other data in the text file that is being affected by the replace() function, since replace() replaces each substring that fits the pattern it's looking for. I want my re

  • Which is better the ipad2 or 3?

    I've been wanting an ipad for a while now. But I don't know which one to get, either the second or the third generation?