How can I create a script to delete all Layer Comps?

I know this has to be pretty easy but I'm flummoxed on the syntax. Thanks, in advance!

// 2012, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
while (myDocument.layerComps.length > 0) {
myDocument.layerComps[0].remove()

Similar Messages

  • How can I create a dropdown list of all 12 months without having to type each month manually?

    Hello,
    We are creating a writeable/fillable Form PDF that asks for a person's birth month, birth date, and birth year.
    We want to make filling the form as easy for our respondents as possible. For the blank that asks for the birth month, we would like to create a dropdown list of all 12 months.
    We also would like to  make the creation of the form as easy as possible for us. Is it possible to avoid having to type all 12 months into the list?
    What about for birth years from 1901 to 2000?

    And you are aware of the possible options for listing the months and having an optional export value for each month.
    For listing the months, you can use a number, a 3 character string, or the full name.
    For the export value, the full name, the 3 character value, the 1-2 number, or the 0-11 JavaScript value.
    I would look at deciding how you want to populate the drop down box and build a one page form with just this field. You can then insert that page into a PDF and copy the field as needed and then delete the inserted page. Or you could create an FDF file to create the drop down box.

  • How can I create a fIlter to delete only "junk" from the server?

    One of my E-mail accounts is that of a major client. I handle their customer service online. Normally our protocol is to always leave all messages on the server, so for that one Thunderbird account, I have it set to never delete messages on the server.
    But the account recently started getting a lot of junk messages. Thunderbird is doing a remarkable job at marking those and placing them in the junk folder for that account. I would like to create a filter that could remove them from the server, preferably those more than "x" days old so I could monitor the activity to be sure that no important message are removed.
    I did notice that in "Filters" I can create a custom filter from a header of my choice, but can't seem to create what I want which is:
    - after mail is marked as Junk by Thunderbird to delete those messages from the server if they are older than "X" days (my choice of "X").
    - not delete any other messages from the server for that account

    I believe that did it! Thank you. I am running those changes on a secondary E-Mail address for the same job and server and it appears to be working properly.

  • How can I create a new catalog of all my photos with no develop adjustments?

    I use Lightroom 4.3.  I tried this by deleting the old catalog, and creating a new one, thinking that the develop adjustments would no longer exist after first deleting the old catalog.  The develop adjustments were still there.  (I deleted the catalog out of the lightroom sub-folder of My Pictures.) 
    The reason that I want to do this is that I have one folder (of about 800 important photos) where something went very wrong in Lightroom, and every time I try to pull up one of the photos my whole computer stalls.  Everything works beautifully in my other folders.  I even re-installed Lightroom.  I want to re-add those dng photos without the develop adjustments.  It doesn't bother me if none of my files have develop adjustments.  I save all of my files after they are adjusted.  I save the DNGs also. 
    Thanks,
    Jennifer

    One easy way: reset after importing (which can be done from library module - e.g. main menu, context menu, quick-develop...). If you can't even get that far, consider using exiftool to strip the xmp from DNGs and/or jpegs, or just delete xmp sidecar file in case of proprietary raw.

  • How can I create a custom dock for all users?

    Hello,
    I would like to create a custom dock for everyone that uses a certain Mac. I have found a bunch of stuff, but it is outdated. Most of the tutorials are for 10.4 or 10.5. I am using 10.7.4 and I have found nothing regarding that. Can anyone point me in the right direction?
    Thanks in advance

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • How can I create a default dock for all users (Mavericks)?

    I would like to modify the dock to display specific installed applications.
    I then want this dock to be the default dock for any users that log in.
    OS is Mavericks.
    All users are AD users.
    No server management.
    We use Deep Freeze to revert the Mac to the way we set it up.
    I can find info for previous versions of OSX; basically just copying the plist, but I can't find anything that works for Mavericks.
    Any help would be appreciated!

    You could set up a user template for new user accounts, but you can’t stop individual users from modifying their Dock to suit their needs.
    I don’t know how to modify the user template, so you’ll have to google for it.

  • I was updating my iphone in itunes, then it said the update went wrong and now does not recognize the phone. Says that it is an unknown iphone and I must restore the phone. How can I get it back without deleting all of my stuff?

    I was updating my phone in itunes and the "update went wrong" and now the phone is not recognized by itunes. I unattatched the phone and it wont turn on or off, just shows a picture of the itunes symbol and a usb cord. In itunes it says that it is an unknown iphone and is in recovery mode so I need to restore the phone. If I restore the phone I loose all my pictures, which I dont want to do...and my contacts. Is there any way around this, so I can get my phone back to normal without wiping it all out? Thanks

    To be more clear:
    Was you phone hacked/jailbroken BEFORE you hooked it up?

  • TS2756 How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )

    How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
    i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
    the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
    the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
    but not the usb iPhone i used to have.
    And when i try to add a new one i dont get a USB option.
    can some one help me please??
    this is how it looks (after the bluetooth PAN i used to have USB iPhone option)

    The question would be more appropriate in the Mac forums as it is not really related to the iPhone.

  • How can I create more than one main window in a page of SAP SCRIPT?

    How can I create more than one main window in a page of SAP SCRIPT? If anybody helps me I will be obliged.
    Regards,
    Subhasish

    Hi Ganguly,
    It is possible to have more than one main window in a same page.
    You create a main window and simply you copy and past it in the same page.. it will create first main window name as MAIN and other main windows as MAIN01,MAIN02.... up to MAIN99.
    Contets flow from MAIN , MAIN01, MAIN02.......................MAIN99. contents after filling the current window it flows to next window(by default, you skip as well with some keyword not sure could be NEW-WINDOW)
    you want print the main window data twice? or you want to create two main window in the same page ?
    1. give two copies in the no of copies in the output type screen ( Which pop up is coming after excute the program ).
    2. create two page with the same script form.
    3. you can write the coding inside the program to print twice the same page.
    Hope this information use full to you..

  • I have the retail iCloud account. How can I delete it? And how can I create my own account?

    I have the retail iCloud account. How can I delete it? And how can I create my own account?

    Welcome to Apple Support Communities
    To delete the iCloud account, open Settings > iCloud, scroll to the bottom and select Delete account. Then, log in with the Apple ID you want to use with iCloud

  • Hi folks, you might know how to fix this: my wifi shows (no hardware installed) then I went to system preferences and deleted the wifi connection, I went also to system information and I can not see wifi listed on Network, how can I create a new wifi ?

    Hi folks, you might know how to fix this: my wifi shows (no hardware installed) then I went to system preferences and deleted the wifi connection, I went also to system information and I can not see wifi listed on Network, how can I create a new wifi or simply solve this, I have tryied shotdown pressing keys like P and R, option, etc. Please help me .

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • How can I create a new ring tone for my iPhone 4?

    How can I create a new ring tone for my iPhone 4? I followed the Garage Band process and ended up with the ring tone I want as a AAC audio file. It got stored in my iTunes a a song rather than a ring tone. How do I make it a ring tone vs. a song? I tried dragging it t the Ring Tone category at the bottom of the ITunes list, but it won't alloow me to move it?

    There's also an easy to use Applescript over at Doug's Applescripts for iTunes. It automates the whole thing. All you do is set the start and stop time on a file in iTuens and run the script. It will do everything else.
    Make Ringable v1.1
    http://dougscripts.com/475

  • How can I create an EntityStore for a Database?  Advice on DB strategy?

    Hello All,
    How can I create an com.sleepycat.persist.EntityStore for a com.sleepycat.db.Database? Advice on DB strategy?
    I'm looking to create an application prototype that creates a database dynamically and can delete it programatically. Is openDatabase/removeDatabase what I'd want to use for that?
    So far, the Direct Persistence Layer is an amazing piece of technology and has the potential to make my team's application faster than we every though possible, so kudos to the author.
    I've built a high-security application using the DPL and a single database for hundreds millions of users. I'd like to attempt to create a database for each user for security and manageability purposes. Our mission statement doesn't allow us to execute queries for sensitive data across more than one user account at a time, so I don't get any benefit from having every user's objects in a single database. I'm investigating if giving each user their own database will speed up insert times and SecondaryIndex queries. It'll certainly be more secure as each database will be encrypted with a unique password.
    My design is that I have an app with dozens of com.sleepycat.persist.model.Entity beans which I persist and query on their Primary and secondary indexes. I've been accessing things through an EntityStore as illustrated in the Getting Started Guide. Can I access a database created with openDatabase through an EntityStore and com.sleepycat.persist.PrimaryIndex?
    Thanks in Advance,
    Steven
    Harvard Childrens Hospital Informatics Program

    I closed this as I found another way to solve my issue.
    Thanks,
    Steven

  • I have an edit button in my e mail account but when I press it I don't get the ''get new mailbox' button. How can I create e mail folders? Thanks.

    I want to create e mail folders for my goole account. I go to the account and as suggested in the forum i tap on edit. Then instead of getting at the botton a button that says 'new mailbox' i get 2 boxes one red that says delete and one blue that says move. This is on an ipad 2. I have also an ipad 3 and there it does work. I have checked the settings in both ipads and they seem identical to me.
    How can I create the foldesr then on teh ipad 2?
    Thanks a lot!

    You need to be in the mailbox list for the account when you tap edit.
    Sounds like you might be trying to do it from insider you Inbox.
    Matt

  • How can I create a new Security Domain ?

    Hi everyone,
    I would like to know how can I create an Security Domain other than ISD ?(If my card support multi SD and delegated management)
    I read Global Platform v2.1.1 ,but I don't know how can I create new SD practically(how can I write it's code ,how can I install it and how can I associate an applet to it,...).
    if there is any document or link can help me ,please inform me.
    I'll appreciate for any one if explain it to me step by step.
    yours sincerely.
    Orchid.

    You're right, it is not visible looking at your script, but at the APDU log. /card is an internal JCShell script to do the following:
    cm>  /card
    resetCard with timeout: 0 (ms)First the card is reset. This is analogous with /atr
    --Waiting for card...
    ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 34 31 56    ;.....1.EJCOP41V
        32 33 31 97                                        231.
    ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V231"Then an /identify command is issued.
    => 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF          .........gA0..
    (163429 nsec)
    <= 09 01 01 29 00 00 00 00 50 48 36 35 30 41 00 00    ...)....PH650A..
        6A 82                                              j.
    Status: File not foundNow the Issuer Security Domain (ISD) is selected. You can do the same sending the JCShell 'select' command.
    => 00 A4 04 00 07 A0 00 00 00 03 00 00 00             .............
    (650082 nsec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65    oe...........Y.e
        01 FF 9F 6E 06 40 51 70 92 29 00 73 4A 06 07 2A    ...n.@Qp.).sJ..*
        86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B    .H..k.`...*.H..k
        02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64    ....c...*.H..k.d
        0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09    ...*.H..k...e...
        2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01    +...Hd...f...+..
        04 01 2A 02 6E 01 02 90 00                         ..*.n....
    Status: No ErrorThe answer is the File Control Information (FCI) returned by the ISD. The format is also described in GP.

Maybe you are looking for

  • Itunes on xp service pack 3

    please somebody help me couse i m pretty close to broke my laptop. i just bought an ipod touch, i have donwloaded the latest version of itunes, installed and when i start it nothing happen, task manager is showing me that itunes i runnig but...i trie

  • Can I set up two Firefox homepages on one computer and associate different gmail accounts with each?

    Can I set up two Firefox browser home pages with associated gmail accounts on a single computer. When one home page is opened it has a gmail link for one member of the family. When the other home page is opened, it has a gmail link for a different me

  • Inspection lot creation during GR with respect to Purchase Order

    Dear Experts, Here is my Question Inspection lot creation during GR with respect to Purchase Order Inspection type 01 set in the material master inspection lot will be created during GR for a Purchase order from my understanding for every GR a inspec

  • How to build a BSP iview?

    Hi, I am trying to create a BSP iview. Can anyone please send me the mandatory properties to be set and their values for the system and the iview? I think the system properties are set properly because the connection test was succesful,but not sure a

  • Unable to install Premiere Elements 13 upgrade

    During the zip file extraction, it quickly jumps from 20% to 97% and then reports: "A problem occurred while extracting some files. Check available space on your computer and the write privileges on the destination folder." There is over 800GB availa