What could block a script, when there's nothing wrong with it?

Hello, again
I've just wasted some hours trying to get a script to execute. It threw an error saying that the 'object wasn't valid' I decided to give up, wen't home, and later at home started up again to see if I could sort it out.
It executed well on the first run.
Same computer. No changes to the script. ESTK was set to InDesign 5, I checked it a million times.
What could cause this to happen? Caches overflowing? "Blocks" between InDesign and ESTK?
The script isn't callng for any URIs or such.
Here's the bit I was having trouble with:
app.activeDocument.groups.everyItem().ungroup();    
app.activeDocument.layers.everyItem().locked = false;
app.activeDocument.pageItems.everyItem().locked = false;
MoveTextFrame();
function MoveTextFrame() {
    var doc = app.activeDocument;
    var stories = doc.stories;
    var STYLE = doc.paragraphStyles.item("Some Style");
    for (var i = stories.length-1; i >= 0; i--) {
        if (stories[i].appliedParagraphStyle == STYLE && stories[i].paragraphs[0].parentTextFrames[0].parentPage.name == 1) stories[i].paragraphs[0].parentTextFrames[0].geometricBounds = ([38.8, 15, 48.249, 130]);  
        if (stories[i].appliedParagraphStyle == STYLE && stories[i].paragraphs[0].parentTextFrames[0].parentPage.name == 2) stories[i].paragraphs[0].parentTextFrames[0].geometricBounds = ([9.2, 15, 18.6, 130]);               
        if (stories[i].appliedParagraphStyle == STYLE && stories[i].paragraphs[0].parentTextFrames[0].parentPage.name == 3 && app.activeDocument.documentPreferences.facingPages == true) stories[i].paragraphs[0].parentTextFrames[0].geometricBounds = ([9.2,225, 18.6, 340]);
        if (stories[i].appliedParagraphStyle == STYLE && stories[i].paragraphs[0].parentTextFrames[0].parentPage.name == 3 && app.activeDocument.documentPreferences.facingPages == false) stories[i].paragraphs[0].parentTextFrames[0].geometricBounds = ([9.2,15, 18.6, 130]);
        if (stories[i].appliedParagraphStyle == STYLE && stories[i].paragraphs[0].parentTextFrames[0].parentPage.name == 4) stories[i].paragraphs[0].parentTextFrames[0].move([15,9.2]);

Thanks for taking your time Harbs.
Sorry to say, once I escape the ungroup-line, it still won't run. Says line " if (stories[i].appliedParagraphStyle == STYLE && stories[i].paragraphs[0].parentTextFrames[0].parentPage.name == 1) stories[i].paragraphs[0].parentTextFrames[0].geometricBounds = ([38.8, 15, 48.249, 130]);"
..is wrong and that 'null is not an object'.

Similar Messages

  • How can I update my apps when it says that my billing information is wrong when there is nothing wrong with it?

    I cannot update my apps on my iPod. Apparently there is something wrong with my billing information and I retype it in every time it asks. There is nothing wrong with my account and I restored my iPod in hope of being able to update and download apps again but it still won't let me! What do I do?

    You might have to put the password in again.

  • Is there a facility to more easily sync music my four Apple devices and my wife's three Apple devices without the horrid iTunes error messages when there is nothing wrong with our connection?

    We’ve been using iTunes Match pretty much since the beginning, but recently my wife has turned it off and refused to re-subscribe. I’m fast getting to the same place. It just seems so unstable, wishing Apple would invest some of their billions into it. I read with dismay how many people find Google Play to be so much better. As I write this I see a “Cannot connect to iTunes store” on my iPhone. Noting wrong with our connection … it’s alive and well.
    Bearing in mind that I have two Macs, an iPhone and an iPad and my wife has a Mac, iPhone and iPad what we really want is the following.
    I want all our music to go up to one location (iCloud or even better our own server). I want an app or web app that I see on the right hand side a list of artists or albums (or playlists) and columns for each device. I want to be able to tick the “matrix” to specify which devices the artist/album/playlist should be downloaded to. When the device is switched on, it must download (no fuss no bother and no stupid I-can’t-do-anything-about error message). A nice enhancement would be to specify three options for each entity (Download, Stream, Not Available). There must be options to easily bulk select.
    So … is there such a thing out there?
    In my immediate family plus spouses and kids girlfriends/boyfriends there are 11 Macs, three iPads and 10 iPhones. My brothers are very similar. I have nieces and nephews that use Apple. My parents also use Apple. Collectively, we have a bunch of Apple equipment.
    Did I mention I'd like it to be stable?

    Unless you have EE 4G service the UK 3G networks are the base of your problem - they are just far to variable in download and streaming speeds.
    Add to the fact that use can/will eat into your Data usage !
    ITunes Match as a service is pretty experimental at best over 3G and really i think so long as you have a 32GB or larger iOS device sync'ing via iTunes on a PC/Mac remains the best way to transfer music.
    Remember even with iTune Match your music is STILL ON your own PC/Mac HDD !
    Usng the devices tab in iTunes you can customize each differing identified iOS device and load as you please.
    When we have a competitively priced stable and extensive LTE network in the UK then reconsider Match at that point.

  • When I attempt to connect to iCloud I get the error message: Apple id's email address cannot be verified.  There is nothing wrong with my apple id and I do not want to change it.Any suggestions?

    When I attempt to connect to iCloud I get the error message: Apple id's email address cannot be verified.  There is nothing wrong with my apple id and I do not want to change it.Any suggestions?

    Debi....
    Try "resetting" your Apple ID password >  Apple - My Apple

  • I am having trouble accessing the iTunes store via iTunes.  It shows an error message "iTunes could not connect to the iTunes Store.  The network connection timed out..." There is nothing wrong with my connection and I also can't update apps in the app st

    I am cannot access the iTunes store via iTunes on my PC and also can not update to 10.6.3.  It keeps telling me that my connection has times out and/or check my settings.  There is nothing wrong with my setting.  I am also having trouble with the app store on my iPhone 4s and can not update apps.
    I have signed out of itunes and now cannot sign in again.

    I feel you pain i'm haveing the same problems here.
    iTunes could not connect to the iTunes Store. The
    network connection timed out.
    Make sure your network settings are correct and your network
    connection is active, then try again.
    does anyone plz have some insight for us.

  • When I try to import songs from a CD into iTunes it can't find the titles online.  This wasn't a problem previously, now it is.  There is nothing wrong with my internet.  Any solutions?  Help says try again later but no luck there.

    When I try to import songs from a CD into iTunes it can't find the titles online.  This wasn't a problem previously, now it is.  There is nothing wrong with my internet connection.  Any solutions?  Help says to try again later but no luck there.  I've tried multiple times with multiple CDs.

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • TS3899 I cannot send email from my ipad the message keeps saying rejected by the server but there is nothing wrong with my email account with talk talk as I am able to send email from my iPhone and laptop any ideas?

    My email won't send from my iPad.  It says the server rejects it almost immediately I press the send email button, although there is nothing wrong with my email account when sending from my laptop or iphone. I have cancelled the account and re-entered it but it hasn't made a difference? Anybody help?

    Hi Allan,
    Thank you for your help . The account used to work perfectly until recently, after receiving support from the provider, I deleted the account now I am trying to set the account again. 
    After putting in the first details (name, email, description) Cannot send mail the password or username for "mail.bigpond.com" is incorrect. I would expect this because the information I put in is not for Bigpond. So I press ok & I change the outgoing server (this is the one that is incorrectly labelled bigpond) to aapt, then I press save.
    Then it says "verifying" but comes up with Cannot connect using SSL do you want to try setting up the account without SSL. I press yes.
    Then I get the message "the POP server "mail.aapt.net.au" is not responding. Check your network connection & that you entered the correct information in the incoming mail server. (I ahve already checked this with aapt & it is correct.

  • Should I up grade to a new phone? i got the itch! There is nothing wrong with my 8300

    Should I up grade to a new phone? i got the itch! There is nothing wrong with my 8300 except for scratches. I am due for the verizon 100.00 up grade and the rebate. Is it worth to up grade? Is there a better black berry on the market like the one I have? i been waiting for the bold2 but whats taking them so long to release? how about the droid?I don't like those touch screens though . Thanks.

    Hi,
    You're getting the itch, too.  I understand, there are alot of cool phones around the market.  I can't wait for Verizon to get the 9650.  I have the Tour now, but I think just to have a trackpad and more memory would be enough for me to upgrade.  I haven't seriously looked at the Android devices yet, but I am going to give them a look too.  I really don't know much about them to be able to comment either way, good or bad.  I guess it's just a matter of looking around at all the features and deciding what to get.  Also, looking and browsing through the forums for common complaints for various devices can help give you ideas of possible future problems you might run into.  Anyways.  Good luck.
    Doc

  • Itunes keeps telling my it can not read the contents of my iphone and that i need to reset it back to factory settings. I dont want to do that there is nothing wrong with my phone and my computer recongnizes that the phone is there.

    I tunes keeps telling me that it can not read my phone and it wants me to reset to factory setting there is nothing wrong with my phone and my computer reads the phone. What should I do I already did the restart of the apple mpbile device service.

    Do an iCloud-backup, reset the iPhone and restore is from the iCloud-backup.
    Let me know if it works

  • Why can't I send i-message and use facetime with my iphone 4s(BTW, there is nothing wrong with my apple account))

    Why can't I send i-message and use facetime with my iphone 4s(BTW, there is nothing wrong with my apple account))
    It functioned well originally, but a month ago I could not use facetime and send i-message anymore. I think there is nothing wrong with my apple ID because I can still download apps in apple store.

    Try turning both iMessages and Facetime off in SETTINGS then re-enable iMessages and then Facetime. See if that helps.

  • I am having connecting my ipod touch to my laptop and there is nothing wrong with my cord and i tryed other cords same thing

    i am having connecting my ipod touch to my laptop and there is nothing wrong with my cord and i tryed other cords same thing

    And the operating system?
    and it gose to my pc file folder
    No idea what this means. Is the iPod not appearing in iTunes? Or what, exactly?

  • Everytime I  try and sign into my iCloud account it tells me I can't log in due to a server error, but there is nothing wrong with my server . It also wont allow me to view any of my Photos or Documents that i have backed up.

    Everytime I  try and sign into my iCloud account it tells me I can't log in due to a server error, but there is nothing wrong with my server . It also wont allow me to view any of my Photos or Documents that I have backed up. Please help

    Hi,
    Are you running any Anti-virus software or do you have your firewall turned on? If so, disable them and try again. If that doesn't work, delete the iCloud account and then sign it back on again.
    Make sure you are running the most current version of the iCloud Control Panel:
    http://support.apple.com/kb/dl1455
    Cheers,
    GB

  • TS3297 I have paid for a rental movie but cannot download it. It keeps saying there is a download error retry and I have been for an hour. There is nothing wrong with my internet connection

    I have paid for a rental movie but cannot download it. It keeps saying there is a download error retry and I have been for an hour. There is nothing wrong with my internet connection.How do I get it?

    There is nothing wrong with my internet connection.
    Is that a -50 error message, jolyn?
    If so, perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • I am trying to down load a moive from Itunes and keep getting err (-50) saying check connection and there is nothing wrong with my connection. I have downloaded movies since just can't get this movie (Safe House) downloaded.

    I am trying to download a movie from Itunes and keep getting the ERR (-50) saying check connection and there is nothing wrong with connnection. I have downloaded movies since and just can't download this movie (Safe House) downloaded. Help Please

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • Random restarts I took it to the apple store and they said there was nothing wrong with it. record shows 60 random restarts. what can I do?

    I have a MacBook pro that I bought in 2012, I have had problems with it randomly restarting almost since it was new. I called tech support several times and they did tests each time and thought they had it fixed but later it started again. Some times it will go a month and not do it but lately it has been doing it more frequently some times several times a day. Day before yesterday I took it to the apple store and left it. today they called and said they could find nothing wrong with it. But they  said they could see where it had restarted 60 times. Does anyone have any suggestions.

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Ifou don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

Maybe you are looking for

  • Substitution Variables Not Working in Web Analysis

    <p>Our current month /current year (CMCY)substitution variables donot work in Web Analysis.  The variables are set up properlyon the Essbase server and work fine with the excel add-in. The prior month / current year (PMCY)sub variable does workin Web

  • Whats new with Flash Player 9.0

    Hi all .. i want to know whats new with flash player 9.0. what are the new features etc.. thanks in advance

  • MacBook turning on, but not revealing main screen with icons

    I noticed my MacBook was having an issue (beachball showing up) so powered it down. Now when I power it on, the gray screen with the Apple shows up and the little circle goes around and around, but it keeps on doing that and doesn't load the finder o

  • FDM multipload option not importing members from some dimensions

    I am importing the data using multiload option in FDM. Import step is successful but I get only Entity and Account dimension members only in the Import stage, whereas the other dimension members are not getting imported. I have used the below headers

  • Multiple langauge possible ???

    Hi all i am using Netscape Messaging server 4.1x on Sun Sparc Running Solaris 7, i have configured the SMTP,POP,IMAP and webmail ( http based mail), right now we are having only one mail domain its "maildomain.com", and all the users for this mail do