My Script works exactly half of the elements group I want to act, not sure exactly why.

var app.activeDocument = docRef;

selectedObjects var = docRef.selection;

If (selectedObjects.length > 1) {}

for (i = 0; i < selectedObjects.length; i ++) {}

thisItem var = selectedObjects [i];

thisItem.name = "RunPrep";

}

}

for (i = 0; i < docRef.groupItems.length; i ++) {}

var thisItem1 = docRef.groupItems [i];

If (thisItem1.name == "RunPrep") {}

var Layer2Move = docRef.layers.add ();

Layer2Move.name = ' Temp Layer. "

var Layer2Move = docRef.layers.getByName ("Temp layer");

thisItem1.moveToEnd (Layer2Move);

var docRef.layers = otherLayer [1];

otherLayer.locked = true;

app.doScript ('PRÉPARATION', 'MS ACTIONS');

var shit = docRef.selection [0];

poop. Name = "Prep was performed;

otherLayer.locked = false;

poop.moveToEnd (otherLayer);

Layer2Move.Remove ();

}

}

Here is what is happening. My script will run an action prep. basically, the preparatory action flattens the work. I'm doing the action of preparation on each design I chose individually so that it not all get grouped. It works exactly how I want it--exactly half of the selected objects no matter how I chose (or half + 1 if it is an odd number).  Not sure why it works for half haha but I'm on track other than that. If anyone has an idea why this is happening, please let me know. Thanks in advance!

Because the index changes as you work. Try starting with something like

for (i = docRef.groupItems.length - 1; i-online 0;  i-)

which goes backward through the index and does not change the original array.

Tags: Illustrator

