Stuck with Notify / saved script

Dear friends,
A notification function is called even before I started the script explicitly. Although this seems to be the goal of recording a script, but...

The notification function is executed until the script can initalise and so I get the message at the beginning of the FM (number line according to the code below):

Script Error : 
Error Message      : wPalC is undefined
Script, Line#   : E:\_DDDprojects\FM-calc\FM-calc\FM-calc.jsx,  13

(actually it is the line 14, because only there wPalC is displayed.

Notify routine manages two different dialogues, whose core are implemented in functions. Only the window definition is global:

var wPalC  = new Window('palette',"FM-calc : Handle #Calc Markers",undefined);
var wPalDS = new Window('palette',"FM-calc : Manage Document Settings",undefined);
//...
function SetupNotifications () { // Watch for the following notifications ========================= 
  Notification (Constants.FA_Note_PostActiveDocChange, true);  
} // --- end SetupNotifications

function Notify (note, object, sparam, iparam) {  // Handle triggered evens =======================
//$.bp(true);                                     // does not work at all
//alert ("Notify- object:\n" + object);           // this works
  switch (note) {
    case Constants.FA_Note_PostActiveDocChange:   // active document has changed
      goCurrentDoc = object;
      if (wPalC === undefined) {return;}          // registered script is entered before really started
      if (wPalC.active) {
        if (!object.ObjectValid()) {              // after all documents have been closed
          HideButtonsC ();
          return;}
        giNdexOfMarker = RefreshGlobalsC ();      // later: needs to distinguish marker types !!!
        if (giNdexOfMarker !== null) {
          DisplayMarker (goCurrentDoc, goCurrentMarker);
          wPalC.p0.sMarkerContent.text ="";
          gsMarkerText = goCurrentMarker.MarkerText;
          wPalC.p0.sMarkerContent.textselection = gsMarkerText;
          ActivateButtonsC ();
        } else {
          HideButtonsC ();
        }
        CollectVariables (true);                    // fill the global array
        FillUserVars (wPalC.p0.g1.pVar.listVariables); // fill the diaolgue list
      }
      if (wPalDS.active) {
        CollectVariables (true);                    // fill the global array
        FillUserVars (wPalDS.p0.tabV.g1.p1.listVariables); // fill the diaolgue list
      }
      break;  
  }  
} // --- end Notify

How to test a something undefined? Do I need =?-)

if (!wPalC.ObjectValid())  {return;} 

Does not either - same error message.

Hi Klaus,

When you add a notification, you must also remove the notification.

Registry: Notification (Constants.FA_Note_PostMouseCommand, true);

delete: Notification (Constants.FA_Note_PostMouseCommand, false);

But when your script stops before, you must remove it manually:

Go to the library of scripts (files-> script-> library) to cancel the registration of a script.

Otherwise it even stays there even if you restart FrameMaker

Tags: Adobe FrameMaker

