Script all of a sudden not working

I've had success using a script to fill in empty cells in a talbe with a space and applying a paragraph and character style...until today. I haven't used it in a month or two so I was wondering if an update is causing it to not be "valid" anymore? Here's the script:
for (a=0; a<app.selection[0].parent.parent.cells.length; a++)
if (app.selection[0].parent.parent.cells[a].contents.length == 0)
  app.selection[0].parent.parent.cells[a].contents = " ";
  app.selection[0].parent.parent.cells[a].paragraphs[0].appliedParagraphStyle = app.activeDocument.paragraphStyles.item("Empty Cell");
app.selection[0].parent.parent.cells[a].paragraphs[0].appliedCharacterStyle = app.activeDocument.characterStyles.item("[None]");
And here's the error message I'm getting in CS4 while trying to use it:
Error String: Object does not support the property or method 'cells'
Line: 1
Source: for (a=0; a<app.selection[0].parent.parent.cells.length; a++)
Any help would be greatly appreciated!!!

Isn't that one of my masterpieces? I seem to recognize its (lack of) style ...
Jen, if the script does a little basic checking before running, you don't have to worry anymore where and how the cursor should be placed. This little change should do that:
pos = app.selection[0];
if (pos.hasOwnProperty("baseline"))
pos = pos.parent;
while (pos.constructor.name == "Cell")
pos = pos.parent;
if (pos.constructor.name == "Row")
pos = pos.parent;
if (pos.constructor.name != "Table")
alert ("Eh? Not in a table?");
exit(0);
for (allCells=0; allCells<pos.cells.length; allCells++)
if (pos.cells[allCells].contents.length == 0)
  pos.cells[allCells].contents = " ";
  pos.cells[allCells].paragraphs[0].appliedParagraphStyle = app.activeDocument.paragraphStyles.item("Empty Cell");
  pos.cells[allCells].paragraphs[0].appliedCharacterStyle = app.activeDocument.characterStyles[0];// .item("[None]");
I changed the 'characterStyle' line to use style #0 instead of the name "[None]", as it appears to disagree with my old CS. This script now ought to work on anything from CS to CS4.

