Script Update ?

Can the script below be updated for Photoshop CS5, as well is it possible to add the ability or an option maybe though configurator to have this script Save a Layer Group by a specific name?
#target photoshop
main();
// It calls the other functions to change the visibility of the layer, duplicate it
// another document in PSD format and save the document.
function main(){
if(documents.length > 0 && app.activeDocument.activeLayer.typename == "LayerSet") {
var layerName=activeDocument.activeLayer.name;
var savePath = decodeURI(activeDocument.path);
var theFileName = app.activeDocument.name;
// thanks to xbytor for the regexp;
var baseName = theFileName.match(/(.*)\.[^\.]+$/)[1];
if (baseName.indexOf(layerName) != -1) {
var saveName = baseName.slice(0, baseName.indexOf(layerName)+1)
else {
var saveName = baseName;
var theFile = dupLayers();
var SaveFile= File(savePath+"/"+saveName+"_"+layerName+".psd");
SavePSD(SaveFile, theFile);
theFile.close(SaveOptions.DONOTSAVECHANGES);
else {alert ("select a layer group, not a solo layer")}
//copies the layers in a new document
function dupLayers() {
        var desc143 = new ActionDescriptor();
        var ref73 = new ActionReference();
        ref73.putClass( charIDToTypeID('Dcmn') );
        desc143.putReference( charIDToTypeID('null'), ref73 );
        desc143.putString( charIDToTypeID('Nm  '), "_"+activeDocument.activeLayer.name+".psd" );
        var ref74 = new ActionReference();
        ref74.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc143.putReference( charIDToTypeID('Usng'), ref74 );
    executeAction( charIDToTypeID('Mk  '), desc143, DialogModes.NO );
return app.activeDocument
//saves the file in PSD format
function SavePSD(saveFile, theFile){
psdSaveOptions = new PhotoshopSaveOptions();
psdSaveOptions.embedColorProfile = true;
psdSaveOptions.alphaChannels = true;
theFile.saveAs(saveFile, psdSaveOptions, true, Extension.LOWERCASE);

StrongBeaver wrote:
Can the script below be updated for Photoshop CS5, as well is it possible to add the ability or an option maybe though configurator to have this script Save a Layer Group by a specific name?
Using CS5 32 bit  I opend a file create a layer group out of some layers targeted the layer group and ran this scrip and it saved a new document FileName_GroupName.PSD it worked as is  just file. It uses the current filename and target layer group to create the output filename ans saves a psd file in the same folder as the source  file???

Similar Messages

  • Script Updater to change username and password

    Can the script updater change the username and password for a bunch of test? I tried using the Global search and replace but it was not able to find the string. Please help?

    If the password is stored in the test it's self you can find it by opening the test file xxx.mom and preform there a search and replace.
    Perhaps it's better to connect the password to a variable by connecting it to a databank source. So the password is stored only once. Saves a lot of maintainance.
    -Theo

  • Scripting updates

    Hi,
    For obvious reasons, our users do not run as administrators.  We remove adobe_updater.exe from the HKLM\MS\Windows\CurrentVersion\Run key so that users are not prompted for an update they cannot install, generating support calls.
    What I'd like to do is to be able to script running adobe_updater.exe after the quarterly patches and push the script down through Ghost or SCCM.  We are running Acrobat Pro 9.1.1 and Reader 9.1.1; we have a maintenance plan so we are always on the latest release.  We do have a few people running Photoshop CS4, so ideally I'd like to be able to push down something like one of these options:
    adobe_updater.exe /update /norestart /quiet
    adobe_updater.exe /update /product:reader /norestart /quiet
    adobe_updater.exe /update /product:cs4,reader /norestart /quiet
    It would be really helpful if there were a switch to say which products to upgrade, but I'd settle for upgrading all at once.
    Is this possible?
    Thanks,
    Bob

    Hi,
    Vinod is referring to your server. If you have SCCM, use that. If not, do what enterprises normally do:
    Disable Acrobat/Reader automatic updates and don't use the Acrobat updater.
    Figure out what versions you have deployed and what version you want to update to.
    Use admin install points or bootstrapper to distribute updates (chain them if you need to).
    I don't know how many products Adobe has. Maybe 150. You can forget about one updater for all products. Also, if you have different versions of Acrobat/Reader on different machines, then your problem is more complex. You should consider uninstalling and starting with a clean slate using #3 above.
    Ben

  • Why has latest no-script update caused google to stop my searches

    I have just updated the no-script add on as was requested, since then my google searches have been stopped after 2 pages with a warning stating my ip address is sending out messages and will be stopped. I had no previous problem in this regard, however if I 'revoke temporary permissions' every time before going to the next page, this problem ceases.

    See the NoScript support forum for help with that new feature.
    http://forums.informaction.com/viewforum.php?f=3

  • My first bash script - update mirrors and then update your system.

    Like the title says, this is my first attempt at a bash script.
    I wrote it to make it a tiny bit easier for my wife to keep her system up to date without needing to remember the terminal commands.  She runs it via an entry in her openbox menu.
    It calls on reflector to check all available mirrors for the most up to date and then use rankmirrors to find the fastest 5 and write them to /etc/pacmand.d/mirrorlist
    Finally, it syncs and upgrades via the command pacman -Syyu
    #!/bin/bash
    # runs reflector to optimize mirrors
    echo "I'm afraid I can't do that Dave"
    sudo reflector -l 5 -r -o /etc/pacman.d/mirrorlist
    echo " I hope you trust me..."
    echo " "
    sleep 2s
    # updates system
    sudo pacman -Syyu

    I've scavenged some code to take care of the root thing, but why rebase vs pacman?  After reading up on rebase a bit, I'm not quite sure how to use it to complete the upgrade once it's updated everything.

  • UCCX Hot Script Update

                Can you update a script while it is running?   If you have to get in an change the script from Open to Closed because of the Time of Day, Day of Week needs updateing, any danger when uploading the revised script?  
    Peter Buswell

    Peter,
    You can add variables to your script as parameters that allow you to change the functionality of the script through the application that you create.  You can also act on external sources like Gergely stated. 
    We use both of those a lot in our scripts.  (Holiday check, manual open/closed, etc. all use external sources. XML/DB Query)  If you get creative you can make time of day checks based on parameters as well. 
    As Jonathan stated, you can update the script on the live system and the next trigger gets the changes.  It is highly recommened not to do that unless necessary. 

  • Sql Script-Update Recepient Reference Password

    Hi All,
                I am very new to Biz-talk server and this is my first task in biz-talk. And I have task to Update Recipient Reference Password in agreements of the parties folder.
               In my Biz-talk Administration console I had the folder with name "Parties" and it holds party name called "NZ" and this NZ is having some agreements. 
               When I click for one of this agreement I am getting 3 taps and in the second tap I am having the column called "Recipient Reference Password" in Identifiers sub-tab in this column I need to write the Sql
    Script command and set the default value as "NZ".Below is the image.
        Can any one help me how can I do this
    Samar

    Not using a SQL script but with C# code and using Microsoft.BizTalk.ExplorerOM can try this..
    The classes which could get you closer are Microsoft.BizTalk.Deployment.Binding.Party and Microsoft.BizTalk.Deployment.IEdiParty. More probably you may have deal with XML and use XPath to update your setting in the XML and then
    Loadthe XML into party settings using EdiData.LoadXml
    Use the following article as the reference to start exploring options..
    http://btserver.blogspot.co.uk/2010/05/exporting-specific-party-from-biztalk.html
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Script update when running

    Oracle SQL Developer version 1.1.2.25 BUILD MAIN-25.79
    Running under WinXP
    Issue description:
    It is currently not possible to update the script that is currently running.

    open the sql file dialog
    type a select that take some time to execute
    you cannot update the running file in the mean time, text is locked

  • ECatt script updation

    HI,
    Suppose I am creating a script for one flow. After that I will have to run it for the flow which has got customized. In that case my script is sure to fail.
    I want to know in this situation what do I suppose to do ? Should  I re-record the whole flow or should I be able to update the existing script.
    In that case how can I update the eCatt script ? If I have to add a new field to the script, How can I do that ?
    Thanks,
    Poonam

    Hi ,
    Its not good practice to create separate script everytime cusotmization changes,
    Auoamtion tools should be used where you finalise a particular scenarios,
    In case if the cusotmization changes creates problem for your script then decide which standard
    custmusization is permanent and then decide to automate only that scenario instead of changing every time.
    But if you say the cusomtization is not frequent and you need to add field for existing recording,
    that depends on what driver you used to record the script.
    TCD,SAPGUI,FUN module ...etc.
    If you have used SAPGUI then u may need to attach the field by using SAPGUI attach.
    IF its TCD then go to the DYNPRO where you want to make input to that field,
    IN the mode- Usually it should be "I" if its ready for input, set that to "S" now and parameterize.
    best regards
    vinay

  • SCOM 2007 R2 CU 7 SQL Database script update

    Hi..I'm in the process of installing CU 7 for SCOM 2007 R2 (SQL 2008 R2). I completed the Server update successfully. While running the SQL operations manager DB upgrade I get the message '(0 row(s) affected'
    Auto-attach to process '[144] [SQL] Server' on machine 'Server' succeeded.
    The thread 'Server\Instance [87]' (0x8fc) has exited with code 0 (0x0).
    The program '[144] [SQL] Server: Server\Instance' has exited with code 0 (0x0).
    Also, there are no alerts being generated since yesterday which I assume are due to the database not being updated.
    Am I missing something here?
    Thanks
    blogs.technet.com/b/kevinholman/archive/2012/05/18/opsmgr-2007-r2-cu6-rollup-hotfix-ships-and-my-experience-installing-it.aspx

    Hi,
    I suggest you follow the official KB methods here.
    1. Log on to the computer that hosts the Operations Manager 2007 database by using a user account that has database system administrator (SA) rights to the instance of the Operations Manager 2007 database. To perform the database update remotely, log on
    to a computer that hosts SQL Server Management Studio by using a user account that has the appropriate SA rights to the Operations Manager 2007 database.
    2. Run SQL Server Management Studio.
    3. In the Connect to Server dialog box, connect to the instance of SQL Server that hosts the Operations Manager database. The default database name is OperationsManager.
    4. On the toolbar, click New Query.
    5. From the SQL Editor toolbar, use the Available databases option to select the Operations Manager database.
    6. On the File menu, click Open, browse to C:\program files (x86)\System Center 2007 R2 hotfix utility\KB2783850\SQLUpdate, select the CU_Database.sql file that was extracted by the Windows installer (.msi file), and then click Open.
    7. When the file is loaded, click Execute in the SQL Editor toolbar.
    8. View the Messages pane to check whether the Transact-SQL commands ran successfully.
    9. Exit SQL Server Management Studio.
    10. For the Operations Manager data warehouse, repeat steps 1 through 8. However, connect to the instance of SQL Server that hosts the Operations Manager data warehouse, and then run the \SQLUpdate\CU_DataWarehouse.sql file.
    More info:
    http://support.microsoft.com/kb/2783850
    Niki Han
    TechNet Community Support

  • PDF form scripting - update total

    So I have put together an order form in acrobat. The user enters a quantity for each item and the item subtotal and combined total costs are calculated. The problem - upon opening the PDF and entering the first quantity, the item subtotal updates but the combined total remains zero. Once any other field is changed, or if the first field is changed a second time, the combined total updates. Any thoughts?
    Thanks in advance for the help. the form can be downloaded here - http://www.vermontel.com/~knsh/beta/knsh_order_form.pdf

    It's a problem with the field calculation order.
    (In Acrobat X) Go to Form Edit mode, and then click Other Tasks - Edit
    Fields - Set Field Calculation Order...
    Change the order so that subtotal is above total.

  • OID 11g How to log ldif script updates?

    Hi,
    I'm using ldif scripts in the bulkdelete, ldapadd, ldapmodify type commands to create the OID DIT, extend the schema and to import OAM configurations from other environments during a development release schedule.
    Has anybody got any good suggestions of how to log these events so I can track which scripts have been run, from which internal build and in which environment?
    My current thinking is to just find/create a multivalue attribute and get my script to output some details to that when it's run. This could then display 'Script x was run for Build y'. Then in any environment's OID I could see what had been deployed by looking at that attribute.
    Does anyone have any better ideas or know if you can link ldif scripts into the bulkdelete and ldifwrite logs that OID produces itself?
    Thanks

    Hi,
    I'm using ldif scripts in the bulkdelete, ldapadd, ldapmodify type commands to create the OID DIT, extend the schema and to import OAM configurations from other environments during a development release schedule.
    Has anybody got any good suggestions of how to log these events so I can track which scripts have been run, from which internal build and in which environment?
    My current thinking is to just find/create a multivalue attribute and get my script to output some details to that when it's run. This could then display 'Script x was run for Build y'. Then in any environment's OID I could see what had been deployed by looking at that attribute.
    Does anyone have any better ideas or know if you can link ldif scripts into the bulkdelete and ldifwrite logs that OID produces itself?
    Thanks

  • SAP Script Update

    Hi All,
    I made some changes in the sap script and also in the print program and then moved my transport to the RQ for testing, I saw that the changes are there but it's not working the same way as it was working in the development box. did I miss anything?
    any idea please
    Thanks,
    Rajeev

    If this is for an output fired off by an SAP process, did the config get changed to point to the new program and custom SAPScript?
    A suggestion, if you've not already tried this....  If possible, leave calling program as is, create custom SAPScript and enhance it with PERFORM....etc.    I realize that's not always possible, but (as I recall), that's the preferred practice...

  • UCCX 8.0.2 application script update fails

    Screenshot attached.
    When try to change application parameter and pressing the update button produces the screen that is attached and the change does not go thru of course. Restarting the CCX Engine did not change anything. Recycling the box entirely using CLI, fixed the problem. This is the fist time I handled this issue, but the customer says this is a recurring issue and a restart was also done in the past. Any ideas on what could be causing this? Looking for a permanent solution, so that we do not have to recycle the box each time it occurs.

    Please do not paste screenshots into MS Word documents.  Just use an image editor, such as MS Paint to paste the screenshot, and then save as a web friendly format such as PNG.
    Sounds like a defect, and a Cisco TAC case.  Unless you fancy searching the bug toolkit, in which case, you'll only confirm what you already know, and have to upgrade to fix it.
    BTW, what SU are you running?

  • TCP Snoop script updated

    I have posted DTrace script to snoop tcp traffic and also provided a wrapper script
    for it to filter out unwanted traffic.
    http://blogs.sun.com/roller/comments/raviswam/Weblog/tcp_snoop_using_dtrace
    Please let me know if you have any feedback/comments on this.
    Thanks
    Ravi

    HI Brandon,
    Fantastic work!  I will give this a try. I can see if we can get this added to the user contributed tools section of the forums if you want.
    Thanks for your contribution, that is exactly what the forums are all about.
    Christopher C Smith
    CSE
    Cisco IronPort Customer Support 

Maybe you are looking for

  • Printer not connecting wirelessly with iMac

    MacBook Pro working on OSX 10.4.11 wirelessly with Epson PX710W. Tried to add iMac on OS X10.5.8 but failure to connect on every attempt after numerous sessions with Epson Support. Have repaired permissions having previously run verification of HD wh

  • Incoterms in SRM

    Hello All, i have a question to ask, is there any need (Mandatory)that the inco-terms are to be maintained in the Backend for the Replication of the Vendors. if we have to then what is the programme that is to be run like BBP_GET_CURRENCY.....ect.do

  • Adobe CS6 audio problem

    Hey guys, I'm really new to Adobe, I've been using SonyVegas for a long time now. I thought I'd try out a different program. I really like CS6's interface, it feels really natural. However, I can't use it for what I want to do. I record game footage

  • Ibook g4 won't boot or find firewire for booting

    thank you for reading this and offering assistance. i have a g4 (screen is 14.1 -- purchased new 2 years ago, i am trying to boot the computer from a firewire hard drive. the backup image appears to work. an image created for my other mac -- intel im

  • HT1766 I am running Windows 7. How do I back up an I-Pod and my I-Tunes library on my PC & to I clouds.

    I am asking how do I back up my I-Pod classic to I-Cloud or to an external hard drive?