I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?

Hi Expert's
I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?
var ObjDoc = app.activeDocument;
var LstPara = ObjDoc.pages.everyItem().textFrames.everyItem().paragraphs.everyItem().getElements();
for(var c1=0;c1<LstPara.length;c1++)
     var par = LstPara[c1];
     $.writeln(par.contents.toString());
is there any specific reason for that? Please explain

To solve your issue, try the below code:
var ObjDoc = app.activeDocument;
var LstTxtFrame = ObjDoc.pages.everyItem().textFrames.everyItem().getElements();
for(var c1=LstTxtFrame.length-1;c1>=0;c1--)
    var LstPara = LstTxtFrame[c1].paragraphs.everyItem().getElements();
    for(var c2=0;c2<LstPara.length;c2++)
        var par = LstPara[c2];
        $.writeln(par.contents.toString());
I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?
is there any specific reason for that? Please explain
InDesign text frames will work in LIFO (Last in first out) method, i.e., the last created text frame will be treated as a first frame in for loop, hence try the above code.
Vandy

Similar Messages

  • TS3772 On my iphone 5 i have two iTunes ID, one is no longer in use, but keeps asking for a password which I no longer have, whilst the other is still being used. How do I delete the old ID?

    On my iphone 5 i have two iTunes ID, one is no longer in use, but keeps asking for a password which I no longer have, whilst the other is still being used. How do I delete the old ID?

    Hello steveod2
    The main thing to do is to sign out all services on your iPhone, like iCloud, iTunes & App Store, iMessage and FaceTIme. Check out the article below for more information.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Regards,
    -Norm G.

  • How do I fix syncing issues between my iTouch and iTunes? My iTouch shows I have two copies of one song but on iTunes it shows I have one copy. I only purchased one copy too so where did the second copy come from?

    Yesterday I purchased a few albums and CDs from iTunes to my iTouch. After charging my iTouch, I noticed some of the songs weren't there. So I checked my iTunes and they were still downloading so I synced them up to each other. For the 1st hour, there was only one copy of the song. Later on, when I hooked up my iTouch to see if my info corresponded to iTunes, I saw that there was additional copies of the same song on a few albums and some copies of individual songs. I didn't purchase them twice either. Now I have two copies on my iTouch but not my iTunes so I can't delete the additional copy.

    Right now, I tried deleting all of the music and resyncing it from my iTunes directly to my iTouch. Hopefully this will solve the problem.

  • In my class i am suppose to do a before and after shot, how do i have two photos on one page

    before and after shots..how do i put two photos on one page?? please help

    Good day!
    As Photoshop is not a page layout application but primarily image editing software the concept of "page" has limited relevance.
    Anyway, you could increase the canvas (Image > Canvas Size) and place the other image (File > Place …) or drag and drop it.
    Or create a new image and place both images. Whether doing so as Embedded or Linked Smart Objects makes more sense depends on your workflow, I guess.
    File > Automate > Contact Sheet II would be another option.
    Regards,
    Pfaffenbichler

  • I have two phones on one apple ID. After one updated yesterday on icloud it automatically took my contacts off and put the other ones on there. They still show up if I actually type them in when texting but not in the list.

    I have two phones on one apple ID. My son updated to icloud last night and when he did it took my contacs off of my phone and put his in there. When I go to text the numbers I can still find but when I click on the contacts they do not show. Is there a way to change this without restoring the last back up?

    You'll have to migrate one of the phones to a different account, then delete the other person's data from each account (you can continue to share the same Apple ID for purchasing from the iTunes and app stores). 
    Decide which iPhone will be keeping the current iCloud account.  On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll. 
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't from each account.

  • TS3367 I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling m

    I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling mine.

    Each device needs a separate address. Use an email address (gmail.com) on the iPad.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • Do I need a different apple id for each device? I have two iPads and an iPod but can only purchase things on the first one. When I go to verify the questions they say they are wrong.

    Do I need a different apple ID for each device I have? I have two iPads and an iPod but I can only make purchases with the first one I purchased. It tells me the security questions are wrong but I know they are not because I wrote them down. I have also reset them and my password once. Please help if you can

    You can not login into iTunes or the App Store using VPP credentials. You must purchase all apps/book/etc.  from the VPP website. Then you can redeem the codes thru itunes/app store or import the codes thru apple configurator. Here is the url for the VPP website: https://volume.itunes.apple.com/WebObjects/MZFinance.woa/wa/login?cc=us
    (It will not affect any of the apps you already have but the id can only be used for VPP.)
    Cheers,    
             Alec

  • I have two iPads and one is connected to the internet but my other iPad was connected then was not and since then I have not been able to add my internet back onto my iPad it only says cannot connect to the server any help would be great thanks

    I have two iPads and one is connected to the internet but my other iPad was connected then was not and since then I have not been able to add my internet back onto my iPad it only says cannot connect to the server any help would be great thanks

    If you are having WiFi problems it is necessary to isolate whether the problem is with your network or your iPad. Note: Do NOT consider your network to be blameless if some other devices can connect to it.
    First, test your iPad on some other WiFi networks: a friends, Starbucks, Barnes &amp; Noble, etc.
    If it works well there then the problem is probably with your network. Try restarting your WiFi router by removing power for 30 seconds. If that does not help check for a firmware update for your router. If none exists which corrects the problem consider replacing the router.
    If your iPad does not function well on other networks it possibly has a hardware problem. You could try Settings > General > Reset > Reset Network Settings to see if that corrects the problem. If not, contact Apple Support or visit an Apple store for evaluation. They can provide a replacement if your iPad is bad.
    If you need more help please give the make, model, and version of your WiFi router and how you have it configured.

  • I have two airport extremes, one acting as amodem and the other operating in bridge mode.  The extremes are connected using ethernet, but remain connected even when I disconnect the Cat5a cable. How do I know if they are operating wired or wirelessly

    I have two airport extremes, one acting as a modem and the other operating in bridge mode.  The extremes are connected using ethernet, but remain connected even when I disconnect the Cat5a cable (I did this to check that the 100 feet of Cat 5a cable connecting them was working). How do I find out if they are operating wired or wirelessly?  I want to know as I assume I will get much better speeds if they are wired.

    Hi Bob, many thanks for the prompt response.  I think I did what you suggested, but you're the expert so I have sent over a few screenshots.  The extreme in question is High Birches Home Office (the rest of the network has been in place and working well for some time).  My new home office is going to be in the garden, circa 100 feet from the main house.  I have installed armoured Cat5e cable down to the shed that is going to be adjacent to the home office once built and situated the High Birches Home Office Airport Extreme there temporarily.  Everything works well, so I was surprised when I unplugged the ethernet, that it still worked.  I also tested the ethernet cable by switching off my laptop's wifi and unplugging the cable from the airport extreme and directly into the laptop and that worked ok.
    If the screenshots below (I did every Airport utility tab for the High Birches Home Office) don't tell you anything more, then the set-by-step instructions would greatly appreciated so I can ensure I completed the steps correctly. 
    Many
    Thanks, Greg.

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • Can I have two libraries on one iTunes program?

    I have two different iPods - one a nano, one a video - and I'm trying to create a way to install on the video iPod its own separate songs without having it import all the original nano's songs from its library. SO FRUSTRATING.
    Do I really have to import all 400 songs from my nano's library onto the video, and then go from there importing new songs for the video iPod? And why, when I installed the video iPod's iTunes CD, was a new iTunes application not created in order to keep the two different iPods' independent of one another?
    Any assistance would be immensely appreciated.

    First of all there can only be one iTUnes with one library on a user account in windows. There is afew programs that will create 2 librarys but you most likly will not need this.
    You can create 2 user accounts on windows for each iPOd, but thats usually for 2 people using one PC that want there own separate iTUnes and music.
    If both iPods are yours you will most likly want to set one ipod (Most Likly the nano) to "Auto update selected playlist" and select which playlist you want on that nano. to do this connect the nano, rightclick it in iTUnes, hit options and set it. then the video iPOd since its bigger in size you can leave it set on its default of "Auto update all songs".
    Another note just so you know, it is possiable to connect 2 ipods at the same time, but HIGHLY recommened NOT TO DO THIS because it can confuse iTUnes and the ipod service running in the background of windows and cause you and iTUnes major headaches

  • Can I have two accounts on one imac

    can I have two accounts on one imac

    You have no idea how happy i would be to be proved wrong on this .. there are loads of posts in the discussion forums saying its impossible. If you can point me to where we are going wrong it would be very much appreciated. This is what we have tried ...
    1. Create a 2 iTunes libraries on a single computer login (switching with the ALT key when starting itunes)
    2. Create a new user account on the computer, create an iTunes library on each individual login.
    In each scenario, the same thing happens. We can
    - Start iTunes in the right library
    - Log in to the iTunes store etc with each account.
    The problem comes as soon as you try to download a purchased item, ie if I buy a song on my iPhone then try to down load it from the "purchased items" of iTunes account it was purchased under. iTunes gives a message saying that if i download something bought under iTunes Account 2, iTunes account 1 will be disabled from downloading or auto-download for 90 days as "this computer is already associated with an Apple ID"
    Should probably have put this into the origianl post for clarity, apologies. i didnt really mean "logged in", we can log in to each iTunes account from the different libraries, but we can use the purchasing or download functionality - hopefully this makes more sense.
    If you know how to set this up properly, it would be amazing if you could share it here?
    Many thanks

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • Hi, I have apple account/password on laptop but can't use the same ID etc on new Ipad.  On my account it says ID is only for 1 system.  I really want only one ID for both Ipad and laptop. Thanks

    Hi,
    I have apple account/password on laptop but can't use the same ID etc on new Ipad.  On my account it says ID is only for 1 system.  I really want only one ID for both Ipad and laptop.
    Thanks

    It seems that you have used the AppleIDs to "Purchase" your devices, which marries the two for all time and eternity.
    For info - Using your Apple ID for Apple services
    For Account security issues - Apple ID: Contacting Apple for help with Apple ID account security
    regards
    CCC

  • I have two iPads and one iPod Touch and they are using iTunes on the same computer.

    I have two iPads and one iPod Touch and they are using iTunes on the same computer. I have not been able to backup the second iPad. Is there a reason this is happening? iPad one is an iPad 1 and the second is an iPad 2 not sure if this has something to do with it. I just tried to upgrade to IOS 5 and when it went to back up it gave me an error code (-5000). I tried to back up using iTunes and it told me that my backup was corrupted and to delete it and try to back up again. When I went into the device portion where I was instructed to go to delete the backup I found that there was no backup for my iPad just the iPad 1.
    I have synced many times and all of the apps, podcasts, music, etc... show up in iTunes, and iTunes recognizes that is is the second iPad but there is not a backup for it.
    Any Ideas?

    Read this:  How to use multiple iPods, iPads, or iPhones with one computer, http://support.apple.com/kb/HT1495

