Disable error message in applescript application

I have an applescript application that basically tests for a certain condition.  If that condition is met, it does one task.  If there is an error, it performs another task.  The problem is that when it runs as an application, if it runs into the error, it pops up a message box with that error.  I would like it to just continue to the portion of what to do when the error occurs and not bother the user unless really needed. 
Here's the script I've made into an application that this is occuring in (was originally found on some other forums and modified for our need):
try
  -- test for Kerberos ticket presence and attempt to renew
          set kerb to do shell script "/usr/bin/klist | /usr/bin/grep krbtgt"
on error
          try
                    set renewKerb to do shell script "/usr/bin/kinit -R"
          on error
                    set ping to do shell script "ping -o -q xxxx.xxxxxx.com"
                    --Server name change to protect our innoconce.
                    if not (ping is equal to "") then
  -- offer to renew Kerberos ticket
                              set response to (display dialog "Your Kerberos ticket has expired. Would you like to authenticate to generate a new ticket?" with icon 2 buttons {"No", "Yes"} default button "Yes")
                              if button returned of response is "Yes" then
                                        try
                                                  set thePassword to text returned of (display dialog "Enter your logon password:" default answer "" with hidden answer)
                                                  do shell script "/bin/echo '" & thePassword & "' | /usr/bin/kinit"
                                                  display dialog "Kerberos ticket acquired." with icon 1 buttons {"OK"} default button 1
                                        on error
                                                  try
                                                            set thePassword to text returned of (display dialog "Password incorrect. Please try again:" default answer "" with icon 2 with hidden answer)
                                                            do shell script "/bin/echo '" & thePassword & "' | /usr/bin/kinit -l 10h -r 10h --password-file=STDIN"
                                                            display dialog "Kerboros ticket acquired." with icon 1 buttons {"OK"} default button 1
                                                  on error
                                                            display dialog "Too many incorrect attempts. Stopping to avoid account lockout." with icon 2 buttons {"OK"} default button 1
                                                  end try
                                        end try
                              else -- if No is clicked
                                        quit
                              end if
                    else
  quit
                    end if
          end try
end try

I think I figured it out.  I added another try on error on the ping part and it fixed the issue.  The error was showing up on the ping part so it should be ok now.

