simple script, does not. Help, please!

Hi all

I wrote a simple script to take the active layer in the current document, copy, paste in all open documents, and set the 'Color Dodge' blend mode:

var docRef = activeDocument;
var layerRef = docRef.activeLayer;
var Sindocs = documents.length;

layerRef.copy ();


for (i = 0; i < = Sindocs-1; i ++)
{

activeDocument = documents [i];
activeDocument.paste ();
activeDocument.activeLayer.blendMode.COLORDODGE;

}

the script works, except for the change in merge mode. I tried to split the single command into components (for example, assign activeDocument.activeLayer to a temporary variable, then setting the blendMode on this variable). I guess I'm missing something stupid and simple, since this is my first Java script.  Any help would be appreciated!

Oh, I use CS2 under WinXP.

Thanks again,

EPH

You can try this...

var docRef = activeDocument;
var Sindocs = documents.length;
docRef.selection.selectAll ();
docRef.selection.copy ();

for (var i = 0; i)< ndocs;="">
activeDocument = documents [i];
activeDocument.paste ();
activeDocument.activeLayer.blendMode = BlendMode.COLORDODGE;
}

Tags: Photoshop

Similar Questions

  • width of 100% does not, help please?

    page_design_problem.jpg

    I hope that this picture will help to show the problem I have, I will paste the code I up this just in case it is not readable in the picture also.

    I'm working in Dreamweaver CM³ (updates) on a 64-bit Windows 7 platform.  I built a dozen web sites in dreamweaver, so I'm not an expert, but I'm not either totally distraught.  I did what I'm trying to do on other sites, I'm completely stumped on what I'm doing wrong here.  Any help is appreciated!

    So, it's the intro!  Here's what I'm trying to do:

    I want three background divs that are stacked on each other, with three of them covering 100% of the screen, regardless of the size of the screen (have not implemented for media queries yet go smaller, right now just trying to put it so circles fill all the screen sizes)

    If the top bar is the Tan, then the central bar is dark brown, and the lower bar is yellowish.  At the beginning I did not apply any width of 'body', but I tried to set it to 100% as well.  Each of the three background divs have been added then, and all three were set at 100%, with an image in the background (for texture and color) set to repeat everywhere.

    No matter what I try, the three bars appear to have a limit of about 740 pixels width.  It is not a setting I've ever created, and I started the page as an html page empty - not any model.  I can't find which requires this setting width on these items.

    Here's the weird thing... it really works on a big screen - the bars go all the way through... it's on small screens (my test of fifteen inches, my iphone, the ipad screen monitor) that the background is not going anywhere!

    The image in the header (all images are just an image) is 1280 pixels.

    I'm sure someone will point me to something that makes me slap my forehead in total embarrassment, but I would gladly take the humiliation of being able to move forward on this project!  Help?

    Thank you

    Michelle

    I did something like this for a client project (view source to see the code):

    http://ALT-Web.com/test/LHS-test.html

    Nancy O.

  • simple script does not

    Hi all.. I wrote a little script in/export/home/oracle/script as...

    CD/u01/app/oracle/diag/rdbms/grid5/cdump
    RM *.txt
    echo itisrunning.c

    in the above path, there are kash.txt and files abc.txt

    the crontab entry is

    01 * * * * . /export/home/Oracle/script/clrdmp.sh

    but it is not executed. Please indicate any change in syntax.
    When I lance./clrdmp.sh it deletes the files successfully.
    Thanks in advance

    Hello

    Look what I did

    1. create the script clrdmp.sh (of course with the vi)
    2. change and enter bInvite in the fact that in the
    rm - rf /u01/app/oracle/diag/rdbms/grid5/cdump/*.txt
    3 save it (with Esc +: + wq_ as do us to save the file under linux)
    4. then schedule it as follows
    (A) crontab e
    (B) file opens in enter the following
    /export/home/Oracle/script/clrdmp.sh (c course this user orcle as cdump is created by the oracle user)
    5 or you can change the crontab e

    rm - rf /u01/app/oracle/diag/rdbms/grid5/cdump/*.txt

    It of the easiest way, try this I did on my machine, assuming you gave all permissions to this file... :-)

    Thanks and greetings
    VD

    Published by: dixit on August 20, 2009 23:33

    Published by: dixit on August 20, 2009 23:44

  • Wireless does not HELP Please

    Just today my wireless worked perfectly no problems at all. And then I'll be back from College 4 hours later and it seems not to work more, I called cisco and they want to charge me to fix it, and I don't have the money for it. I tried reseting the router (by pressing the small button with a paperclip for 30 seconds). And I also unplugged and plugged back in and still nothing. I called my internet provider and my modem works fine (im actually writing this with my laptop plugged directly on the Ethernet modem).  Could you guys help out me? exams are coming and I can't continue to take turns using the internet with other people in my house, and I can't continue to go to the library to study and do homework. Thank you, you have no idea how grateful ill be if this is resolved btw, I have a cisco linksys E2500 series wireless router

    If you have an extra ethernet cable, you can reconfigure the router manually. For step by step instructions you can check homesupport.cisco.com. You can also download this Web site configuration wizard.

  • Comparison of simple table does not. Help, please!

    I struggled with this problem for a few days now, and I'm slowly losing my mind.

    • I am in Adobe Acrobat 10.
    • I have a field called button group: btn0, btn1, btn2, etc..
    • I have a band called text fields: txt0, txt1 txt2, etc..
    • I have a script that takes the value of txt0 and makes the legend of btn0 and so on.
    • I have a script that sets the btn0 to setFocus txt0 MouseUp action, and so on.
    • These scripts work very well.
    • I have a script that takes values of all fields txt and sort puts them in a table.
    • I have a script that takes the array element [0] and makes the legend of btn0 and so on (alphabetical list of buttons).
    • These scripts work very well.
    • I am trying to compare the value of the array element [0] to each field txt to find the match, then set the action MouseUp btn0 to setFocus to the corresponding txt field, and so on (until my alphabetical list points to the correct location).
    • It is here where I am at a loss.

    Here's what I have:

    specified fields txt

    txt0 var = this.getField ("name of Z");

    txt1 var = this.getField ("name");

    etc.

    put their values in an array named rxArray

    var rxArray = [txt0.value, txt1.value]; etc.

    sort the table

    rxArray.sort ();

    Set the legends on the sorted array elements

    for (var i = 0; i < 5; i ++) {}

    var b = ("btn" + i);

    this.getField (b) .buttonSetCaption (rxArray [i]); works very well; sort by alphabetical order of the list of buttons

    Here is what goes wrong

    for (var x = 0; x < 5; x ++) {}

    var r = ("txt" + x);

    If (rxArray [i] == r.value) {}

    var s = (r + ' ". setFocus();" ');

    this.getField (b) .setAction ("MouseUp", s);

    }

    }

    }

    end

    Here's what I know:

    Alphabetical order and labeling works very well, but the MouseUp scripts to buttons work at all. Nothing happens.

    If I change the piece next to the above script:

    If (rxArray [i] == r.value) {}

    var s = (r + ' ". setFocus();" ');

    this.getField (b) .setAction ("MouseUp", s);

    To do this:

    If (rxArray [i] == txt1.value) {}

    var s = (r + ' ". setFocus();" ');

    this.getField (b) .setAction ("MouseUp", s);

    Because rxArray [0] is equal to the value of txt1 ("name"), then the MouseUp script for btn0 Gets the value:

    Txt4.SetFocus ();

    So I know that, whenever the nested loop runs, the case statement is true, and the setFocus script updated. Until the end of the loop, leaving the setFocus as last run element. Then why my script does not work? It should only update the setFocus script IF the array element matches the txt field and it is on THIS field of txt.

    Please please help. I know I'm missing something simple somewhere.

    I don't see why you would need tables at all... For example, sortNumber.

    You can essentially all this code replace it with this:

    for (var x = 0; x)< 5;="" x++)="">

    var t = this.getField ("t" + x); the text field

    var b = this.getField ("btn" + x); the button

    b.buttonSetCaption (t.value);

    var s = "this.getField('"+_t.name_+"').setFocus()";

    b.setAction ("MouseUp", s);

    }

    It is the same for the rest of your code as well.

    With respect to the addNew function, you must add a pause command inside the if statement to prevent continue further after the first empty field has been found.

  • my audio does not work please help

    my audio does not work please help. Thank you!

    Hi no thanks,

    1. What is the brand and model of your system and sound card?

    2. when the problem started?

    3. did you of recent changes to the computer?

    You can try to run the sound troubleshooter and see if it helps.

    No sound in Windows

    For more information, you can also consult the following article:

    Tips for solving common audio problems

    Hope this information is useful.

  • Hi my audio - pc does not work please help me

    Hi my audio - pc does not work please help me

    Uninstall the driver, reboot the system. The attempt to install the same driver for Windows Vista using Windows troubleshooting. Make a right click on the file executable/installer driver-> properties and select the Compatibility tab. Click on the box to check run this program in compatibility mode for option and select Windows Vista from the drop-down list. then try to install the device driver using run as administrator.

    Resources:

    If your computer has problems play a sound, try using the Audio playback problems resolution to solve the problem. For measures and additional information, see o ink below.

    Open the troubleshooting of Audio playback

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-troubleshooterOpen

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx?type=hardware

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    In Windows 7

    Click Start > Control Panel

    Click on hardware and sound

    Under sound, click on manage audio devices

    Under playback (tab)

    Choose speakers you have in your output device

    Click Properties >

    Click levels (tab)

    check if the value is 100% >

    GoTo Enhancments > select Loudness balancing

    Apply and OK

    Should be much stronger now...

    For enhancment bit,.

    and if you have HD realtek soundmanager (R2.37) in your control panel

    Try a classic Equalizer setting

  • WARNING the script does not have anyone can help on this?

    I get this warning whe script does not try to use firefox.

    I get sound on my computer laptop windows vists home premum.

    Hello

    I suggest that you try the Firefox Forums for assistance.

    http://forums.mozillazine.org/index.php?c=4

    See you soon.

  • Computer HP laptop window vista does not load please help

    someone asked this question and I have the same problem!

    I have a laptop HP who have dirtied pre-installed Vista and for some reason after installing automatically 3 updates the other day, he is not now charge up. The laptop is plugged in so it can configure 3 updates without failure (due to something like battery dying).

    When the laptop turns on, it gives me two options:
    • Start the reboot system (recommended)
    • Start Windows normally
    If I click on 'Launch Startup Repair', he comes back to do the same screen with them two options and when I click on "Start Windows normally", the laptop everything restarts and then return to this screen.
    Thus, F8-ing it does not help either - it gives me options like computer repair, Mode safe mode, last known good, etc... but none of these helped either.
    I looked around online for a solution, but most say on the use of the Vista installation CD, but the operating system is installed on a partition on the laptop (also there are files on what I would come down)... However I do not know if I can get it to boot on the installation partition either
    I tried F8, F11, F12 and nothing works

    If the system or Mode restore safe work not and you do not have a Microsoft Vista DVD, make a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Data recovery:

    1. slave of your hard drive in another computer and read/save your data out there.

    2. put your Hard drive in a USB hard drive case, plug it into another computer and read/save from there.

    3 Alternatively, use Knoppix Live CD to recover data:

    http://www.Knopper.NET/Knoppix/index-en.html

    Download/save the file Knoppix Live CD ISO above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://isorecorder.alexfeinman.com/isorecorder.htm

    Download the Vista software from the link above.

    After installing above ISO burning software, right click on the Knoppix ISO file > copy the Image to a CD.

    Knoppix is not installed on your PC; use only the resources of your PC, RAM, graphics etc.

    Change the boot order in YOUR computer/laptop to the CD/DVD Drive 1st in the boot order.

    Plug a Flash Drive/Memory Stick, BOOT with the Live CD, and you should be able to read the hard drive.

    When the desktop loads, you will see at least two drive hard icons on the desktop (one for your hard drive) and one for the USB key.

    Click on the icons of hard drive to open and to understand which drive is which.

    Click the icon for the USB drive and click on "Actions > Change the read/write mode" so you can write to disk (it is read-only by default for security reasons).

    Now to find the files you want to back up, just drag and drop them on the USB. When you're done, shut down the system and remove the USB key.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    See you soon.

    Mick Murphy - Microsoft partner

  • Why do I get a message from Script does not

    Whenever I turn on my computer and go on the internet (Firefox), I get a message from script does not always.  I always click the stop script.  For up to about half an hour, the computer is very slow and sometimes does not.  After about half an hour, the computer starts more smoothly.

    The complete message, I just had was: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script ends.

    Script: chrome://divxhtml5/content/script.js:6

    I use norton 360 and Malwarebytes anti-malware to scan my computer for viruses and also auslogics disk defrag every week.  I also use Windows Vista, which he said can cause some problems.

    I spoke to a staff member of my internet provider who told me it was a simple problem to solve, but they could not advise me on how to do it.

    Thanks for any help.

    Hi johne278,

    Thanks for posting in the Microsoft Community.

    Please answer the question-

    This problem occur on Internet Explorer as well?

    Method-

    If the problem is specific to Firefox, so I'd like you to contact the Support of Mozilla Firefox and post a question the Mozilla Forums as well.

    We know if you need help. We will be happy to help you.

    Thank you.

  • If the State shows red and javascript script does not

    I am just learning Javascript and I can't believe, I have problems with that simple statement, but alas I am.

    Any help would be appreciated.

    The script is a script of learning:

    JavaScript document

    var crust = prompt ("what kind of crust do you want - thin or regular?'");

    If (== crust "thin"). (crust is 'regular')) {

    var cheese is prompt ("choose your cheese?");.

    {Switch (Cheese)}

    case "mozarella":

    case 'feta ':

    "parmesan" case

    case "cheddar":

    break;

    by default:

    Alert ("sorry we not that kind of cheese.");

    break;

    }

    } else {}

    Alert ("sorry we don't serve that kind of crust here.'");

    }

    Line no 4 and 19 shows red and the script does not run.  Help, please.  I created a similar script with numbers and it works fine but as soon as I put channels in I get errors.

    I tried to rewrite these lines so many times in so many different ways.

    I use Dreamweaver CC 2015, I Am studying an old version of Javascript?

    Any help would be appreciated.

    Thank you

    Try to run your code through this online validation tool.

    JavaScript - http://www.jslint.com/



    Nancy O.

  • I have a laptop hp envy dv7 - 3723cl, the simple pass does not work

    My simple pass does not work. I have check the biometric device, the software is up-to-date, and it gives me an error code 19.

    On my installed programs I do not see the simple pass program is no longer.  How can I get the correct software to reinstall?

    Help, please

    Hi @GStefanakis ,

    Welcome to the HP Forums!

    It's a great place to find answers and information!

    You have the best experience in the HP forum, I would like to draw your attention to the Guide of the HP Forums Learn how Post and more

    I was unable to locate specific information about a desire dv7 - 3723 cl.

    How can I find my model number or product number?

    Here is a link on technet.microsoft.com that can help.   Code 19: Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged

    You can try a system restore to a date well known.  Using Microsoft System Restore (Windows 8)

    If the above did not help, I uninstall and reinstall the software Simplepass.  Using the Recovery Manager to restore the software and drivers (Windows 8)

    I hope this helps!

  • action script does not work even when I copy and paste good sites! Why?

    Hello, I'm fozb studios. I would like to start making games. I can not because when I try to follow the examples I have a lot of mistakes (I even copy and paste the code so I know its not just me.) I'm good enough to understand what the tutorials say to me but when I test the examples of anything. I mainly use develop php (http://www.developphp.com/), they seem credible but I have used other sites to be sure, and the same thing happens. What I am doing wrong? Is this a setting? What is my Flash copy corrupt? If you could please try the tutorials develop php it would be great. If I provide my mistakes for a specific example that would be easy.

    Thanks for your help,

    Director fozb

    In fact, what you should do first, just to verify that your installation of Flash works properly, is to download the source files for one of the tutorials at gotoandlearn.com, open the fla file in Flash and run the file.  Just trying to get a simple that does not involve several files to run.

  • Calculation of shape simple pdf does not

    I'm new to pdf forms and I'm having trouble with a simple calculation.

    The following script does not work for me:

    var cubicft = this.getField ("cubicft");
    var temprise = this.getField ("temprise");

    Event.Value = (cubicft * 0,133) * temprise;


    I used "value is the sum," the following fields option, by selecting 'cubicft' and 'temprise' and he adds fines. However, when I try a custom calculation script, nothing happens!

    Please notify. Thank you for taking the time to read this post.

    The problem is with the type of quotes you use.

    You must use the standard single or double-quotes. You can copy from here:

    Quotes -"

    Apostrophe -"

  • Describe in SQL script does not work as you wish

    Hello

    Could you please help me determine why this script does not work.
    He said that the date is not set.

    Thanks in advance


    set p_day_sh = & data_sh
    set p_rowid_sh = & rowid_sh
    declare
    date of p_day_sh;
    p_rowid_sh varchar2 (18);
    Start

    If & p_day_sh is not null then
    trains t update
    Set t.offdate = to_date ('& p_day_sh ',' DD-MM-YYYY HH24:MI:SS')
    where t.rowid = '& p_rowid_sh';
    commit;
    end if;
    end;

    Hello

    In a command SET, if the string to the right of the = sign contains spaces, then it must be in quotes: in the case otherwise, only the first group of characters, white space will be affected.
    For example:

    define p_day_sh = &data_sh
    

    If & data_sh has this value:

    11-06-2009 06:25:09
    

    then the DEFINE command is

    define p_day_sh = 11-06-2009 06:25:09
    

    and & p_day_sh Gets the value of the part to the workspace:

    11-06-2009
    

    Either eliminate the space, Alex has proposed, or place the chain on the right side of the sign = in double - quote:

    define p_day_sh = "&data_sh"
    

    The double quotes will not change the meaning if & data_sh contains no white space.

Maybe you are looking for

  • HP Envy x 360: DIN Wireless: hard to prioritize the sound output

    I bought a pair of headphones Skullcandy tumult wireless on sale today, but have had trouble having sound output for more than a few seconds, here are the details of the situation:> the pair of succesffully wireless headset with my system via the Blu

  • Mac Mini Server does not start

    Boots with no start-up of the chime for the Apple logo and a spinning wheel.  Have you tried Cmd + R, but nothing happens.  Help!

  • Not able to connect to Wifi, USB ports, bluetooth

    Hello team I bought the new HP laptop today. I have installed Windows 7 OS. I am not able to connect to Wifi, not be able to use the blue tooth, not be connected to the USB. I downloaded the drivers from the website of the other computer. But how can

  • change of length of hypertrend with entry button or numric

    I would like to change the 'trendwith' with a push button or enter a numric value in "trend.with". When I try this, I get a message that "the remote posistion is not witable. Versions 6.0.1 and 6.0.2.  No networked systems.

  • Desktop icons and directory programs are not running

    I received the following response to my question.  The problem I asked, however, prevented me from running even the first recommendation. Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to tryDifficulty