A loop script with the new settings

I'm doing this script works in a loop and change settings at each new loop:

var layerRef = app.activeDocument.artLayers.getByName("1");

layerRef.visible = true;

function saveJPEG (doc, saveFile, qty) {}

saveOptions var = new JPEGSaveOptions ();

saveOptions.embedColorProfile = true;

saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;

saveOptions.matte = MatteType.NONE;

saveOptions.quality = quantity;

doc.saveAs (saveOptions, saveFile, true);

}

saveJPEG (app.activeDocument, new File('~/Desktop/1.jpg'), 10);

The script makes no later than '1' visible and save it in JPEG as 1 ".jpg". In the second loop I need to make the 2 visible layer (Layer 1 is still visible - layers are mix) and save it as 2.jpeg. In the third loop: layer 3 and save the 3.jpeg file, ect...

Thank you.

G > > >

Add a counter of the loop variable, and then use this counter to change numbers:

var count = 1
for(var=0;i 
         

Tags: Photoshop

Similar Questions

  • Anyone having problems with messages of script with the new version of GMail and Yahoo Mail? All the others seem fine and no problems with other browsers. With the help of FF25

    Gmail and Yahoo mail are very slow to load. I get a message from the script almost whenever instruct me to continue or to stop the script. Everything I have shut down or restart the browser goes blank and hangs. So, I have to restart Firefox. I followed suggestions on the help pages for the slow e-mail accounts or issues. (cleared cache etc, reset etc.) nothing solves the problem. I only noticed the problem since the first update of FF25. Scripts to stop even on these pages is not acceptable, because you are directed to the pages who insist you must restart scripts. It's a nightmare! Gmail both Yahoomail are very slow to respond to clicks more.

    Your list of details of the system shows that you have a user.js file in the profile folder to initialize some preferences at each start of Firefox.

    The user.js file appears only if you or another software created, therefore, normally, he wouldn't be here.
    You can check its contents with a text editor if you do not create this file yourself.

    The user.js file is read whenever you launch Firefox and initializes the preferences to the value specified in this file, so set of preferences via user.js can be changed temporarily for the current session.

    You can rename or delete the prefs.js file and numbered possible prefs-# .js and the file user.js to reset all default prefs.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)

    Note that the folder "Application Data" in XP/Win2K and the "AppData" folder in Windows Vista and Windows 7 and later versions are hidden folders.

  • Shared copy actions and objects with the new settings

    Hi all

    I have a problem with objects and actions. Here's the scenario:

    I have a sentence where some parts are written in an informal way. The user is to type the words in the sentence, he or she thinks are informal, and they are highlighted. The user can click a button "submit" at any time, and if all the correct words have been highlighted, they receive a correct message.

    To achieve this, I have given every word click two boxes (one for in and out), a highlight box and have created common actions for the latter to work.

    When I copy the Group (the two click boxes and highlight box), actions are copied too. However, the parameters of joint actions continue to point to the original and not a copy. So my question is...

    Is it possible to copy objects and their associated common actions and include the settings of the shared actions change to match the newly copied objects?

    See you soon

    Lewis Carey

    Hi HaridossR1234

    Thank you for your e-mail. The solution was indeed that the Captivate version was not updated (it was 7.0.0 something, as opposed to 7.0.1).) After updating, the problem no longer occurs. Thank you very much for your help!

    See you soon

    Lewis

  • create a new virtual machine with the default settings?

    I was wondering if there was a way to create a new virtual machine with the default settings.

    For example, let's say I want all new Lion VM to have 2 CPU cores. Is there a way to set this automatically? There are other parameters I want a new machine to inherit automatically, I was wondering if there is an automatic way to do this, or is it a feature request...

    Thanks in advance

    lerker wrote:

    Just for my clarification, when you say a vm model, basically I would execute a finder copy then drag back to the VM library, right?

    Yes.

    On the orders of spcirpting, it would be unix commands or are there specific vmware controls that make your job easier (in Applications/VMware\ Fusion/content or elsewhere)...

    IIRC, VMware Fusion 3 and later versions has an AppleScript dictionary, but it is not yet officially supported and may not be able to do what you want so, basically, only Unix Shell scripts, that's what I was referring to.  For an example, see my script attached to the following response: Re: vmware - script of the creation of the vm and the operating system installation process

  • I want Photoshop, etc. on my new computer with the same settings I have on my old. I can't find a way to get there.

    I want Photoshop, etc. on my new computer with the same settings I have on my old. I can't find a way to get there.

    Using Adobe Creative Cloud sync settings

  • With the new updated subMSO script no longer works.

    I have a problem... In my folios (interactive comic), I nested MSO...  MSO (1) with another MSO (2) in it, and then in MSO (2) it is an another MSO (3) and so on...

    I come to them with a script that is described in this page: http://forums.adobe.com/message/4595857

    All work fine with output of previews on the dps and happy 23 24 viewer desktop tool.

    But with the new update does not work the button inside Sub-MSOs.

    All suggest?

    Thank you.

    We just released an update for DPS tools dealing with issues around HTML/iFrame and version 25 buttons. You can download the updated components by following the links to http://www.adobe.com/go/learn_dps_install_en.

    Neil

  • Need help to update to work with the new vSphere environment 6

    I have a great powershell script some time ago, I created to clone our production servers in a development environment and configure them for use in isolated vShield development networks.

    We have recently updated our environment vSphere vSphere 6 and changed architecture autour 5.

    Previously with vSphere 5 we had a unique vCenter server that managed our two datacenters by itself.

    With the new design of vSphere 6, we have a PSC and VCSA server to each data center in one area of SSO.

    The first thing I did with my script of cloning is up-to-date reference vcenter for a table of two servers, so I connect to two VCs at the same time.

    This allows me to see and manage the two vCenters virtual computer guests, so get - vm strives to see the comments of the source.

    However, the problem is that when I try to clone a virtual machine from one data center to another, the command fails because it can't find the virtual machine to clone.

    # Virtual Centre server or VM host to connect to
    $aryVIServer = @("vc01.domain.com", "vc02.domain.com")
    
    # Load VMware environment
    Set-PowerCLIConfiguration -DefaultVIServerMode Multiple -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
    $VIServer = Connect-VIServer $aryVIServer
    
    # Server cluster group to deploy to
    $strVMCluster = "Bubbles"
    
    # Define name of new server including environment prefix
    $vmName = "$($envPrefix)-$($CloneServer)"
    
    # Select Host with least memory consumption
    $selectedHostObj = Get-VMHost -Location $strVMCluster | Sort-Object -Property MemoryUsageGB | Select-Object -First 1
    
    # Select folder to place VM guest into
    $folderObj = Get-Datacenter -Cluster $strVMCluster | Get-Folder $selectedBubble
    
    # Select datastore with most available space
    $selectedDatastoreObj = Get-DataStore -VMHost $selectedHostObj | Sort-Object -Property FreeSpaceGB -descending | Select-Object -First 1
    
    # Clone new VM from running Server
    $newVM = New-VM -Name $vmName -VM $CloneServer -VMHost $selectedHostObj -Datastore $selectedDatastoreObj -DiskStorageFormat "Thin" -Location $folderObj -Confirm:$false
    

    He used to work very well when there was a single VC but of course does not now with two.

    So far, the only difference is the change in VCs. We always use the same exact 5.0 running ESXi hosts to the same place in separate data centers.

    Oh and I'm now using powercli 6.3 R1 instead of 5.5 R1.

    I look forward to this type of procedure should work fine, and I just need a different command for virtual machine cloning now?

    Well, I have solved the first problem according to them here:

    Re: Impossible to deploy VM model on different vCenter Server (in the same domain of SINGLE sign-on)

    However, now I can't run Invoke VMScript without getting an error that the proxy authentication is required.

    If I remove all my proxy settings in Internet Explorer, then it connects fine but this script must be run by a number of engineers without being dependent on their proxy settings are disabled.

    I can programmatically change the settings of proxy at the beginning of the script, but nothing not preventing to change those back if they use their browser and break execution of the halfway of script.

    Never had any problems with the Proxy settings before and I didn't know any other messages that have directly relevant air.

    Anyone know of a way to avoid this?

  • My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    Hello brooksm549,
    Thank you for using communities of Apple Support.

    I got your message which, since updating your iPhone 6 to iOS 10.0.2 your iPhone stops when it is 40% and the power to empty very quickly. I understand your concern with the iPhone turn off and drains the battery. I recommend you to review the use of the battery to see what app contributes more to the battery drain. The following article will provide you with steps on how to check the use of the battery:

    On the use of the battery on your iPhone, iPad and iPod touch

    When you know about the soft uses more battery, you can change your settings in order to optimize the battery life:

    Maximize the life of the battery and battery life

    Best regards.

  • I had a problem with my iPad 2 Air when I changed my Apple ID password, the problem is, it shows me a Massage says ENTER the PASSWORD, and then said your PASSWORD will be used when the signature with the new device, but when I but the code it shows fail m

    This problem happened to me and it belongs to iCloud and I have used so important, please can someone help me?

    Hello. The access code on your iPad is the code four or six numbers you will need to enter to unlock the device. It has nothing to do with the verification of your Apple ID or two-step. Are you able to unlock your phone? If you are, then please describe the steps that lead to your problem. Since you have changed your Apple ID password, you will need to go to two settings > iCloud and settings > iTunes and app store and sign out of your Apple ID, then connect back with the new PW.

  • How to set the location of the function "reload the page" with the new update?

    Since the new update, my previous settings have been changed and I can't get back them.
    I could already right-click and customize what I wanted to see, now, I have a "menu open from the things I've decided I don't want to see" option stuck right without an option to not see. Okay so.

    My main problem is that all of my computers I always 'Reload the page' and "Stop reload the page" options to the left of the URL bar. With the new update, ironically designed to make easier user interface customization, they are stuck in a slot inside the URL bar.

    I wonder if anyone knows a way to customize it? Please and thank you.

    Sorry, in Firefox 29 the reload / Stop button drop-down list is not movable. But there are extensions available to restore this preference.

    This extension is popular, for example.

    https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/

  • Everytime I open a new firefox window, a new tab opens with the new window. How do I stop this?

    Everytime I open a new Firefox window, the new window opens to the page of hope (as I want him), but then a tab opens with the new window. I want Firefox to stop doing this. When I open a new window I want just the window to open it. I don't know how to solve this problem I've known idea how I did that happen. First of all, it happened when I hit Ctrl + N to open a new window, but I did not hit the "N" itself. I pressed one of the other keys around the "N" and this issue has started.

    It's quite strange!

    Have you tried to reset Firefox? You will find all the information you need to reset, here:

    Firefox - modules to reset and refresh settings

    Let me know if it worked!

    See you soon!

  • Tecra M5 - SD card reader works with the factory settings

    Hi all
    My SD card reader has been in place. It will read a few cards of 4 GB and won't read other (usually newer).
    All cards in this problem area are Transcend cards 4GB SD (HC or whatever the format more later is)
    The cards, the M5 will not read can be read both my PDA, but also an old Tecra 9000 (who will also tell the other 4 GB cards)

    The PC was recently engineers have a problem so I asked to look at this problem. They reported that it was a software problem, because if they load the recovery CD (that is, to bring the machine to factory State) the SD card reader reads cards problem OK; Back to my setup and the SD card reader can not read cards SD - error message is "the request cannot be performed because of an i/o device error."

    So I guess that I need new drivers. Very well except that it has no drivers for the drive SD card itself. Its a part of the motherboard. There is a 'secure module SD' on the download from Toshiba site and I downloaded and installed the SD Secure module (dated 2008)
    However, Device Manager still shows that the SD host controller driver is Microsoft version 01/10/2002 6.0.4069.5

    If anyone has ideas on how to fix

    TFA
    R

    Hello!

    > back to my setup and the SD card reader will not read SD cards
    Can you explain what you mean, please?

    I put t understand why you n t run factory if it s a software problem. I never had problems with the factory settings because then I can make you that all functions work properly on my laptop.

    Good bye

  • Satellite L655-149: recovery does not work with the new HARD drive

    Satellite L655-149

    PSK1JE

    Windows 7 Home Premium 64-bit (factory installed)

    Recovery of HARD drive on drive D (factory installed)

    My old toshiba (MK5065GSX) 500 GB hard drive became too noisy and slow so I plan to replace it with the new drive hard toshiba (MK5059GSXP) 500 GB.

    I created USB Flash HARD drive recovery.
    When the installation is complete and Setup installs devices an error "Windows Setup couldn't configure windows to run on a hardware on this computer.

    I've updated the bios
    I loaded by default in the bios
    I changed the SATA AHCI mode to compatibility IDLE

    assistance in this regard will be highly appreciated

    Set the BIOS to the default settings and try again.

    With the installation of recovery, there is a problem: either it works or not. If this isn't the case, bad luck and the only solution for you is to order original Toshiba recovery DVD on https://backupmedia.toshiba.eu/landing.aspx

    By the way: do you use that stick of recovery for the first time?

  • SEVERAL problems with the new X 34

    So, I have been active during the overclock.net forums concerning the many problems I am having with my X 34.

    Long story short, I'm back this thing to Newegg and waiting for another delivery. But I thought I'd come at least here because it has high liklihood to return to anyone who cares to Acer. I called their tech support to let them know about the issues, but when the old Indian robot for 2 years at the other end kept referring to as resolution of refresh rate, I decided that I couldn't take more.

    So I took delivery of the monitor yesterday and he initially worked well... but the longer he stayed, the more problems, he has developed.

    My system is one I built a year or two ago and works perfectly with my Dell 3008WFP. Video card is a brand new MSI 980 Ti Lightning. Operating system is Windows 10 x 64. Is a Corsair 750W POWER supply. 16 GB of DDR3 RAM.

    I even made a COMPLETELY new install of Windows 10 on this computer to try to resolve these problems. Did not work. I have disconnected/reconnected everything inside my computer, including RAM and GPU. Did not work.

    And Yes, G-sync is enabled in the NVCP. And Yes, I manually set the refresh rate in the NVCP in correlation with the manual settings on the monitor.

    Problem no. 1: Menu recording does not settings

    -Don't know what the problem is here. But for about 3 hours last night, my monitor would not save settings for serger refresh rate. I would go on the menu... allow the serger... Set it to 100 Hz... Select "Apply and restart. Then (here's the interesting thing I think in hindsight), the screen would flash many colors several times and restart. I assumed that flashing color was normal... but it was never the Predator Logo when it has been reset. The office is finally pointing upwards and I could choose 100 Hz in my NVCP... but when you returned from the settings menu, Overclock was Off back with the default refresh rate. I have nothing would fix it with the reset of the monitor and unplug. Later... I have unplugeed the monitor for 30 minutes and when I plugged it back in, it would save my overclock settings now. It is interesting, but now, when I selected "Apply and reset", he would show the Predator logo when restarting... this logo did not appear before.

    Problem #2: Flashing screen

    -See a video of this question HERE

    -This developed before my eyes. After the initial installation of the monitor, it worked fine. Without no flicker, no problems. But as I was sitting at the dinner table last night, I started to see the monitor flashing intermittently in the other room. I look at the screen, he flickered about 4 or 5 times per minute. For the next hour, he progressed to 30 - 40 times per minute. And subsequently developed in constant blinking. BUT this flicker only happens when I go to the Office at 100 Hz. It happens sometimes in games, but not constant.

    I first thought that I had a bad cable of DP since I used one from Amazon, if I swapped it for the Acer cable included. Nope... same problem. I even inserted my previous EVGA 780 TI... but the flicker that happens too.

    Then, I thought it was a driver problem, I did a clean install of the nVdiia previous drivers. Nope. Then a cleaning installed latest drivers from nVidia WHQL. Nope.

    Then I saw here that you can download the drivers for the monitor directly from Acer. So, I did a guy like an unsigned driver installation. Nope.

    After all this, the problem persists.

    Strange thing about this one is that there was when I first got the monitor but got progressively worse since I got it.

    Another weird thing is that if I have a window open, then it isn't twinkle... reduce the window, and he comes back. It's actually what made me think, it was a driver issue, but as you can see above, I think that I have ruled that that fully.

    Also, if I set my refresh rate to 95Hz or below, the problem occurs. (This is actually how I currently work).

    -UPDATE: the issue has actually started just after executing i1Profiler to calibrate the screen several times back to back. I can't imagine how, but could the rapid exchange of multiple colors full screen damaged electronics somehow? Or is it just a weird coincidence?

    -UPDATED #2: it was suggested that ADC can cause the problem as it caused problems with the previous Acer monitors. So I completely deleted i1Profiler and reset my default .icc profile. I also think that I figured out how to do a monitor factory reset - if you hold the buttons first and fifth, restarting the screen and all the default settings. in any case, does too and the blinking persists...

    #3 problem: Backlight horrible bleeding

    I have to type anything here? Leave some pictures to speak for themselves...

    Trouble #4: Parts of the screen does not not on

    It has been described elsewhere, so I won't detail it here. But yes, I have the same problem. Here is a representative of my monitor picture when the issue arose.

    Overall, I am extremely disappointed, although I can't say I'm surprised. I mean, we deal with Acer here guys... Not exactly known for the high-end products. You can put the red lipstick on a pig...

    So is there more any idea or suggestion out there?

    Until then... I'll wait for my new X 34 excerpt here from Newegg to see if I won the lottery of Acer he...

    I created this post to be a "accepted solution" to this thread with the purpose to help other users who need to find the answers. This should help to find this information faster than to have to go almost 800 posts to find pieces of information.

    Wake up from sleep (backlight) - initial response and follow-up

    Problems with Overclocking at 100 hz - original response

    Coil - Whine Original response

    Color banding - users in Australia reported the problem. The teams in the region to THE have been notified and a firmware is available.

    -Scanning lines Original response

    Thank you
    Cory

  • When I try to change the hardware acceleration, I get a message that says "the new settings could not be saved in the registry."

    I tried to play Solitaire on my Dell computer and I get the message to turn on my hardware acceleration.  When I do that, I get the message, "the new settings could not be saved to the registry.  Help!  I have Windows Vista 32-bit Home.  I even installed a new video card driver.

    Hi PennyKnight

    1. What is the number of the model of Dell computer?
    2. you download and install the latest driver on the manufacturer's Web site?

    Method 1:

    I suggest you to use the services of troubleshooting and to check if these help solve problems-

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-display-quality-Troubleshooter

    Method 2:

    You can check if there are errors for the display device in Device Manager. Please refer to the below steps.
    a. open the Device Manager by clicking the Start button, click on the Control Panel, clicking system and Maintenance, and then clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    b b.. in Device Manager, look for the device and then right click on the name of the device and go to properties.
    c. now on the general tab, check the status of the device. Let us know the status of the device. Also you can inform an error code with the State.

    I hope this helps.