Similar Messages

  • I am trying to open my iTunes on a Windows XP laptop and get the error message 42404 "iTunes application could not be opened.  Please repair or reinstall QuickTime".  I did that and it did not help.  Any ideas?

    I am trying to open my iTunes on a Windows XP laptop and get the error message 42404 "iTunes application could not be opened.  Please repair or reinstall QuickTime".  I did that and it did not help.  Any ideas?

    Let's see if a more rigorous uninstall/reinstall procedure gets us past that, nancy. See the following troubleshooting document:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP

  • Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,,  Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"

    Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,,  Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"

    Sorry for the late reply. My email firewall has become a little over zealous & sent a lot of my emails straight to my junk email folder, so I have only just now discovered your reply in my junk mail folder.
    The only "don't open files exceeding xxx megabytes" instruction I can find in my Prefs, is in the Bridge Prefs for Thumbnails, & mine is set at 1000mb. The biggest files I handle are bigger than 200mb so I should be able to open a few, not just one.
    However, this doesn't explain why I can open a psd format file of 180mb, close it, but then can't open a RAW format file of only 26mb immediately after.
    I can open the RAW file only if I restart my computer - very annoying!
    However, thanks for the advice about the video card & memory.
    So, I'm still stuck as to what the issue is.

  • Error Message reads: this application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem.  I have re-installed, SO many times and I still cant open iTunes.

    Hi Support,
    I am becoming anxious because no matter what I try it doesnt seem to allow me to open itunes.
    Error Message reads: this application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem.
    I have re-installed, SO many times and I still cant open iTunes.
    Please help!!

    Click here and follow the instructions.
    (98888)

  • TS3276 Can't open web addresses from an email-get an ERROR message saying-no application could be found

    Can't open web addresses from an email-get an ERROR message saying-no application could be found

    Hi, I had the same problem. I finally figured it out. Plug in the USB cord to your ipad, but beofre plugging it into your computer make sure your ipad is not in the locked or sleep mode. Once I did this, my photos showed up and started downloading. Hope that helps you!

  • HT1926 I have just updated itunes on my pc (widows XP) to the latest version. When I try to open it i get an error message saying the application failed to start because MSVCR80.dll could not be found. Not sure how to resolve this. Have tried to reinstall

    I have just updated itunes on my pc (windows XP) to the latest version. When I try to open it I get an error message saying the application failed to start because MSVCR80.dll was not found< Have tried reinstalling with no luck. Any ideas?

    try removing all itunes and all other apple program
    follow this link for more info. http://support.apple.com/kb/HT1923
    reboot ur window after uninstalling
    after that download the latest itunes setup and install.

  • How to remove error message power pc applications no longer supported

    How do you install photoshop 7.0 disk drive on a mac os x with the error message, "Power PC applications are no longer supported"?

    Which version of mac os x are you trying to install photoshop 7 on?
    If you really do mean photoshop 7 (cira 2002), then it won't work on any newer intel macs.
    Photoshop 7 needs an PowerPC processor and your mac probably uses an intel processor.

  • "IWD Bus Enumerator disabled" error message in LSC after Windows 8.1 upgrade

    Hi there,
    I just upgraded my T430 from Windows 8 64-bit to Windows 8.1 64-bit.
    After restart, LSC shows an "IWD Bus Enumerator disabled" error message. I went to the device manager, right clicked on IWD Bus Enumerator and selected the "update driver software" option. Message came back that the latest driver is already installed. By the way, in the device manager there are two lines "IWD Bus Enumerator", where the first line is normal (i.e., enabled), and the second line shows that error message (yellow triangle).
    What next? Any ideas? My laptop seems to work fine, otherwise.
    Best,
    Sven
    Solved!
    Go to Solution.

    I resolved my issue by going to device manager and selecting View Hidden Devices - then expand System Devices
    In my case there were 2 listings for IWD BUS ENUMERATOR - one had the yellow triangle - I uninstalled that one and restarted my laptop and the message was gone. If that does not work make sure you get the latest drivers from Lenovo and also visit Intel.com and search for WiDi - they have some programs to check drivers.

  • I get an error message: R6034 -An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information. I just finished backing up my iphone on my hp laptop when I got this message.

    When I finished backing up my iphone 5 to my hp pavilion laptop I got an error message R6034. Itunes shut down and I have not been able to reinstall it. The error message says an application has made an attempt to load the C runtime library incorrectly. My computer is more than 5 years old and I have never had this problem before. I tried unsuccessfully to reinstall itunes. Any ideas?
    bdaumen

    Hello iTunes_Bad_Update,
    The following article provides information and troubleshooting steps that can help get iTunes back up and running.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

  • When I try to install iTunes, I get an error message that Apple Application Support is required.

    When I try to install iTunes on my Windows 7 PC, I get an error message that Apple application support is needed. What do I need to do?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if Apple Application Support won't install normally. You could try this approach first.
    tt2

  • Every time I try to run iTunes I get an error message sayinh: An application has made an attempt to load the C runtime incorrectly. What does this mean

    Every time I try to run iTunes I get an error message sayinh: An application has made an attempt to load the C runtime incorrectly. What does this mean

    Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
    http://www.apple.com/itunes/download/
    (The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
    Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
    If you still have the same error messages cropping up, then try the procedures from the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • When trying to launch ITunes I get an error message saying that application fail to start because MSVCR80.dll file not found. Reinstalling app may fix problem.

    When trying to launch ITunes I get an error message saying that application fail to start because MSVCR80.dll file not found. Reinstalling app may fix problem.

    I've just (finally) managed to fix this problem today. I checked the Apple Support forums, and it seems a lot of people are having the same problem.
    I rang the Apple Support line, and the very helpful man (thanks Alan!) talked me through it stage by stage. If you go to the following page on the internet: http://support.apple.com/kb/TS5376   it takes you through the process. WARNING - it takes a little time!
    Basically, the first thing you have to do is go to your Program Files and double click on your iTunes folder. There'll be a number of files with the suffix .dll - you need to move all the .dll files from that folder to your desktop - you can simply click and drag them on the desktop..
    Next, uninstall iTunes - go to Control Panel / Add/Rempve Programs and when the list comes up remove iTunes. This will take a few minutes... Then reboot your computer.
    Next, go back to Control Panel / Add Remove and Remove - IN THIS ORDER -
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot again!
    Next, check in your Program Files that the iTunes folder is completely gone - if it has, great: if it hasn't, right-click on the folder and press Shift and Delete - it will say "Are you sure you want to completely remove the folder "iTunes"? Click on "Yes".
    Reboot!
    Then go to the iTunes download page and voila! It should download iTunes without any problems... well it did for me.... Good luck!

  • TS1538 Last night iTunes on my PC tried to run an update.  Prior to the update, it was working perfectly. At the end of the update I got an error message R6034, an application has made an attempt to load the C runtime Library incorrectly.  Any suggestions

    Last night iTunes on my PC tried to run an update.  Prior to the update, it was working perfectly. At the end of the update I got an error message R6034, an application has made an attempt to load the C runtime Library incorrectly.  Any suggestions?  I have also gotten a message that iTunes is not installed correctly, to reinstall.  Reinstalling give the the same two errors over and over.  Restarting my computer does nt help.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I am unable to download the free elements trial. Error message reads:This application cannot be ins

    I am uanable to download the free trial elements 11 upgrade. An error message reads This application cannot becuase the installer has been misconfigured. Please contact the application author for assistance. HELP

    Download again using another browser.
    Mylenium

  • When trying to open a Word document, I get the error message that PowerPC applications are no longer supported.  What can I do?

    When trying to open a word document, I get the error message that PowerPC applications are no longer supported.  What can I do?
    Thanks.

    IMHO the free apps are a band aid fix. If the OP uses Office on a regular basis he will need to upgrade anyway. Personally I have used neooffice and found it substandard however that was just my take. I haven't tried Google's solution.
    We both forgot to mention the OP could also use Pages and Numbers to open their Word and Excel files. If he uses Entourage then Mail and iCal would be viable substitutes.

Maybe you are looking for