Similar Messages

  • Help! My MacBook is all of a sudden not working. I can login to my account but as soon as I do that the screen goes completely white. I can change the volume and I have a mouse but that is it. I've tried safe starting my computer and that doesn't work.

    Help! My MacBook is all of a sudden not working past the login page. A white screen comes up that I cannot get rid of. I attempted a safe start up and that failed as well. It's a white screen where I have a mouse and when I click the volume buttons I can hear it working but nothing else just white. Please help.

    Something you can try is resetting it all Settings > General > Reset > Reset all settings. Or go to Settings > Store &amp; sign out &amp; log back in. Another thing you can do is restore your ipod. This has happened to me but the only thing i did was that i created a new account but try doing the things above i just told you. :)

  • Foxtel on T-Box -- all Foxtel channels suddenly not working

    Hi  I would really appreciate some help. We have happily had, used and (I daresay) loved our T-Box for the past 5 years. And then I made the fatal mistake of subscribing to Foxtel on T-Box about 6 weeks ago, as I wanted to legally watch Game of Thrones. (Please don't laugh at me spending $65 per month to watch one TV show; I am trying to do the right thing!) Suffice to say, the love affair with our T-Box is over. Foxtel on T-Box worked fine for a couple of weeks. (My original setup was a T-Box 1, connected via a strong WiFI signal via HDMI to plasma TV). And then all of a sudden, about 4 weeks ago, I began losing all Foxtel channels. Instead of the channel coming up, I get a black screen with a message at the top of the screen that says "Loading internet channel, please wait". And sometimes, I also get a message at the bottom of the screen which says "Cannot start playback, please try again later (0612)".   A wierd thing is that through all of the problems with Foxtel on the T-Box described in this post, using the exact same account/subscription, Foxtel has continued to work percetly fine via the Foxtel Go app on my iPad and PC. Since out Foxtel channels started not working, I have called Telstra support about 5-6 times. As a result of these calls, I have purchased a T-Box 2 and it connected via ethernet instead of WiFi. (BTW, this didn't change anything and IMHO was a complete waste of $99.) The Telstra support person has apparently done all he/she can on their end. And I have also reloaded subscriptions, reset licences, reformatted the hard drive, reset the T-Box(s) on more occasions than I can count - about 10x. My ADSL2+ internet speed is not great, but it should be OK. It's usually about 5-7Mbps download and 0.5-1Mbps uplaod (as measured by http://vic.speedtest.bigpond.net.au). As I mentioned above, even when the Foxtel channels don't work on the T-Box, it works fine via the Foxtel Go app on my iPad and PC. Sometime doing these things get the channels to work again, by trying one thing after another, but usually it does not. On the rare occasion when the Foxtel channels do somehow come back, neither the Telstra support person nor I, know what happened to make them work. The issue has been escalated to a "Level 2 support person" who is investigating. But he/she has been investigating for the past 2 weeks, and hasn't been any help at all so far. I now keep getting fobbed off by the Telstra support person, with no commitment about when the "Level 2 support person" will do anything or when he/she will call me. Whilst the Telstra support people I talk to are perfectly polite - so far no-one can solve this problem. This is very, very, very frustrating! If you have had similar issues and fixed them, can you please let me know how? If you are a Telstra support person monitoring this forum, how can I progress fixing this problem? Cancelling my Foxtel on T-Box subscription is not what I want to do, but right at the moment I have no confidence that anyone from Telstra has any idea what is going on or how to fix it. Any support would be grately appreciated. Michael PS: And if I hear another Telstra support person ask "Can I help with anytthing else today?" -- when they haven't been any help whatsoever WRT the problem I called up about -- I am going to scream! 

    I'm in the same boat, into Week 3 of losing all my Foxtel Channels, Lost anything that says Foxtel. Channel 958 doesnt have any reference to Foxtel.  Reset over 10times, Router & Tbox Reset & turned off for the Day.
    No Foxtel Channels show up in the Guide. First I had the error messages, then everything was wiped when asked to reset with a Telstra Customer Support Person. Then got invalid channel numbers on all Foxtel, & lost all Info to anything Foxtel.
    7 Customer Support persons & 14hours of Phone calls & complaints, no one has an answer how to get my Subscription Back. They can see that I have a Subscription but don't know how or why this has happened.
    Have also got Foxtel on the job looking for answers as well as Telstra. 
    I have been using Computers for 30years & can't believe no one knows how to fix it.
    The Tech Crew at Telstra said that my line speed had slowed due to the fact I don't have Foxtel on anymore.
    I asked my Wife to ask the Customer Support person to get the Tech to Email that Answer in writing to us so I can show the Communication Ombudsman people, but all they send are Emails about "I hope we have helped you with your query" & can you complete the online survey. 
    What they need to do is a full diagnostics / firmware reload, but it seems no one knows how to do that.
    Sorry I can't help!

  • Why are my keyboard shortcuts all of a sudden not working? Even in Photoshop?!

    My keyboard shortcuts are not working. I noticed it first when I tried to Command+Tab my way through my open applications. Stumped. Any thoughts?

    Hello Ronald,
    I'm a bit unclear on the exact scope of the issue you are describing. Is it affecting just selected keyboard shortcuts, or all keyboard shortcuts? You may want to see if any keyboard shortcut conflicts are showing, as noted in the following article:
    OS X Lion: If a keyboard shortcut doesn’t work
    You may also want to test some of the other system shortcuts, as noted in this article:
    OS X: Keyboard shortcuts - Apple Support
    Sincerely,
    - Brenden

  • Why does my scroll pad all of a sudden not work in FF? It works perfectly fine in IE, MSWord, and windoes explorer, etc...

    The scroll pad on my laptop no longer works with FF. Yet it works with every other concievable program i could use it for.
    == This happened ==
    Every time Firefox opened
    == 2 weeks ago

    Something you can try is resetting it all Settings > General > Reset > Reset all settings. Or go to Settings > Store &amp; sign out &amp; log back in. Another thing you can do is restore your ipod. This has happened to me but the only thing i did was that i created a new account but try doing the things above i just told you. :)

  • My apple TV is connected and has power but all of a sudden not working

    I bought a new remote. (yes it's the correct one) I tried pairing by following instructions but I did not see the remote symbol on my tv screen.  When I point it at the Apple TV and press the menu button, the light on the Apple TV blinks which tells me it's receiving signal from the remote.  For some reason I can not get into the Menu to make any selections.  Now the apple TV is on but in screen saver mode.  When I press the remote it does nothing!  It has been almost a month since I used it but I'm not sure that would effect anything.  Help

    Hi Bibsinger!
    So that the Community can help you better, we will need to know exactly what model Canon scanner you're using and what Computer Operating System you're using (Windows XP/Vista/7/8 or Mac 10.x).  Any error messages or other details you'd like to give will only help the Community better understand your issue!
    Thanks and have a great day!

  • My MacBook Pro will not connect to my home wifi but will connect everywhere else. My other Apple devices (I-pad, I-touch, another MacBook Pro) connect to the router without problems. It was working fine but all of a sudden stopped working.Thanks!

    My MacBook Pro will not connect to my home wifi but will connect everywhere else. My other Apple devices (I-pad, I-touch, another MacBook Pro) connect to the router without problems. It was working fine but all of a sudden stopped working.Thanks!

    try this.
    get back into your router's settings and start deleting devices that are not connected to your router.
    you can also delete the ones that are connected - they'll connect again.
    on the DHCP side of it, increase the amount of users that can connect/log in to your router.
    see if that sorts it out for you.
    good luck.

  • Apple ID is all of a sudden not an iCloud account. It used to work until a few days ago, but now iCloud can't register the ID and Outlook can't login to iCloud.

    My Apple ID is all of a sudden not an iCloud account.
    So it says any way. It used to work until a few days ago, but now iCloud can't register the ID and Outlook can't login to iCloud from my pc. Anyone else faced this problem or know how to deal with it?

    Ditto here.
    I tried setting up iClunk today.....
    .....on my Windows 7 64bit computer.
    I click on the iCloud icon in the Network & Internet section; the iCloud sign in window pops up and I type in my Apple user ID and password and it replies that I need to setup a separate iCloud account....even though it plainly states that for the user to "Sign in with your Apple ID".
    Go figure.

  • My ipod touch is all of a sudden not letting me do anything that requires my password. I can buy apps or anything. I put in my password and it gives me an error and says try again later. It works fine if I am accessing the store thru my computer. Help?

    My ipod touch is all of a sudden not letting me do anything that requires using my password. I can't buy anything and I can't check my purchases. Every time I put in my password I get an error message and it says try again later. This has been happening for 4 days now. I can play my existing games just fine. I can access my itunes store through the internet just fine with my password, but just not on my ipod touch. I sent an email to the itunes support store 3 days ago and have not heard back from them. Does anybody have any suggestions on why this is happening all of a sudden after having the ipod for almost 2 years?

    Something you can try is resetting it all Settings > General > Reset > Reset all settings. Or go to Settings > Store &amp; sign out &amp; log back in. Another thing you can do is restore your ipod. This has happened to me but the only thing i did was that i created a new account but try doing the things above i just told you. :)

  • Flash Slideshows Suddenly not working

    Hi All,
    My site is "www.neilmarksphotography.com"
    I have 5 pages leading off "GALLERY" menu option, which all contain flash slideshows created in Lightroom. They have all been working fine, but today I slightly changed the content of the slideshows, and now they are not working - they just show the "GET ADOBE FLASH PLAYER" icon. The home page (index.html) is working fine - I have not changed the code there at all.
    I have tried to compare the code in the changed gallery pages with the home page, but cannot see what I have done to stop all the galleries from working properly. GALLERY pages are previewing fine locally off the hard drive. It's only on the live page that I am getting the problem
    Any suggestions?
    thanks
    Neil

    Hi
    thanks for your suggestions - I finally found the problem!
    regards
    Neil
    Date: Mon, 11 Jan 2010 07:32:38 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash Slideshows Suddenly not working
    Hi
    Try removing the following line of code (marked in red), from the problem pages -
    <script type="text/javascript">
    var pageTracker = gat.getTracker("UA-3534258-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    swfobject.registerObject("FlashID");
    </script>
    It may be that your pages are cached in your browser, (viewing locally, in browser), or that the Google analytics code is being ignored by dreamweaver, (if working in dreamweaver), as this requires a live page /server.
    PZ
    >

  • Why does Acrobat suddenly not work on my Mac (won't open pdf files from a web page), yet I can open them from my iPhone? Everything worked fine yesteray.

    Hello:
    I have a Mac running OS 10.8.5 and I use Acrobat Pro and Acrobat Reader. Today for some reason, any time I try and access a pdf file from a web page, it won't open. I get a blank window. PDF files already on my computer open fine and I can create PDF files from Word docs, but I can't download or view any pdf file from any web page. Strangely, PDF files on web pages open just fine on my iPhone.
    I checked that both my copy of Acrobat Pro and Acrobat Reader are up-to-date. They are.
    I checked that my copy of Firefox is up-to-date. It is. And nothing changed with Firefox within the last 24 hours.
    I am a humble computer end-user. I am baffled as to why this would suddenly not work. I have not changed any settings, etc. Any help or suggestions would be greatly appreciated.

    Thank you.
    I checked your instructions you sent and as far as I can tell all of my settings, etc for Firefox (plugin updates and preferences) are correct but I am having the same problem.
    However, everything works in Safari. I don't have time to attempt to diagnose why Firefox no longer works. I will just switch to Safari.
    Many thanks.
    Charles
    Charles Deister
    (503) 949-5762
    [email protected]<applewebdata://81CB4171-226F-49DF-BD59-A38A7360B3FB/[email protected]>
            PO Box 5032
         Salem, OR 97304
    http://www.pilotstrat.com<http://www.pilotstrat.com/>
    This transmission (including any attachments) may contain confidential information, privileged material, or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

  • ITunes on my iPhone 5 is suddenly not working.

    iTunes on my iPhone 5 is suddenly not working. Updated to IOS8.0 (not running 8.0.1) a few days go but was fine up until today. Now, when attempting to play a list of songs (artist, playlist or album) it rapidly shuffles through all of them without playing and then it displays a red square next to songs and won't play them at all. It seems to sync with my MBP but then new playlists I've created don't appear on the iPhone even though iTunes on the MBP has them appearing when I click the "on my iPhone tab. Tried the obvious quit and restart approach. No effect. Does anyone have any ideas?

    It's not a hardware problem. The same exact thing just happened to me. My husband reset all settings, not erase all content and settings, after the phone started back up, everything worked like normal again. You just have to redo your settings.
    General>Reset>Reset all settings
    Hope this helps you!

  • Apple TV suddenly not working

    My Apple TV is suddenly not working. I have tried the trouble shooting suggestions of restarting, upgrading the system, checking everything etc,  but to no avail. When I do a system test, all is ok, but I just cannot download /view my purchase - I get a constant 'ready in one minute' message with a wait symbol. There doesn't seem to be an issue with movies I have already purchased. I tried apple online support and a 'helpful support' person didn't respond to my query in 'under 2minutes' - or at all for that matter. Of course no problem with the billing - my account hash been charged for a movie I can't watch. All very frustrating! We have had Apple TV for over 18 months with no problems.

    Welcome to the Apple community.
    So is it just one movie.

  • HT1338 when I click on a website where there is a pdf to view, I am all of a sudden not able to view.  Please adivse

    when I click on a website where there is a pdf to view, I am all of a sudden not able to view.  Please adivse

    <sub>Linked from https://support.mozilla.org/en-US/questions/976863</sub>
    Hi Anita,
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Skype number is suddenly not working for me and my...

    Skype number is suddenly not working for me and my colleagues to RECEIVE outside calls.  Any ideas?
    When I try to call my skype from my cell, it doesnt ring on either end.  It appears connected on the cell phone since the counter clock for the call is increasing, but it doesnt ring or connect.
    This is the same for me and at least 2 of my colleagues.  It was working all day, till suddenly it did not.
    When outside people call, it just gives us a missed call or voicemail email, but does not show a missed call on our skype.
    When I call an outside number from skype, it connects.
    Thanks for any help ASAP!

    I think this might have been happening to me earlier.  If you wait like 30 seconds when you called a machine said "All circuits are busy. da da da".  I was looking for an answer and google only brought stuff from like 2010.  It's working now after an hour or so.
    Sucks cause I use skype for work and was desperate to find a quick reponse but couldn't.

Maybe you are looking for

  • Cannot play iPhone imported Movies in iPhoto 08

    Hi there I dont usually use iPhoto to manage my pictures. However, when doing an iPhoto import of my iPhone pics (is there another way to get the pics off my iPhone by the way) - the pictures appear fine in iPhoto but the videos do not play for some

  • Itunes failing to recognize songs

    Okay, so I'm trying to add music to my iTunes library. Except when I try to add certain songs to the library, they just won't show up. I tried adding them multiple times and these particular songs just won't open in iTunes. And the thing is, these so

  • Resizing attachments in Mail

    When composing messages with attachments in Mail, the "size" dropdown menu at the bottom right does not appear. Is there a way to change the size of attachments or make that box in the bottom right appear by default?

  • JRUN -- Initialize a servlet

    Hi, When JRUN starts I want my init method of my servlet to be called. I looked in web.xml and couldnt find out where to do this. DOes anyone have any idea. I do not know much about jrun. Thanks

  • I want to interface s7 1200 plc to LabVIEW 2011

    i am not getting proper bit address in plc, i follow this attachment but i think it is not sufficient to integrate plc with LabVIEW advance thanking you...!!! Attachments: NI-Tutorial-13911-en.pdf ‏536 KB NI-Tutorial-13911-en.pdf ‏536 KB NI-Tutorial-