Maybe you are looking for

  • How (really) to stop the tabs from loading at startup until the user clicks.

    I googled. I have read so many answers and tried them all. Browser.sessionstore.Restore *.Browser.Tabs.Load *. None of the related responses actually prevents firefox from loading tabs (home | homepage |) Home page) at startup. Then please. As I was

  • Airport Express works with iPod Hifi?

    I have iPod Hifi and I would like to buy Airport Express to make them wireless and play the songs of Mac and iPhone. Would this work? What else do I need? Also the wifi extending functionality would work fine too? Thank you for your time.

  • Very rapid battery discharge on Satellite M70

    Hello I have a Toshiba Satellite M70 with a battery that discharges completely empty in 20 minutes.Y at - it a program to clean the battery since its 'memory' I know that these things exist for normal batterys, but it is also possible for laptop batt

  • Assign keys in labview 8.5

    I need to assign a value to a Boolean switch key in LabVIEW 8.5. I found the sub menu of navigation key, but don't want to use the keys listed. Can I assign any key on the keyboard and if so, how?

  • Keep to withdraw safely hardware popup

    Original title: remove the device icon Hi, my safely remove hardware icon keeps flashin and and I have nothing connected to my USB ports that must be deleted.  I have tried everything to make him stop and I can't.  Is there something that can be done