Similar Questions

  • Why is photoshop elements &amp; first work only half of the elements

    my computer crashed in the early Oct:2015, was to get everything fixed again... now when I reinstalled those apps, photoshop elements will work only at halfway, no at all guided edit mode and the first does not open... [Anne] in the cat tells me they are active?

    Uninstall and try to install from here:

    Download first Elements | 10, 12, 14, 11, 13

    Download Photoshop Elements | 10, 12, 14, 11, 13

  • Windows easy transfer will not work. I get the message: "migwiz.exe - point of entry not found. How can I fix it?

    Windows easy transfer will not work.  I get the message: "migwiz.exe - point of entry not found.  How can I fix it?

    Hi PTTimothy

    1. what operating system is installed on the computer?

    2. you are the administrator of the computer?

    I suggest you to check and to provide us with the information about the installed operating system.

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Step 1:

    You can open the administrator and verify if you can open Windows Easy Transfer correctly.

    You can even check if you face the same question in the user account different or new user account.  You can create a new user account on your computer, and then check.

    Create a new user account-
    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    Step 2:

    An analysis of the SFC and audit-
    a. click Start, click programs, on Accessoriesprincipally made, right click guestand then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click Allow
    b. type the following command and press ENTER:
    sfc/scannow
    A message appears indicating that "the system scan will start. Be patient because the scan can take some time.
    c. If all files require a SFC replace will replace them. You may be asked to insert your Win7 DVD for this process to continue.
    d. If everything is correct you should, after the scan, see the following message "resource protection Windows not found any breach of integrity".
    e. once the scan is finished, close the command prompt window, restart the computer and check.

    Check the link below for further guidance on scan SFC - mentioned
    http://support.Microsoft.com/kb/929833

    I hope this helps.

  • I ran the upgrade wizard. I'm still not sure what it means

    Hello

    Preamble: I'm not tech savvy, please he dumb down for me.

    I ran the upgrade wizard and I'm still not sure if the upgrade is a good idea. I need to know whether or not it is compatible before moving with her.

    I have a Dell Inspiron 1525, running Windows Vista.

    Some issues that came:

    Install an application to play DVDs, Sidebar gadgets are not supported, secure boot is not compatible, your screen resolution is not compatible.

    I checked my screen and higher resolution, it goes up to is 1280 X 800. I tried to watch promotional videos for Windows 8, but the video does not work yet. The color was off, the sound was very good.

    What does that mean? Windows still work? What should I do to make sure that I can still do normal things?

    I do not know. You will need to check with the Upgrade Wizard of Windows 7, then check the manufacturer's website.

    My old Vista was not able to upgrade to Windows 7 (Toshiba).

    Upgrade Advisor advised me to some questions, and then I went to the Toshiba site and was informed any way uncertain "not compatible".

    If you want to switch from Vista to Windows 7 - check

    http://Windows.Microsoft.com/en-AU/Windows/downloads/Upgrade-Advisor

    Visit the site of the manufacturer for more information.

  • Im trying to put up my PS3 network and I need the PPPoE username and password, but Im not sure where to find it?

    Name of user and password PPPoE

    Hey Im trying to set up my PS3 network and I need the PPPoE username and password, but Im not sure where to find it?

    You'll support group of your phone provider or to use any method of contact that they provide. That username and passowrd come from them.

    Tom Ferguson

  • During the typing of text after paragraph 4, the text jumps the same block of text there. Not sure if it's because of a page break. Help, please

    During the typing of text after paragraph 4, the text jumps the same block of text there. Not sure if it's because of a page break. Help, please

    And make sure that you do not use the Enter key on the numeric keypad.

  • I have Photoshop CS3 and copied photos in. NEF (RAW) format to the computer (Windows 7), but they did not open. WHY?

    I have Photoshop CS3 and copied photos in. NEF (RAW) format to the computer (Windows 7), but they did not open. WHY?

    Then CS3 with ACR 4.6 is (at best) naturally obsolete as ACR 8.6 is necessary.

  • full screen YouTube works on half of the screen

    When it is on youtube, safari 9.0.2 on my brand-new early 2015 macbook proand I select full screen on a video, expected load black screen but then the video loads in only half of the screen.

    There is a temporary fix, it must change the quality to any other quality video and then back again, but this must be done each time full screen is enabled and has a little lag.

    Anyone know a permanent fix or knows if apple are working on it.

    This does not occur with firefox, so I guess there is a problem with safari, not my mac or youtube

    Credit: User Avatar_Kevin

    https://discussions.Apple.com/thread/7371819?TSTART=0

  • problem with the work only half of the extended keyboard

    have had 2 keyboards with the same problem. They both lost the use of the middle of the keyboard section.

    I would like to test the 2 keyboard in another computer, it doesn't have to be a mac, that a windows box works very well with the mac keyboard

  • The use of JavaScript in the Flash script and createJS, trouble, referencing the element on the stage

    Hello

    Relatively new to JavaScript, so don't know if it's too complicated to remove in the Flash timeline. I have a question on the stage with the name of the instance "myBox". I'm trying to take it to the coordinate x of a touch on the iPad. The JS looks like this

    / * js

    document.addEventListener ('touchmove', Function {}

    Event.preventDefault ();

    touch var = e.touches [0];

    this.myBox.x = touch.pageX;

    (}, false);

    */

    Is it possible to "myBox" from inside the function of reference? this.myBox does not work when I publish Toolbox for createJS. I am able to get the coordinate x of the key event when I try to alert (touch.pageX);

    Thanks for the help!

    you lose the scope of this function.  Try:

    / * js

    function moveBox (obj) {}

    obj.x = 600;

    }

    moveBox (this.myBox);

    */

    or, more generally, you can pass a reference to "this":

    / * js

    var tl = this;

    function moveBox (obj) {}

    obj.myBox.x = 600;

    }

    moveBox (tl);

    */

    p.s. Please check the useful/correct.

  • More than half of the albums on my new e260 are not displayed

    Hi - I just bought a v2 e260.   I have an e250 v1 that I had planned to give to my sister once I transferred all my music and podcasts.

    I transferred a bunch of albums by 8 artists, as well as podcasts, the e250, and only 3 artists (most all the podcasts) appear on the e260.  Missing music does in Albums, Genres or songs either.

    I know they're there, because I can see all the files when I look at the Sansa e260\Music folder in Windows Explorer.

    Everything has good ID tags - e250 I see all my music - artists, Albums, Genres and songs.

    I deleted everything, updated the firmware and copied all the files on the e260, but exactly the same thing happened.

    I hope someone can help because it's very annoying.

    Thank you.

    OK - I have solved my problem.

    After looking around these forums, and the other thing that the iPod one, I thought it might have something to do with USB mode.   By default, it had been at PSG, but the e250 was in MSC.

    So I deleted all of the e260, put it in MSC mode and copied all songs/podcasts vice versa.

    When I turned it back on, everything appear.

    Very happy now.

    However, I still can't understand why - in MTP mode - songs showed, but more than half did not.   I can't see the logic, and it's frustrating.

  • the element designated by this shortcut is not available you don't have appropriate permissions

    We have AD server win2k12 64 bit also configure GPOS and client side, we use hspace N-computing server with Windows 7 64 bit. We have set up folder redirection policy.

    Until a few days back everything was going well and beginning user a domain problem suddenly facing not having access to the drive because of which it is unable to access his application called Tally ERP 9... and it will be solved if we restart the ad server and then n computer server... Troubleshooting we tried to delete his user ID and the creation of new user but still facing same problem. but not every day before yesterday he faced yesterday today again face the problm... hey someone has idea pls help

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • SHAREit worked before, but since the last update of what YOGA can not find every laptop

    Hello

    I used SHAREit twice with good results (may 2015)

    I tried to use it in early August and earlier, n the YOGA 2 1380 pro cannot find the laptop more although they are 20 cm from each other.

    Version of Windows is different from Android. I already uninstalled the Windows version to a newer version without result.

    And another Member, I just tried to help her by suggesting ShareIt also cannot establish the connection.

    And I see no option to ignore updates.

    All solutions?

    Thank you

    Hello

    I just tested the new version, go to/from my YOGA 2 1380F pro, my A520 AIO, and there is no problem.

    SHAREit A520 AIO, window 8.1, version 2.5.1.1 (SHAREit Info)

    YOGA 1380F pro 2, Android Kitkat, SHAREit Version 2.8.8_WW

    One thing to check is if the WiFi Yoga tape is set to Auto (both bands), or at least updated the corresponding band of the PC.

    IIRC, the PC needs to be connected to any wireless network, although the WiFi it must be turned on and not in airplane mode.

    After an update, you may need to re-pair connection of old/exsiting, by making that stupid 'number' correspondence between the two devices.

    In addition, on the PC, there should be an Easyplus Hotspot Lenovo, showing in monitor resources on the 'networks' tab.

    See you soon

    DragonRider

  • Some web sites give the error "TypeError: PlacesUtils.bookmarks.getKeywordForURI is not a function"-why?

    This problem has just begun for some pages. I was not able to choose a model. Any help to fix this would be appreciated.

    Thanks in advance

    Philipp said

    Hello, you can try to reproduce this behavior when you start firefox in safe mode, once? If not, perhaps an addon intrudes here...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

    Thanks philipp,.

    I found the problem was with the: -.

    • ' Places' Tooltips 3.0.20110409.1 - signed "addon

    There was a solution posted on 6 July 2015 on the web page of the addon 'https://addons.mozilla.org/en-US/firefox/addon/places-tooltips/' as follows: -.

    • Works in Firefox 39 if you disable keywords, click the options in the Add-ons page and uncheck 'Show the keyword'.
  • During the DB cloning he had restored but not recovered. Why?

    Hi the gods s/n,.

    Today, I was a DB (Oracle 10.2.0.5) cloning of the 1 TB tape backup using RMAN scripts. After seeing the logs the error below were found

    Oracle error:

    ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error

    ORA-01194: file 1 needs a recovery more match

    ORA-01110: data file 1: '+ DAT/DBclone/datafile/system.570.89078373624 '.

    output channel: ch01

    output channel: ch02

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of Db in dual at 11/05/2014 13:16:29

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06053: unable to perform the recovery of the media because of the missing journal

    RMAN-06025: no log of the thread 2 seq 22338 lowscn found 12017428115838 backup to restore

    RMAN-06025: no thread 1 seq 22554 lowscn found 12017428115841 log backup to restore

    According to the newspapers, the DB is restored but could not be recovered due to the error above. Any solution?

    Hey guys good news.

    I found the solution in the Oracle Doc ID 360962.1 . I did the below steps away from the doc and was able to successfully clone the DB.

    First take the RCS not. Since the previous log of clone missed of the DB.

    Now, you need to define new name for the data file and that can be taken of the previous log.

    run

    {

    until the SNA 12017428115841.

    the value of newname for datafile 1 to "+ dat ';

    the value of newname for datafile 2 to "+ dat ';

    the value of newname for datafile 3 to "+ dat ';

    the value of newname for datafile 4 to "+ dat ';

    the value of newname for datafile 5 to "+ dat ';

    the value of newname for datafile 6 to "+ dat ';

    the value of newname for datafile 7 to "+ dat ';

    the value of newname for datafile 8 to "+ dat ';

    the value of newname for datafile 9 to "+ dat ';

    the value of newname for datafile 10 to "+ dat ';

    the value of newname for datafile 11 in "+ dat ';

    the value of newname for datafile 12 to "+ dat ';

    the value of newname for datafile 13 to "+ dat ';

    the value of newname for datafile 14 to "+ dat ';

    the value of newname for datafile 15 to "+ dat ';

    the value of newname for datafile 16 to "+ dat ';

    the value of newname for datafile 17 to "+ dat ';

    the value of newname for datafile 18 to "+ dat ';

    the value of newname for datafile 19 to "+ dat ';

    the value of newname for datafile 20 to "+ dat ';

    the value of newname for datafile 21 to "+ dat ';

    the value of newname for datafile 22 to "+ dat ';

    the value of newname for datafile 23 to "+ dat ';

    the value of newname for datafile 24 to "+ dat ';

    the value of newname for datafile 25 to "+ dat ';

    assign the type of switch auxiliary ch01 SBT PARMS 'BLKSIZE = 1048576' MAXOPENFILES 1;

    assign the type of switch auxiliary ch02 SBT PARMS 'BLKSIZE = 1048576' MAXOPENFILES 1;

    SEND "NB_ORA_CLIENT = zeusrv priv, NB_ORA_POLICY = zeusbkpDB, NB_ORA_SERV = zeusappsvr priv, NB_ORA_SCHED = ZEUS;

    recover database from clone;

    }

    RMAN > alter database resetlogs clone open;

    Zeus > nest target = sys / *.

    DBNEWID - completed successfully.

    Zeus > sqlplus "virtue sysdba".

    SQL * more: version 10.2.0.5.0 - Production on Mon May 12 21:05:54-2014

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connect to an instance is idle.

    SQL > startup mount

    SQL > alter database open resetlogs;

    SQL > select status from v$ instance;

    STATUS

    ------------

    OPEN

    But even after my cloning had completed the above steps, I'm still confused that what did steps above is that cloned got DB and opened?

    Any detailed explanation for a beginner like me? It would be great that I'll learn new things in Oracle.

    Kind regards

    sweetritz (Ritu)

