Using applescript to react to a application error

Hey, my friends
I want to using applescript to handle with some application error. For example, I send a iMessage to my friend for the first time, after a while the Message application may return a messagebox said that he is not using iMessage service. And I want my computer say it out loud using "say" script. How can I do that? Or is that impossible?
There might be a way by using some error log file belongs to the application from which I want to be notified if an error happend. But I don't know where I can find those log files.
Any ideas?
Thanks!
Qiu.

I'd figure out how to do the shutdown from the command line.  You then should be able to do this from an applescript.
There is some way of initiating an apple script on a remote machine but I do not know how.
What OS is the remote server using?
Robert

Similar Messages

  • While using firefox often i come across application error dialog box.if i click any option in this dialog box my firefox restarts. pls give me a solution to get rid of this problem

    this problem happens when i click websites of search results

    Install Java via http://www.java.com/en/
    Also install the Quicktime plugin via http://www.apple.com/quicktime/download/
    If the problem persists, try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.

  • Application error while processing DespatchDeliveryNotification_IN proxy

    Hello Gurus,
    I am seeking a help from you all. When I try to create ASNs using DespatchDeliveryNotification_IN proxy am getting an 'Application Error' stating 'Sender party is Invalid'. But with the same sender ID I have created so many ASNs manually. What would be exact problem?
    My requirement is, I have to create ASNs using DespatchDeliveryNotification_IN, it will be called from PI system, we are passing almost all the information, in SPROXY transaction message status showing red flag which means that error. In trace I found that 'Error while processing pipeline' - 'Sender party is Invalid'. Please help me out
    One more point I wanted to inform you, when I tried to execute provider class(/SCA/CL_BIF_DESDELVRY_IN) method (/SCA/II_BIF_DESDELVRY_IN~EXECUTE_ASYNCHRONOUS) from SE24 which is associated with DespatchDeliveryNotification_IN proxy, with out any input data I got an exception 'Exception /SCA/CX_BIF_DESDELVRY triggered' and message 'Application Error', So is it any way related with configurations?
    Thanks in advance!!
    Pallu

    Hey,
    Can you check the HTTP Destination is good,
    Cheers
    Agasthuri

  • Using AppleScript to launch an application on a different machine

    Hi there,
    I'm trying to use AppleScript to enable a couple of my Macs to talk to each other.
    On one machine, I want to use this script:
    tell application "Finder" of machine "eppc://user:[email protected]"
    launch application "Rivet" of machine "eppc://user:[email protected]"
    end tell
    to have the other machine launch Rivet, a video server that I can access from the PS3/iPhone/iPad
    everything seems to work without issue (i.e. no errors), except it doesn't do anything.
    I see a line written to the console on "helium":
    9/23/10 18:48:30 com.apple.AEServer[3535] launchproxy[3535]: /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Versi ons/A/Support/AEServer: Connection from: xxx:xxx:xxx:xxx:xxx:xxx%en0 on port: 60571
    every time I run the script on the other machine, but, like I said, nothing else happens.

    After much searching and trial and error I finally discoverd Hiroto's suggestion from way back in 2001. It is the only solution I have found that actually works to launch/activate any application on a remote Mac using an applescript on a local Mac.
    I have one Mac Mini running household control applications Indigo and iRed. I wanted to use embedded AppleScripts in those applications to launch and control PandoraBoy on another MacMini that I use as a media center. I discovered that you cannot activate an application on a remote Mac unless it's already running. (Only God and Apple know why!) And, of course, if you want to launch and application--it's usually NOT running!
    But the following works:
    set remoteMachine to "eppc://RemoteMachineName:[email protected]"
    tell application "Finder" of machine remoteMachine
    open ("/Applications/PandoraBoy.app" as POSIX file as alias)
    end tell
    THANK YOU HIROTO!!!
    Once the remote app is actually launched/activated you can then send AppleScript commands to it as follows:
    set remoteMachine to "eppc://RemoteMachineName:[email protected]"
    using terms from application "PandoraBoy"
    tell application "pandoraboy" of machine remoteMachine
    playpause
    end tell
    end using terms from
    I have also learned that the application to be controlled on the remote machine must also be present on the local machine and "using terms from" must also be used in the control script for this to work.

  • EventHandler Error while using AppleScript

    hi,
    I use AppleScript to launch Acrobat and run a preflight. Running this a script creates an "Not specfied EvnetHandler Error".
    I guess it come from resolving the filename and path. May somebody nows the "way" to define the preflight profile directly in the script.
    on run this_file
    try
    process_item(this_file)
    end try
    end run
    -- this sub-routine processes files
    on process_item(this_item)
    try
    tell application "Finder"
    set myPath to path to me
    end tell
    with timeout of 1 second
    tell application "Adobe Acrobat Pro"
    activate
    delay 1
    «event PRFLPRFL» this_item given «class PATH»:myPath
    end tell
    end timeout
    end try
    end process_item

    user10310678 wrote:
    I am using beta version. Oracle VM Manager 2.2.0If you have a beta version of 2.2, then you should be an Oracle employee. Please ask this question on an internal mailing list. If you are not an Oracle employee, please ask the employee that gave you this beta. As this is a beta, some functionality may not be operational yet, so I can't answer why this particular feature seems not to work.

  • Using applescript to open "any" images in an specified application?

    I want to use applescript as part of a workflow in Automoator.
    Automator already takes care of the renaming and resizing of my pics.
    Then I want applescript to take each pic that I throw at it and apply it to an image optimizer application I have.
    I've looked all over gooel and I can' find anything.
    Everyscript I see has a specific file name or folder.
    I want applescipt to take a file with any name and launch "ImageOptim" and open the file with ImageOptim.
    This app is a drag and drop app, just drop your pictures on the window or on the icon and it'll optimize your pics on the spot. It doesn't create a new file, the file itself is changed.
    And that's it.
    I had this but it doens't work
    set this_file to choose file without invisibles
    try
              tell application "Finder"
      activate
                        open application file "ImageOptim.app" of folder "Applications" of startup disk
                        set this_image to open this_file
              end tell
    end try
    Thanks for the help.

    Red's already shown you one solution, but your script has multiple errors and it's worth clarifying them
    set this_file to choose file without invisibles
    OK, nothing wrong with this line
              tell application "Finder"
      activate
    There's no need to activate the Finder to perform this task. The Finder's quite happy to run in the background.
                        open application file "ImageOptim.app" of folder "Applications" of startup disk
    This opens the application.
                        set this_image to open this_file
    This would open this_file - except that this command is completely independent and disconnected from the previous command - in other words you're just telling the Finder to open the file, it doesn't care about what other commands you might have asked it to run previously.
    The solution is to tell the Finder to open the file using the specific application you want.
    Another option may be to eschew the Finder altogether, and just tell the app to open the file:
    set this_file to choose file without invisibles
    tell application "ImageOptim" to open this_file

  • I used to update my iPhone 4S applications whenever a new update is available, but at this time, "unknown error" displays after entering my apple id password. Anyone who could help, whom they might have experienced? Thanks

    I used to update my iPhone 4S applications whenever a new update is available, but at this time, "unknown error" displays after entering my apple id password. Anyone who could help, whom they might have experienced? Thanks

    Hi Christianjr,
    When you say you reset your network settings, what do you mean, exactly?
    I saw another post on this issue, and the poster indicated that they resolved the problem by turning off their cellular date option and wifi options in Settings, and then turned them back on.
    Also, resetting your phone may help - press the Home and Power buttons at the same time and continue to hold both down until the Silver Apple appears. Once it is back up, click on the update option and see if it fixes the problem.
    If none of those things work, then need to have details on what you did to reset your network settings....
    Cheers,
    GB

  • Using LabVIEW 6.0.1 in Win2K, I get the Application Error: The instruction at "0x004be060" referenced memory at "0x00000001". The memory could not be "read".

    I have several VIs that use the same typedef. This "super" typedef consists of of a cluster containing 6 arrays. Each array has elements that are themselves typedefs. The array element typedefs consist of a cluster of strings, a string array, and yet another cluster typedef of instrument handles. The total number of unique typedefs is 13 (1 super, 1 as the array element in the 6 arrays, and 1 in each array element).
    When I make any changes to any of these typedefs and I try to open a VI that uses the "super" typedef, LabVIEW stops loading subVIs and crashes with the Application Error: Application Error: The inst
    ruction at "0x004be060" referenced memory at "0x00000001". The memory could not be "read". Also note that this VI contains several subVIs that use this "super" typedef for terminal inputs and outputs.
    What is causing this problem? My only solution to this is to rename the "super" typedef, open the VI, ignoring the load of the "super" typedef, and once the VI opens (with a broken arrow) relinking the VI to the typdef after renaming the typedef back to the original name. This becomes quite painful when you have to do this for each and every VI that uses this typedef on every revision of the typedef.

    You might want to first install the 6.0.2 patch before digging too far into this. You can download it from the ftp site:
    ftp://ftp.ni.com/support/labview/windows/updates/6.0.2/
    If the problem remains, then it is likely related to a few known issues with strict type defs. Unfortunately, there is not much that can be done about it at the present time. You might try having the *.ctl file open in the editor when you open the VIs to see if that helps.

  • Disabling "Application Error" to restart using restart button in sxmb_moni

    Hi Experts,
    I have a scenario of JDBC to inbound Proxy.In this we have created Fault message type to capture any error.The requirement is to disable the option of Restart in SXMB_MONI for application error generated with Fault message.We have done coding for generating application error in inbound proxy code.Looking for a quick reply.
    I am looking for disabling the "Application Error" generated from Fault message of inbound proxy to "Resart" using Resart button in SXMB_moni of Application system ECC.what I am referring to is how to disable u201Crestartu201D (not resend) of the messages in SXMB_MONI if they have errors.
    For example, the interface to load some entries calls a proxy which may load some messages successfully and some may result
    in errors. This would appear in the SXMB_MONI with application errors with restart capability. If the user restarts the message it will post the entries again which were successfully posted earlier. We would like to prevent this from happening.
    I have gone through the below links.But no luck.Please suggest me if anyone know the solution/hint for this.
    Proxy framework: Catch CX_AI_SYSTEM_FAULT
    Re: SXMB_MONI - Message Status - Automatic Restart
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically

    I do not think you could do that as Asyn messages are always restartable. May be you should look at changing the proxy code so that it does not through application errors but instead would update a Ztable with list of items need to be reprocessed. And this can be sent to the JDBC system as reprocess request.
    VJ

  • How to append paragraph in text file of TextEdit application using applescript

    how to append paragraph in text file of TextEdit application using applescript and how do i save as different location.

    christian erlinger wrote:
    When you want to print out an escape character in java (java is doing the work in client_text_io ), you'd need to escape it.
    client_text_io.put_line(out_file, replace('your_path', '\','\\'));cheersI tried replacing \ with double slash but it just printed double slash in the bat file. again the path was broken into two lines.
    file output
    chdir C:\\DOCUME~1\
    195969\\LOCALS~1\\Temp\
    Edited by: rivas on Mar 21, 2011 6:03 AM

  • When trying to use my banking apps I get the error "Network Required  This application requires an active Internet Connection.  Please try again"

    When trying to use my banking apps I get the error "Network Required  This application requires an active Internet Connection.  Please try again".  This happens with two different apps from two different banks.  One of them works occasionally and have not figured out why.  I have cell signal and I am on a strong WiFi network.  Same thing happens when I turn off the WiFi too.    I have tried uninstalling and re-installing the app with no improvement.   I can't seem to find any setting that would cause this.   Does anyone have any suggestions?  

    I can access the internet just fine in the browser and i can use any other app i have.
    Sent from my Verizon Wireless 4G LTE DROID

  • Whenever I use facebook I'm getting this error message [Java Script Application] Error: options is undefined whenever I click on a link. What can I do to fix this problem? Easy step by step instructions please.

    When I use facebook, I keep getting this message [Java Script Application] Error: options is undefined whenever I try to return something, click on a link, or message, open a game, etc. ... I have Windows 7, addons of greasemonkey and better facebook (which seems to have disappeared)
    == URL of affected sites ==
    http://www.facebook.com/reqs.php#!/?ref=home

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How to resolve "You don't have permission to use the application" errors?

    We've been struggling with managed preferences, specifically applications, for a few users. They have mobile home folders which live on a Mac OS X 10.6.x Snow Leopard Server AFP server, preferences which are managed (by group) on a Mac OS X 10.6.5 Snow Leopard Server Open Directory Master, and the clients are running Mac OS X 10.6.4 Snow Leopard (bound to the Open Directory Master). There are also two Mac OS X 10.6.4 Snow Leopard Server Open Directory Replicas. We always manage applications and DO NOT sign the apps when adding them in Workgroup Manager.
    Essentially, key applications are unable to run due to the "You don't have permission to use the application" errors, even though they're explicitly whitelisted. (See some prior investigation over on Serverfault.) After seeing that the Mac OS X 10.6.5 Server update included the following fixes, we upgraded our Open Directory Master to 10.6.5:
    * Addresses an issue that could prevent managed preferences from being applied when a user logs in on a workstation that has been idle.
    * Fixes an issue that could prevent administrators from bypassing client management settings on a workstation.
    This seemed to improve the situation slightly, our most important application now seems to be allowed. Occasionally, it'll give the same error, but a simple log out & back in allows it again. We have not upgraded the client workstations with the Mac OS X 10.6.5 update as it doesn't note any related fixes and we haven't fully qualified it for mass deployment.
    We now have two applications that live in ~/Applications which are explicitly whitelisted (again, NOT signed), which fail with the same error, but logging out & back in does not resolve it. `sudo mcxrefresh -n 'user'` doesn't resolve the issue. In fact, `sudo /System/Library/CoreServices/ManagedClient.app/Contents/MacOS/ManagedClient -f -u `id -u 'username'`` fails with the following error:
    ManagedClient- bad parameter to -u option: use format '-u 501'
    Today I was able to catch the following in /var/log/system.log while attempting to run one said applications:
    Dec 22 17:36:24 hostname parentalcontrolsd[43221]: -[ActivityTracker checkApp:csFlags:] [954:user] -- * Incoming app appears to be masquerading as white listed app and failed signature validation: /Users/user/Applications/FileMaker Pro 5.5/FileMaker Pro.app/Contents/MacOS/FileMaker Pro. Note: This may be a valid app of a different version than what was whitelisted (on a different volume?)
    Dec 22 17:36:24 hostname [0x0-0xa42a42].com.filemaker.filemakerpro[43304]: launch of /Users/user/Applications/FileMaker Pro 5.5/FileMaker Pro.app/Contents/MacOS/FileMaker Pro was blocked
    Dec 22 17:36:24 hostname com.apple.launchd.peruser.1340[6375] ([0x0-0xa42a42].com.filemaker.filemakerpro[43304]): Exited with exit code: 255
    Dec 22 17:36:24 hostname parentalcontrolsd[43221]: -[ActivityTracker(Private) _removeAppFromWhiteList:] [1362:user] -- * Couldn't find local user record
    So, even though the apps are listed in Workgroup Manager and are unsigned, and also appear in '/Library/Managed Preferences/user/com.apple.applicationaccess.new.plist', it appears that the client somehow thinks they don't match what's in the whitelist even thought WE DON'T SIGN THEM WHEN WE ADD THEM!
    What might be causing this? Any further troubleshooting tips would be GREATLY appreciated!

    According to the [Code Signing Guide|http://developer.apple.com/library/mac/#documentation/Security/Conceptual /CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4- SW2], it appears that there is no way to remove signing (emphasis mine):
    "You can take a partial-update approach to revising your code on the user’s system. To do so, sign the new version as usual, then calculate the differences between the new and the old signed versions, and transmit the differences. Because the differences include the new signature data, the result of installing the changes on the end-user's system will be the newly signed version. You cannot patch a signed application in the field. If you do so, the system will notice that the application has changed and will invalidate the signature, +and there is no way to re-validate or resign the application in the field.+"
    Upon further investigation, the version of FileMaker 5.5 in question appears to be signed even after a fresh install from original install media. I wouldn't have thought Code Signing was around back then (2001). And the code signing appears to match between the fresh install (to a new location) and the original install. I'll attempt to sign it in WGM and install the same, signed copy everywhere.
    Also, I looked at one of our other working primary applications (4D.app) and it is unsigned, but appears in the Firewall as "Allow incoming connections", so I don't believe that the Application Firewall is necessarily signing apps automatically (but I certainly won't be ruling it out).
    I haven't checked yet, but the other application that's failing is "Parallels Desktop 6", which I'd bet is signed. I wonder if the "Automatically allow signed software to receive incoming connections", which is checked, would come into play at all?
    Thanks for pointing out how to use `codesign` to check whether an application is signed or not, this seems to be the first real break on this case.

  • Application Error while using database deign transformer

    Using the database deign transformer in Designer 6i I experienced the following dialog:
    "An application error has occured and an application error log is being generated. smi61.exe Exception: access violation (0x0000005), Address 0x01f6c325"
    This is a repeatable error. All the table have been created but I don't know if they have been left in a clean state.
    A would like to stop this happening in the future, I have done this generation successfully in the past will the same settings that are now failing (but different entities)
    Thank in advance for all help
    Hannah

    The last two days have been frustrating. The error above also appeared when I was trying to view one of the relationships in one of my entities.
    What seems to have been happening is Designer showed a relationship existing after it had been deleted. This seems to be a bug in Designer. These rouge links can be deleted in the RON (although if you try to look at their details the RON will crash with the error in original query). After this cleanup everything worked like clockwork.
    Hannah Fraser

  • Using TextField.C_ANY and get application error

    Hey all !
    I'm working with com.jmobilecore in my projrct. My platform is Nokia S40 DP 2.0 SDK 1.0 and IDE is Netbeans.
    I'm using C_ANY as TextField constraint.But while I press as many key at a time as input it shows application error and then exit from the application.
    I'm using emulator for testing.
    code snippet as:
    public CustomTextFieldUI(int maxTextLen,int constr,boolean checkValidate){
    super(maxTextLen, constr);
    this.validityLength=maxTextLen;
    this.checkValidate=checkValidate;
    ----------------------calling above method-------------
    this.txtDepotCode = new CustomTextFieldUI(Localization.TXTFIELD_DEPOT_CODE_DIGIT, TextField.C_ANY,true);
    Can anybody pls help me " How this problem can fix ??"

    uhr
    I have already asked you not to post the same question repeatedly.
    [http://forums.sun.com/thread.jspa?threadID=5343423]
    As you have ignored the advice, your user account is being blocked for 3 days.
    db

Maybe you are looking for