Maybe you are looking for

  • 1st Generation iMac G5 shuts off all of a sudden

    My iMac G5 keeps shutting off all of a sudden. Also when I turn it on it shuts off 2 out of 3 times in about 5 secs. anyone have any ideas on whether this is a hardware or a software problem? I had the power supply replaced through the warranty agree

  • I broke my screen on my iphone and now the phone wont turn on, if I have insurance will it cover the cost of a new iphone?

    I broke my phone about two months ago and now it won't turn on because I believe there is internal damage. If I bought the insurance when buying the phone will I be able to get a new phone for free?

  • Display disaster!

    Hi all, I have a major problem with LR though I'm guessing it's not LR's fault. I have two Samsung monitors and if I drag LR from one to the other, after about a second, the image changes significanty in terms of color rendition. On the right monitor

  • Can the value of a drop down be used as part of an SQL query?

    I am using JDeveloper11g to develop a web application that displays some data from a database table. To do so I created Business Component from Table (Entity) that represents one of the tables in the database. I then use a panelCollection component t

  • Welcome Area Padding in Portal Masthead

    I took a copy of the SAP Tradeshow theme and began to modify it based on my requirements.  The background is white with Welcome Area displaying text in bold / italics / gray.  However, I can't seem to get rid of a dotted rectangular box that appears