Maybe you are looking for

  • How to activate video mode 640 x 80 on Satego P200?

    Hi all an old game, I need the video mode 640 x 480 x 8. Unfortunately, I can not select the video mode using catalyst for Satego P200 with an ATI Mobility Radeon HD 2600. Is there a way to activate video mode? Michael

  • Qosmio F20-155: what is max CPU temperature?

    Hi all Anyone know the maximum temperature of the processor for F20 - 155?The temperature that cannot be exceeded. Kind regardsAkram

  • Reinstalled iMac, startup screen frozen

    Hello I bought the iMac to a friend of mine, who is 4 years old at this time. I have reinstalled on the Apple Store and just start the iMac. I configurered the WiFi and then I got on the page 'copy data from this Mac' where I selected the option I di

  • Trying to opening session c:windows\system32\lfass.exe is corrupt or unreadible error message

    When you try to log on to my DELL Dimension 3100 (Windows XP) I get an error message C:wINDOWS\SYSTEM32\LFASS.exe is corrupt or unreadible. Please run the Chkdsk utility. What I'm doing, some items suggest running the recovery disc but these models d

  • I have windows vista.

    I have windows vista. The taskbar and the right side of the start menu are still gray. I had problems with my computer and must have clicked on something and now they are white and gross looking. Nobody knows what I did and what I can do to get back