Similar Questions

  • VMWare Studio is stuck with the transitional VM does not complete the PostInstall script.

    Hello

    I ran into a situation where the Studio VM got stuck with the post-installation script control that went wrong. The failure is shown in the Studio hanging as shown below.

    Build-a-failed/hung:

    2009-11-30 10:57:29 more than 30 minutes are elapsed during the configuration of the virtual machine.

    2009-11-30 10:57:29 if there is an abnormally long time to commissioning of your virtual machine

    2009-11-30 10:57:29 to complete, please check that the construction is progressing

    2009-11-30 10:57:29 observing the < 192.168.122.75 > console of the virtual machine being put into service.

    2009-11-30 11:28:06 more than 30 minutes are elapsed during the configuration of the virtual machine.

    2009-11-30 11:28:06 if there is an abnormally long time to commissioning of your virtual machine

    2009-11-30 11:28:06 to complete, please check that the construction is progressing

    2009-11-30 11:28:06 observing the < 192.168.122.75 > console of the virtual machine being put into service.

    What's happened is that the transitional VM has restarted before the post-installation script came out. However, in the past, I had noticed that the VM Studio that recognizes and cleans. In this case, there no cleaning. A previous generation succeeded as shown below. My question is if there is any command the virtual machine of comments/provisional, which 'determine' the completion of the Post-Install, so the Virtual Studio machine can pick up and transfer/package the bits of the vmdk disk images and give me a successful build? I know that all the elements of post-installation script had been completed successfully.

    If the build was successful:

    2009-11-30 05:01:41 if there is an abnormally long time to commissioning of your virtual machine

    2009-11-30 05:01:41 to complete, please check that the construction is progressing

    2009-11-30 05:01:41 observing the < 192.168.122.75 > console of the virtual machine being put into service.

    2009-11-30 05:18:11 the transient VM is now in offline mode. Post-OS Setup log file recovery...

    2009-11-30 05:18:11 installation is complete.

    2009-11-30 05:18:11 post-OS installation error checking...

    2009-11-30 05:18:12 VM carrying host provisioning to Studio; This may take a few minutes...

    2009-11-30 05:53:15 provisioning host cleaning...

    2009-11-30 05:53:15 checking if provisioning session is still alive and the transient virtual machine is always on.

    2009-11-30 05:53:36 Unregistering transitional VM configuration host.

    2009-11-30 05:53:36 remove transitional VM configuration host.

    2009-11-30 05:53:38 the development of the virtual machine.

    2009-11-30 05:53:38 packaging of the virtual machine.

    In the normal flow, you shouldn't have to do something special for "cessation of distribution".  The VM output should be in/opt/vmware/www/build / < instance-bld > / export dir in the VM Studio when using Studio to build a W2K8 device without your installed application. The Studio build process is now out of the picture. You can then copy or import the virtual machine to your platform of choice virtualization, power, install your application, closing. And copy (or distribute) the VM whenever you want.

  • Does not touch the iPhone 6 after 18 months of use.  Apple Service Center is not able to solve the problem it could material being associated and returned the phone, now I'm stuck with this expensive junk, the Iphone above 6 serious problem?

    I am in India, I was using Iphone 6, 16GB, for the last 18 months, bought in Australia, progressively, the touch screen not responding. Then the problem started to happen frequently. I said, all ideas update, (9.3.2) reset, restore, etc., etc., nothing helped, finally the Apple so-called service center has confirmed that it is a hardware problem, is not repairable and advised me to return the phone and scrap it or to pay nearly 60% of the phone cost to get another phone as replacement. (It might be a refurbished phone).  As I see a lot of complaints in the blogs on the problems of the iphone 6, Apple has not taken any measure to solve my problem and trying to make more money on behalf of replacement... Now I'm stuck with such a pricey gadget... should I buy new Iphone?

    Sorry, but an iPhone can be repaired by Apple or a Service provider authorized Apple in the country of purchase. If you think of buying a new device, buy it in the country where you will use it will save you a lot of trouble if you need service.

    And, according to usage, a 16 GB model might not have enough free space left to work properly, which can also cause the phone to lag and unresponsive at times.

  • My iphone is stuck with the itunes logo

    my iphone is stuck with the itunes logo. How can I unlock it? »

    Your phone needs to be restored. Take a look at the instructions here.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • How can I permanently disable obsolete warnings because I'm stuck with the old machine, I

    I'm stuck with OS 10.4 and can't update Firefox or plug-ins all further. Get - again and again! -caveat by Firefox. How can I disable those permanently?

    This is how you do it.

  • I want desperately to upgrade Firefox to version 10 of version 9, but whenever I try, I'm stuck with FF10 control addons for comparability and opening the homepage whenever I starts the browser.

    Windows 7 64 bit
    I want desperately to upgrade Firefox to version 10 of version 9, but whenever I try, I'm stuck with FF10 control addons for compatibility and opening the homepage whenever I starts the browser. I keep having to go back to version 9 to solve this problem.

    Sorry to be a while back! It tried unsuccessfully so this AM, gritted my teeth and deleted the FF programs folder and downloaded and installed FF 10.01. He was still struggling with the same problem. Went in the appdata folder and two files sessionstore.js there. Delete both, restarted the browser and no verification of the compatibility of the modules was done at first upward and the additional tab for welcome to FF was the opening is no longer all seems to work as it should and I did not lose any of my settings... Thanks for trying to help, and I hope that my solution helps someone else who could this experience in the future. Hoping that the next update will smoother!

  • When you surf, the URL does not change to reflect the page I'm. Also, if I have two consecutive sites, he is stuck with the first favicon and don't change either.

    Let's say I'm surfing a Web site. Any Web site. I type domain.com and start riding on the inside pages. "Domain.com" in the URL bar does not change.

    Also, if I visit two sites in a row and both have some favicons, I'll be stuck with the favorite of the first icon.

    They seem to be indications that the file that contains the details of the bookmarks and history is locked or damaged. This link should help - http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Laptop stops randomly and gets stuck on the saving settings

    Basically, we have some laptops 10 + this will stop randomly and get stuck on the "saving settings screens.

    Here are the different models of toshiba R500-R600 M10 M9 M5

    We changed versions of bios etc, reimagee them, even used an image of windows xp disc rather than soe.

    Hardware tests OK and customers do not something in particular, some when others when you connect using applications office, back in after a while. Some use docking stations, others not.

    All ideas

    Hello

    Just a question: are you an authorized service provider?
    I ask this question because it looks like you are an ASP because you have so many laptops and you have tested different things.

    It's really hard to say what the reason is for this but I think that in this case, you should contact Toshiba directly. Maybe it s a known issue and it can be fixed in a few minutes.
    So ask for it and wait for a response.

  • The Windows Setup program does not open. Stuck with black screen.

    Hi all

    I'm trying to install windows 7 from an iso file using Bootcamp assistant, Version 6.0.1 but unfortunately just windows installer does not open so I'm stuck with this black screen. I left my sit MacBookPro autour with this black screen during more than half an hour and after awhile, it gets really hot so I interrupted the "process."

    I have reset the NVRAM (command + alt + p + r) which did nothing.

    I followed the instructions of bootcamp. I downloaded the correct drivers for my model of mac pro book, I created a bootable and partitioned my drive.

    The forum has a lot of "black screen problems" but none of their solutions worked for me.

    Any help would be greatly appreciated!

    Thank you

    1. leave BCA creates the installer from USB, but not to partition your drive.

    2. download the correct drivers to install Windows 7 and previous versions on your Mac with Boot Camp - Apple Support and replace $WinPEDriver$, AutoUnattend.xml, and the entire folder on the drive flash USB2 Bootcamp.

    3. run BCA, connect the USB cable and click only the Windows Installer and test if the Setup program starts.

  • Re: L635 - 10 p - stuck with the blue screen and system repair

    I'm stuck with black repair screen of windows startup with the able to move mouse cursor. The normal windows startup ends with a blue screen:
    "unmountable boot volume".

    Unfortunately, there is no recovery disk. hope someone can help me here,

    1. how to operate again?

    2. How can I get the files in the desktop?

    Jin

    > I'm stuck with black repair screen of windows startup with the able to move mouse cursor.
    > Normal windows startup ends with a blue screen:
    > "unmountable boot volume".

    How did you start problem start? I mean if you have installed any driver or application or smth like that... In your place, I would like to reinstall Os than to try to fix it.

    > How can I get the files in the desktop?

    If you have important files smth on your hard drive, you can use Windows live cd to move them to a usb drive.
    By the way, have you tried to enter safe mode?

  • S30 stuck with the code "36".

    Hello

    I've got a S30 (0568) that no longer starts. It starts, presents some codes when displaying the motherboard and stops with code 36 on this view, no output on the monitor and fans running at high speeds.

    I couldn't find information about start to date codes. Any suggestions for what I could try to fix this?

    I've tried the CMOS clear jumper, without success (the system is stuck with code 36 for two jumper positions).

    Thank you!

    Koen

    Last Monday, I opened a ticket, and Wednesday, IBM replaced the motherboard. It seems now run fine (and it also fixed my other problem).

    I would be always interested in these codes, however!

    Koen

  • MathScript instability with large Matlab scripts? (Labview 8.5.1)

    Hello

    I the student of LabView 8.5.1 version and experiences a lot of instability when you use Mathscript in Labview (the Mathscript block or the Mathscript window), but only when it comes to the larger scripts. The Matlab script is about 250 lines long and 16 KB of size and in this framework, are seven large paintings (six 14 x 8, built at the beginning and a 1000 x 9 which is built in a loop for, so increases with each iteration until 1000 lines). I find that whenever I have modify the script in the Mathscript node or the Mathscript window will freeze and hang for at least 10 minutes, sometimes totally crashing Labview Labview. As I wrote the script in Matlab, I'll have to debug in Labview and know what commands in Matlab do not work in Mathscript/Labview, so it's obviously pretty infuriating to have the program regularly hang for 10 minutes at a time.

    The computer I use is a desktop Packard Bell 5 year with 768 MB of Ram (less 32 MB integrated graphics card), running XP Pro. The processor is an Intel Celeron 2.6 GHz. I appreciate this isn't the best specced machine ever, but at the time it was all I could afford!

    Is this common suspended a little problem with Labview and Mathscript file ".m" large, or is manipulation - this purely down to my old computer?

    Thank you much for the help.

    Hello

    The delay that you experience is a problem with the big scripts in MathScript.  The delay increases exponentially with the length of the script.  For this reason, we recommend disaggregation great scripts and files ".m" in rooms separated by about 40 lines.  On faster computers, you can find the acceptable period for up to 100 lines.

    Grant M.
    Staff software engineer | LabVIEW Math & Signal Processing | National Instruments

  • I'm stuck with several GB of music files on my phone and I can't get down them!

    The other day I tried to install an application on my phone, but I didn't have enough memory.  My phone is full of music via iTunes synchronisation dock. So I connected it to my computer to try to make some more room. But there is a problem.

    (1) Apple does not play nice with Palm. Synchronization is no longer permissible or possible. I can't use iTunes to manage/delete music.

    (2) in USB Mode, there is no way to access/view the library. It's just not there.

    I tried Palm support, and they confirmed that the USB Mode is not working. I guess that the library is located in a hidden folder or directory. They suggested that I downgrade my iTunes. Goal that is unacceptable to me because one) it forces me to break the license Apple, b) it is not taken in charge, and c) if there is still a remote chance it will mess up my iTunes library, I won't.

    I'm ready to get off at Palm headquarters and throw my phone to their building.

    Can someone tell me how to delete my library without hacking iTunes?

    I thought about it. Support, put this in your KB. Everyone who was sync via iTunes on a Mac is currently STUCK with several GB of music on their phone that they cannot manage or remove, which makes the Palm Pre a lot less useful than announced.

    USB mode is a waste of time for people on a Mac. These hidden files are never going to be visible, and the library cannot be removed. The solution: go through a PC. Anywhere, any PC will do. Connect your phone to the PC, go to the USB drive Mode and show hidden files, then delete them from there.

    I got an old laptop lying around at the bottom, and the problem was solved lickety split.

  • Windows Vista stuck with "update configuration".

    Whenever I stop Windows Vista, System stucks with "Configuring updates" appearing on the screen.

    The original post has been read.

    The original post has no importance now.

    What you do not understand, is that you now do a logoff and reboot for a fresh start of windows.

    The problem should be gone because the download folder has been emptied.

    and if the problem is still there, start the system in safe mode and then rinse the folder download again.

  • Windows Update stuck with 'Check updates'

    Separated from this thread.

    I have also the same problem rmahmud28 is seen except mine is Windows 7. He is stuck with 'Check updates' and I've already updated the Windows Update Agent. I tried some other stuff, like your FixIt tools, but nothing.

    No idea why or how... the problem was solved by itself. Looks like I have left no system check all these 300 updates available for download.

    Thanks anyway

Maybe you are looking for

  • 16.0.2 Firefox crashes when you press browse to upload a file

    Using XP Pro Firefox crashes whenever I press a browse button. I have to force close with the Task Manager. I tried to delete the keys of registry MRU such as suggested in a previous question closed, but that did not help.

  • Update graphics ATI catalyst on Satellite Pro A300

    Is it possible to update the graphics card ATI Catalyst or the drivers for my graphics card? Today, I got a notice that something is wrong with MMLoadDrv.exe (sorry I don't remember exactly what he said) and that the update will solve the problem. I

  • my old phone 4S is off, say, connect to itunes

    My old iPhone is off, say, connect to iTunes

  • DV7 windows 7 running slow

    computer laptop dv7 runs very slowly - the problem is the following: 1 I couldn't restore the ghost image - it turns out that the drive is in a dynamic way 2 I did a backup of files 3 I changed the drive on the shoulders - the same partition layout 4

  • HP 2550 Toolbox for windows XP

    Is there a download for the Toolbox to 2550L using windows XP. If not, is there another way to measure levels of ink etc. Thank you Larry B