App.doc not working anymore - stuck, please help

I'm fairly new to javascript development inside Acrobat. I had a set of working folder-level scripts that created buttons. Using Acrobuttons, I set them up using this type of pattern:
var oButton =
{cName: "testButton",
cExec: DoCmdTest,
cEnable: "event.rc = (checkValid())",
cMarked: "event.rc = false",
cTooltext: "try again!",
nPos: -1,
cLabel: "Try again"};
where the checkValid() function was defined above, something like this:
checkMyValid = app.trustedFunction(function(){
          if (app.doc == null) {
                    console.println('it still thinks it is null');
                              return false;
  // other checks here to see if the button should be enabled...
  // in which case they return true;
  // otherwise:
   return false;
This was all working fine, until yesterday. Suddenly, app.doc is null every time. And if I use app.activeDocs[0], same result.
Yet when I use the console with a document open, app.doc and app.activeDocuments[0] both return my document.
Has anyone experienced this?
Thanks,
Jack

What OS, OS version, product, and product version are you using?
Have you updated anything?
Was an automatic update applied?

Similar Messages

  • I have an iphone4, and suddenly one day my factime app does not work anymore!! How do I get it to work again, Please?

    I am using an iphone4. Suddenly one day my factime app does not work anymore!! How do I get it to work again, Could someone please me?

    Try a reset or restart of the device. If it still does not appear on any of the home screens and cannot be found in a spotlight search, restore the device.

  • TS4436 Iphone 4 camera worked fine for 2 years then turned all flash photos red after installed Fast Torchlight App - deletion of app did not fix camera problem - please help?

    Iphone 4 camera worked fine for 2 years then all photos with flash came out as red after installed Fast Torchlight App - deletion of app did not fix camera problem - please help?

    Try This...
    Close All Open Apps...  Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    If no joy...
    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414

  • I recently downloaded iMovie on my iPhone 5 and it is telling me to connect to wifi or use itunes to download iMovie well I have done both and it is still not working can someone please help me?

    I recently downloaded iMovie on my iPhone 5 and it is telling me to connect to wifi or use itunes to download iMovie well I have done both and it is still not working can someone please help me?

    Hi troy157,
    I'm sorry you are having issues with the iMovie app you purchased for your iPhone5.
    The first thing I would suggest is to log out of your iTunes Account on your iPhone, turn the iPhone off and then on again, and see if app finishes downloading/updating.
    Settings > iTunes & App Stores > Tap on your Apple ID account > Tap Sign Out
    If the issues persists, the article below will give you a few more troubleshooting steps:
    iOS: Troubleshooting applications purchased from the App Store
    Try the following steps to resolve your issue, testing the app after each step.
    1. Update your device software
    Update your device to the latest version of iOS.
    2. Check for app updates
    Ensure that your apps are up to date:
    Open the App Store and tap Updates. If updates are available, tap Update All.
    When prompted, enter your iTunes Store account information. App Store will then download and install the application updates.
    Note: Some applications may require a Wi-Fi connection to update.3. Install another app from the App Store
    4. Restart the application
    If the issue affects only a single app, try closing just that app:
    Press the Home button to return to the Home screen.
    Double-tap the Home button to display recent apps.
    Tap and hold the affected app until the red minus appears.
    Tap the red minus to quit the app.
    Press the Home button, then restart the app.
    5. Restart your device
    Hold the Sleep/Wake button until "slide to power off" appears. Slide to power off your device. When it is off, press the Sleep/Wake button to turn it back on.6. Reinstall the affected application
    Remove the application from your device and reinstall it.
    Touch and hold any application icon on the Home Screen until the icons start to wiggle.
    Tap the "x" in the corner of the application you want to delete.
    Tap Delete to remove the application and all of its data from your device.
    Press the Home button.
    Go to the App Store.
    Search for the application and then download it again.
    Note: If it is a paid app, ensure you are using the iTunes account you purchased the app with originally. If it is not, you will be charged for the app again. For more information regarding downloading previously purchased items, see this article.
    I hope this information helps ....
    Have a great day!
    - Judy

  • Bluetooth Driver In Windows 8.1 is Not Working after upgrading please help (pavilion g6 2008Tx)

    Bluetooth Driver In Windows 8.1 is Not Working after upgrading please help (pavilion g6 2008Tx)
    what cAN i do to make it work?please help

    Hi:
    If your model uses a Ralink wireless card, see if installing this bluetooth driver works.
    http://h20565.www2.hp.com/hpsc/swd/public/detail?swItemId=ob_135494_1

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • TS3297 I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    These are user-to-user forums, you are not talking to Apple here. You can contact iTunes support via this page and ask them why the message is appearing : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then probably Purchases, Billing & Redemption

  • I have not been able to use the presenter installation. The installation process finishes well by says the download installation was a sucess, however, the icon to begin using the app is not shown anywhere. Please help!!!

    I have not been able to use the presenter installation. The installation process finishes well by says the download installation was a sucess, however, the icon to begin using the app is not shown anywhere. Please help!!!

    Hi There,
    Can you confirm if you were able to download Presenter 10 successfully, Can you please paste the screen shot of the downloaded file for Presenter 10? Can you please check in control panel >Program and features and check if you are able to see Adobe Presenter 10 as a installed program?
    Regards,
    Mayank

  • My factory unlocked iphone 4s mms is not working with tmobile, please help...

    my factory unlocked iphone 4s mms is not working with tmobile, please help...

    Check out this link. It should fix the problem
    http://support.t-mobile.com/thread/17918?tstart=0

  • My iTunes, on my computer is not syncing anything at all. We have tried re-downloading it but it does not work. Someone please help me?

    My iTunes, on my computer is not syncing anything at all. We have tried re-downloading it but it does not work. Someone please help me?

    Here:
    iOS: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

  • Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Many, many thanks for both of you Todd and Rick.
    to Rick:
    I suppose you mean the Color Settings in Project Settings as follows:
    - Working Space: None
    - Match Legacy ... Gamma Adjustments checked ON
    But it does not correct the colors in effects. And checking or unchecking Make Movie/Output Module Settings/Color Management/Profile/Preserve RGB does not make any difference.
    to both of you:
    Those parts of the video image that does not have color effects are just fine. In these parts the color is preserved when reimporting to FCP. However, those parts having color effects (except Levels, as decribed earlier) have altered color results. So, only the parts having effects affecting color are misinterpreted in the image area. The mismatch is of course seen in AE, before making the movie.
    What I ment with "Color Management not working properly" is that (instead of "disabling" it) Color Management does not seem to be able to correct this "misinterpretation" or difference in effect handling between AE 6 and 10.
    So, would you have any solution for this problem?
    Again, many thanks for your fast replies!

  • All my GPS Apps are not working anymore after upgrading to OS4

    Hi folks,
    all my GPS APPS are not working anymore since I upgraded to OS4.
    I am living in Germany and using Iphone 3GS 32GB.
    Are there any plans from apple to resolve this issue shortly ß Or shuld we
    chance to google or Microsoft produkts....?

    I'm getting very interested in GPS problems across the entire iOS device range. Ive got a 3GS and the GPS satellite fix stopped working completely recently. A fix identified using jailbreak and an ssh terminal tells me a good proportion of these problems are with locationd, the gps process in the iPhone, or more accurately, I think that it's possible for some of the data this process uses to become corrupted; the "fix" involves stopping the process and deleting the data it uses. On restart, locations is forced to rebuild the data, and everything then works.
    I suspect this is true across the iPhone range - and worse, I think that the backup function in iTunes actually backs up the bad data. Thus, when you restore from backup, you actually put the problem back in! Either that, or GPS cache data isnt deleted when the iphone is restored.
    What we need is an option in iTunes, or the iPhone settings, to clear GPS ephemeris and related data down and restart locationd: this will save apple a fortune in support at genius bars, as I reckon everyone who is getting a replacement is just getting a reblanked refurbished iPhone with no hardware fixes - they could be turning them around in the back of the stores!
    We need to get some group pressure together to get an answer out of apple on this really - they do seem to have an approach which has much in common with the way the UK banks were dealing with overdraft fees - if you complained, they refunded just to keep you quiet and make sure you didn't shout. If this issue is an underlying gps driver or application demon issue, they should give us a way to work around the issue.

  • My email is changed on my apple id and now some apps do not work anymore incl icloud. What to do

    My email address changed so altered it in apple id. However now some apps do not work anymore. And my email there seems not changeable
    I.e appstore, icloud, search friends etc
    Thx for yr help

    Hi frisbo1312
    I am in the UK and eventually found the problem was due to my BT Home Hub Router.  Not sure where you live, but of you are in the UK, this might work for you.
    I found this fix below on https://discussions.apple.com/thread/4604180?start=15&tstart=0
    It worked for me.  If you can't link to the URL, here is the body of the text
    There's an issue related to the BT homehub that is providing a hostname that is "syntactically incorrect" for several smtp server.
    Here's how you can fix it.
    Using your internet browser, go to the address "192.168.1.254
    - Follow instructions to reset your password if asked.
    - Then go to "Settings", then "Advanced Settings" and "home network"
    You will see there all the devices that are connected or that has been connected before. It's gonna be easyer if yout computer is the only one connected.
    Your computer should have a name like "unknown-xx:xx:xx:xx:xx ...
    Click on this name, chose another name without any special characters, like "macbook" for exemple.
    And then click on "apply"
    - restart your computer.
    That should fix the issue.
    Credit goes to vincentfromcork for providing me with the solution.
    Spread the word

  • I was trying to put music to my iPhone, but my iTunes don't recognize my iPhone. I tried to restart my iPhone, iMac, reinstalled iTunes..but still not working. can anyone please help?

    i was trying to put music to my iPhone, but my iTunes don't recognize my iPhone. I tried to restart my iPhone, iMac, reinstalled iTunes..but still not working. can anyone please help?

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes or iPhone forums.
    Regards.

  • App store not work on my iphone , help me please

    app store do not work on my iphone , help me please

    Okay -
    Let us try the following and test after each step:
    1. Reset your phone - there is no data loss - Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    2. IF that does not - restore phone to iTunes -
    3. THEN restore as New - in other words to factory settings - Check to see if App store works before you restore from back up or add any apps
         a. If it does - then go ahead and restore from back up
         b. If it still does not - bring it to an Apple store / authorized repair location
    (790)

Maybe you are looking for