Does anyone have a LISTENER heartbeat script

Instead of reinventing the wheel, does anyone have a heartbeat script that runs on Unix (HP-UX 11.0) and checks the status of the Listener (e.g., if the Listener is down, reload/restart)?? Many thanks in advance....

This is a very basic script, just written for you on CS3 and totally untested:
if (app.documents.length == 0){
    alert ("Please open a document, select an object, and try again.");
    exit();
var myDoc = app.activeDocument;
var myPage = myDoc.layoutWindows[0].activePage;
var myPageId = myPage.id;
var myDialog = app.dialogs.add({name:"Duplicate pages"});
with(myDialog.dialogColumns.add()){
    with(borderPanels.add()){
        staticTexts.add({staticLabel:"Duplicate front-most page # " + myPage.name});
        var myIntBox = integerEditboxes.add({editValue:1, smallNudge:1, largeNudge:10});
        staticTexts.add({staticLabel:" times"});
var myResult = myDialog.show();
if(myResult == true){
    var myNumber = myIntBox.editValue;
    if (myNumber < 1) {
        alert(myNumber + " is invalid number.");
        exit();
    for (i = 0; i < myNumber; i++) {
        myPage.duplicate(LocationOptions.AFTER, myDoc.pages.itemByID(myPageId));
myDialog.destroy();
It duplicates the active (the front-most page) — its number you see in the bottom left corner of the document window. You can type a number or use up/down arrows to increment it by 1 (add shift key to increment it by 10).
Hope it helps.
Kasyan

Similar Messages

  • Does anyone have sqlmenu50 create table script

    Hi,
    I need to create the sqlmenu50 database tables, but I seem to have lost the create table script for this.
    If anyone could please help me, I would be very grateful.
    Please email to [email protected]
    Many thanks
    Tony

    Ken , many, many thanks!
    I have actually broken down the import scripts to about 5 with about 200 entries each.
    I do find that about a dozen entires have errored with parameter has wrong length, the odd thing is all the TPIMPORT statements were created from the same Excell macro. ie., the transports were sequentially entered in an excell spreadsheet to ensure the correct sequence
    I then created a macro (as recommended from this thread) that created a large script for import
    I took this one step further and split this large file into smaller files/scripts of about 200 entries. 
    I have only run the first of 5 entries, and it is puzzling to me why I get the error 'parameter has wrong length'  the statements are cookie cutter statements, exactly the same. see error below
    E:\SAP Software\SAPPHYR Transport Log\TPImport Scripts>tp import ECDK901251 ECP client=200 U126 pf=d:\usr\sap\transcopy\bin\TP_DOMAIN_ECP.PFL
    This is tp version 372.04.40 (release 700, unicode enabled)
    ERROR: : parameter U126 has wrong length
    And a successfully statement result below
    E:\SAP Software\SAPPHYR Transport Log\TPImport Scripts>tp import ECDK900229 ECP client=200 U126 pf=d:\usr\sap\transcopy\bin\TP_DOMAIN_ECP.PFL
    This is tp version 372.04.40 (release 700, unicode enabled)
    This is R3trans.exe version 6.14 (release 700 - 28.07.08 - 15:52:00).
    unicode enabled version
    R3trans.exe finished (0004).
    tp finished with return code: 4
    meaning:
      A tool used by tp produced warnings
    You can observe the statements are identical starting at "tp import ECDKxxxxx ECP etc...
    any ideas why they would error?
    Regards,
    Maria

  • Whenever I am listening to itunes on my iphone and plug it in to my USB in my car radio, the song stops and instead the first alphabetical song is played. Does anyone have any ideas?!

    Whenever I am listening to itunes on my iphone and plug it in to my USB in my car radio, the song stops and instead the first alphabetical song is played. It also does this when it's been plugged in the car, and then I remove it, and it reverts back to the first alphabetical song. This has only happened after I updated my phone. Does anyone have any ideas?!

    I appreciate the commentary response but I'm not sure how this resolved my problem.  The car was made before the iPhone coming out.  By this fact, it would seem as if Apple has not made the product to compliment cars made before it.   
    Can anyone provide me steps to resolve this issue please?
    Thanks,

  • SCOM 2012 SNMP Trap - Does anyone have it working?

    I am wondering if anyone out there has had any luck with getting SNMP Traps to be captured by SCOM 2012?  Probes work fine.
    We have been unable to get SCOM 2012 to receive a SNMP Trap from network devices.  We currently have a case open with Microsoft, but they dont have any answers as of yet.
    Here are the cliff notes version of what we have done so far.
    Discovery - OK
    The nodes discover without issue.  I made sure they were set to SNMP only.  I did this to verify we were talking SNMP and not just ICMP.
    Open Ports/Firewall Issues
    No firewalls are in place on the SCOM server and none exist between devices we are trying to get traps from.  Using a port tool, I can see that UDP 162 is listening as expected and its the System Center Management Host Process that is running the
    process.  We have tried having SNMP installed, but disabled, installed and running, and uninstalled.  Currently we have the SNMP service installed and running.  The SNMP Trap Service is NOT installed.
    Data Validation
    Using Wireshark running on the SCOM box I have been able to validate the OIDs we are searching for are hitting the SCOM server.  I installed an SNMP Trap generator and Receiver on my local machine as well as Jalasoft SNMP Simulator.  I was able
    to discover my local machine as a network device and if I send a TRAP from the TRAP generator on my local machine to the receiver on my local machine I can validate the data is coming through ok.
    What has been done on SCOM side
    The simplest place to look for data is with an Event Collection Rule and then an Event View Monitor.  We have set up an Event Based Monitor to search for an OID that I know to be accurate and then I set up an Event monitor to look for
    anything hitting that Collection Rule.  The Event monitor showed nothing so we changed the EVent Monitor to look for anything that hit Node which should show any SNMP traps that have hit from network devices.  No results.
    We tried to run WFAnalyzer from the 2007R2 Authoring Console, but it wont run against 2012 and from what I have found the 2012 edition doesnt exist anywhere yet.
    So has anyone succesfully received a SNMP TRAP into SCOM 2012?

    Hi,
    As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as "Answered" as the previous steps should be helpful for many similar scenarios.
    In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems.
    Thanks,
    Yog Li
    TechNet Community Support
    How could you possibly mark this as answered? No answer was given, it was quiet for a couple of days including one of which was a holiday in the US. The previous steps are NOT helpful.  The question remains, Does anyone have it working?
    People have given troubleshooting advice, but nobody has actually answered the simple question.  Do they have it actually WORKING?

  • With the new Yosemite update (10.10.3) I can no longer transfer my photographs into Adobe  Photoshop Elements by the previously expedient  'click and drag' method. Neither am I able to import or export them. Does anyone have suggestion on moving them?

    With the new Yosemite update (10.10.3) I can no longer transfer my photographs into Adobe
    Photoshop Elements by the previously expedient  'click and drag' method. Neither am I able to import or export them. Does anyone have a suggestion as to how to move pictures between the new Photos and Adobe Photoshop?

    Ah yes school boy error there out of frustration and discontent..
    My issue is with music/apps/films etc not downloading from iTunes / App Store.
    They initially fail and message is displayed stating unable to download / purchase at this time, yet if I retry it says I've already purchased (?) or alternatively I go to the purchased section and there they are waiting with the cloud symbol..
    However some items get frozen in the download window and cannot be retried or deleted. Message appears stating to tap to retry, but even if you stole every bath and sink in the uk you'd still not have enough taps.
    I post here as the iTunes guys are useless in there 'help' and have only advised posting here or phoning apple, at my expense, to explain a problem that could be rectified by forwarding my original email to a techie. However the tech team apparently don't have an email address as they're from ye olde Middle Ages..!
    Anyways I digress.
    So I tried sync to pc, but instead of showing the file as ready to listen/use/view, the iCloud symbol shows and I'm back to square one as the item is unable to download..
    At frustration station waiting for a train from pain...
    All my software is up to date, and had all worked fine prior to the last big iOS update that resulted in all the changes in display and dismay.
    Answers in a postcard :-)
    Much love

  • Cannot connect airport express to ipad I keep receiving the message: "an unexpected error occurred" when I try to connect my Ipad to my airport express.  Does anyone have a solution?

    cannot connect airport express to ipad
    I keep receiving the message: "an unexpected error occurred" when I try to connect my Ipad to my airport express.  Does anyone have a solution?

    I could not "see" my Express via my wireless router or via the Airport Utility until I reset it to Factory Settings by unplugging it then holding in the tiny reset button while plugging it back in, waiting for the flashing yellow LED signal before letting go.
    Then I set it up to DHCP - "connect to wireless network" and DOWNGRADED the firmware to 7.3.x
    I would tell you the exact Firmware but I can no longer "see" the Airport express............ AGAIN or still.....
    BUT at least I am listening to music streaming from my MacBook Pro... Hmmm.
    I log back into the router (Linksys WRT110) and it no longer shows the Airport Express as a DHCP client AND the Airport utility can no longer "find" any Airport Devices..
    So if I don't move, or there are no cosmic events, or maybe my KARMA is effecting the device or my "VIBES" are good, but I'm not sure if will continue to work.. Sure would like to use this little device from hel*.
    Since I have had this Airport Express I have spent many hours trying to get it to work.
    It works just long enough to fool me and then takes a dump...
    Maybe this time?
    5 Minute later...
    Music was playing. I went into iTunes and switched from Airtunes to Computer speakers. When I tried to switch it back GUESS WHAT?
    [An unknown error (-15006) occurred while trying to connect to remote speaker "Airtunes"]
    Wonderful Green LED though. Totally useless piece of equipment AFAIK.
    Message was edited by: Daniel Shattuck

  • Does anyone have a sample implementation plan that can be shared?  High level?

    Does anyone have a sample implementation plan that can be shared?  High level?

    You will probably need to inquire with a VMware consultant to get this kind of information.  VMware depends on these people to make sure they keep the reputation of the software at a very high level.  
    They will have access to various free tools to help large and small scale deployments.  Tools like VMware Health Check Script and the ESX deployment tool.
    If you find this information useful, please award points for
    "correct"
    or "helpful".
    Wes Hinshaw
    www.myvmland.com

  • Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Welcome to the Apple community.
    Does anyone have suggestions?
    Trash the spyware (Chrome) and use Safari.

  • I've just upgraded to IOS 7.0 on my iPhone 5 and the calendar is horrible!  I want to be able to see the who day at a glance not a few hours.  Does anyone have any suggestions?

    What's happened to the calendar in IOS 7.0?  I would like to be able to see the whole day at a glance not just a few hours.  Any suggestions?

    I know what it looks like and what it does.  I need to be able to see the whole day!  A few hours is not helpful for knowing whats ahead.  I don't want to scroll I just want to be able to look at a glance.  Does anyone have any helpful suggestions.

  • While saving a file, I have converted all my files to Pdf.  The only way to restore previous is to delete Adobe.  Does anyone have a soution?

    While saving a file, I have converted all my files to Pdf.  This made everything inaccessible, even Explorer.  I had to delete Adobe to get back to some of the previous files.  I tried to restore system to previous, but I kept getting a pop up message that said I did not have enough shadow space.  Does anyone have a solution?  Greatly appreciate your help.

    Application, file icons change to Acrobat/Reader icon

  • After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer. Does anyone have any advice on how to fix this issue?

    After moving to iCloud I can only get my email through the cloud, no new emails are making it to my home computer and .mac account. Does anyone have any advice on how to fix this issue?

    Welcome to the Apple Community.
    Which OS are you using.

  • I have tried everything that is recommended by apple to get my ipod shuffle 4th gen to sync with itunes or even show up on my computer does anyone have suggestions?

    i have tried everything that is recommended by apple to get my ipod shuffle 4th gen to sync with itunes or even show up on my computer does anyone have suggestions?

    Hey Xxx_Dank_xxX,
    Have you ever been able to sync your iPod shuffle to iTunes on your computer, or has something recently occurred?  Are you working with a Mac or a PC?   Without knowing what has been recommended to you, I'm going to start here with the basics troubleshooting for this issue.
    iPod shuffle (4th generation): Not seen in iTunes - Apple Support
    https://support.apple.com/en-is/HT203407
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
    https://support.apple.com/en-is/HT204095
    Regards,
    Judy

  • I have the latest photoshop cc 2014, but i dont see perspective warp in it, does anyone have an idea why

    I have the latest photoshop cc 2014, but i dont see perspective warp in it, does anyone have an idea why

    As you can see, its in Dutch, please comment

  • Under Windows 7 Ultimate x64 and Boot Camp, my 27 inch Apple LED Cinema Display checks out as a Generic PnP Monitor and is shown as NOT HDCP compliant.  I haven't been able to find any kind of an .inf file to use.  Does anyone have a solution?

    Under Windows 7 Ultimate x64 and Boot Camp, my 27 inch Apple LED Cinema Display checks out as a Generic PnP Monitor and is shown as NOT HDCP compliant.  I haven't been able to find any kind of an .inf file to use.  Does anyone have a solution?  Or is Apple's implementation of HDCP (if it's there) incomplete?

    I am having this same issue. Im not sure if this is the cause but I think this is keeping PowerDVD Ultra 11 from playing back Bluray under Windows 7 / Bootcamp

  • I recently bought, from the original website of Adobe, Photoshop elements 13. However, when I go with my mouse pointer over the menu, It hangs or he works very slow. Does anyone have an idea how I can fix it? I have already downloaded updates, both from A

    I recently bought, from the original website of Adobe, Photoshop elements 13. However, when I go with my mouse pointer over the menu, It hangs or he works very slow. Does anyone have an idea how I can fix it? I have already downloaded updates, both from Adobe and Windows. I have a new pc with window 8.1.

    It could be a coincidence, but I rebooted the machine and (knock on wood) PSE13 seems to be working ok.

Maybe you are looking for

  • How do I view my backed up photos?

    I would like to see the photos I have backed up, and don't understand how to access the backup.

  • Directory structure contained in bookmarks

    To whom it may concern, Is it possible to preserve/show the directory structure of series of PDF files that are combined using Acrobat Professional? I have various PDF files sorted with a specific directory structure. I would like the combined PDF fi

  • Problem in standard routine 0RPM_DSKF in transfer rules 0rpm_role_d

    HI all, I am extracting the data from xRPM 4.0 to BW 7.0.Even though i am using BI 7.0 presently we are using 3.5 only.I have installed the transfer rules after that i am trying to activate the transfer rules .But i am getting the error with standard

  • How to partition on string value in 8i

    Hi all, I am on 8.1.7 and want ti use partitioning. I have a column for holding country_id (like US, GB, JP etc). I want to partition the table on the base of country ids. How can I do that? I know, in 9i I could have done list partitioning. Any expe

  • EA4500 router and media server file limit

    I purchased an EA4500 router yesterday and it arrived today. Set it up, copiued my media library over to a new Seagate Expansion drive (2 TB) and it currently is filled with 320GB of files. Music folder, Pictures folder and Video folder. Thing is onl