Prevent application from quitting

Does anyone know a program that can disapple the "quit" option in programs??
I need it because i run one of my macs as an iTunes "server", and running on a miniMac i also have an n-wifi application running, that i will prevent from accidential quitting...
Does this make any sense??
Message was edited by: Beeker2Beeker

motech29 wrote:
would that slow down the mac if something was constantly checking to see if app was running ?
It may be possible to write the application in a way that would constantly "poll" the system to see if iTunes was running, but that's a very bad idea. An application like that would waste cycles like you're thinking.
However, Apple provides ways to accomplish the same thing without constant polling and with minimal impact on performance. Instead of polling, you simply tell the system you're interested in receiving a notification any time an application quits, at which point you see if it's iTunes. If it isn't, you just ignore it, and if it is, you force iTunes to launch again. So, nothing happens until applications quit.
I wrote a little app to do just that. http://homepage.mac.com/mdouma46/images/KeepiTunesRunning.zip (~ 60 KB). It runs as a background application (so there's no icon in the Dock). You'll want to add it to your login items and when it's launched, it'll make sure iTunes is running. Then, if iTunes were to quit, it would automatically re-launch it. If you choose to Logout, Shutdown, or Restart, Keep iTunes Running will stop caring whether iTunes is running and allow the logout, shutdown, or restart to happen properly.
[EDIT] added an AppleScript that you can use to quit Keep iTunes Running if it's running.
Hope this helps....
Message was edited by: MarkDouma®

Similar Messages

  • How can I prevent Applications from being copied to external drive?

    Hello,
    Just a quick one...
    I run a studio in an education evironment. We've got quite a lot of software installed on our machines (Mac OS X 10.7.4) and there's always the chance that students will copy applications from the Applications folder onto an external drive to take home!
    Obviously this is becoming increasingly easy with large USB sticks and Applications which are entirely contained in the Applications folder.
    Is there any way that students can still run these applications during class but prevent them from copying the whole applications?
    With thanks in advance,
    Lawrence

    You can hide the Applications folder, but it isn't a total solution. Open Terminal and type:
    cd /
    sudo chflags hidden /Applications

  • Prevent application from stealing all input

    Some applications grab all keyboard keys in such a way, that my window manager (i3) does not get the keys any more that are meant for it. Until recently, I only came across dosbox and the qemu window with this behavior. But both of them offer a way to stop grabbing every input of the X server (by default, dosbox uses the key binding CTRL+F10, QEMU uses CTRL+ALT). But then I ran OgreSampleBrowser for which I could not find such a key binding (did I miss something). Thus, now I'm interested in a general way to prevent applications to grab every key event if they are part of a key binding of my window manager. Is there some way to only whitelist the ones, which may grab all keys? Additionally to that, OgreSampleBrowser also unconditionally grabbed all mouse input, but I could live with that.
    Any ideas or help, how to circumvent the issue (and still being able to interact with the window manager) is appreciated.

    It is kind of difficult to tell you anything without seeing what you do when the user logs off and just what you mean by turns off. Could you please expand on that: does the app close, do you loose your VPN connect, just what happens?

  • Prevent application from grabbing some keys.

    I have media keys for volume control on my keyboard and use them. I have mapped them with KDE hotkeys control module. All work fine. However, some applications, for example, SDL-based ones, grab all keyboard input, including media keys. I lose ability to change audio volume until I stop the application.
    The question is: How can I protect some keys from being grabbed by applications? I mean, how to make sure that some key events always reach target app, even when another app tries to grab all input. For example, Ctrl-Alt-F1 still works in all apps. Is there X server config to protect another key?
    Last edited by Barafu Albino Cheetah (2011-09-16 20:20:31)

    I've made two AUR packages for this:
    https://aur.archlinux.org/packages.php? … _Search=Go
    I'm just using libx11-nokeyboardgrab now, so I let the sdl one go unmaintained.
    libx11-nokeyboardgrab is incompatible with dmenu (edit: and password screensavers), but works with everything (also dialog pop-ups).
    sdl-nokeyboardgrab doesn't grab non-sdl programs (Virtualbox, maybe Wine, I haven't tested it).
    It doesn't prevent mouse grab, because that's necessary for FPS games and Virtualbox mouse mode.
    I have thought of adding in a mechanism where the mouse is only grabbed on some condition. Like the existence of a "/tmp/grabmouse" file. But I've been fine without it.
    One problem that occurs even with mouse grab enabled is that when the game loses focus, it loses the mouse grab too. When you switch back to the game, you need to do something to make it re-grab the mouse.
    For instance in Urban Terror (FPS), when you switch back to the game, the mouse behaves erratic until you press ~ for Console (which normally ungrabs the mouse) and then press it again.
    Last edited by Procyon (2012-01-23 20:14:08)

  • How can I prevent Photoshop from quitting when trying to use Photomerge?

    When trying to use photomerge, Photoshop (CS 5.5 version) quits immediately. How can I fix it?

    I seem to remember that there have been several threads on issues with Photomerge, have you done a Forum search?
    And you may want to provide more information, OS, reports, …
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Prevent ARD from quitting - auto relaunch ARD

    I have brought this up in the past and it didn't get answered.
    Now I may have stumbled onto a solution.
    We have chosen to allow our users to run their Macs as secondary administrators. Their account is not the first account that is created when a new Mac is registered, that is the IT account and we set the root password before deploying. We also configure ARD for our remote support purposes.
    Some 'clever' users have decided they can turn off ARD.
    We disagree. ARD is our decision and we want the tools to control ARD under the hood to make this happen without being subjected to SSH and the exact same problem.
    What I have come up with and plan to test, is a method of adjusting the startup of ARD to relaunch if for any reason it has quit, much like a Bind-named scenario. And there's a utility called LINGON that gives you access to mess with these settings.
    Comments or Suggestions?
    Any Mac OS X (10.4)
    Any   Mac OS X (10.4)  

    Using Lingon I created an entry in the System Daemons for 'com.apple.kickstart' to 'RunAtLoad.'
    Using the command line remarks for lauching kisckstart I created ProgramArgument entries for the following-each on a separate line:
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/ki ckstart
    -activate
    -configure
    -access
    -on
    -users admin
    -privs
    -all
    -restart
    -agent
    -menu
    Also, placed an entry in the service description field as 'kickstart'
    Now what I need is a reliable Miscellaneous calendar event or pid monitor to regenerate the Load.
    If we used a pid monitor I imagine we would need to edit something so that the ARD agent is launched and instructed to put a pid file in /var/run to be monitored?
    Looking for suggestions and comments - instruction.
    XServe G4

  • Prevent apps from stealing focus

    Is there a general overall setting for preventing applications from stealing focus?

    i'm having problems with itunes 6.0.5(20). I set up a playlist to burn, hit the burn button, it asks for a cd, i feed it the cd, it says "checking media...". Then, that's all it needs from me, so I go back to my word processing and while I'm typing in that suddenly the iTunes window pops back to the foreground - not asking for input or anything, it just pops to the foreground once the write process starts on the cd. I've had it steal focus from Firefox, Finder, Word, pretty much everything at one time or another.
    EDIT: I've found if I minimize iTunes it won't pop up and steal focus, but if I just switch it to the background instead of minimizing it, it will pop to the foreground

  • What is adobe autoanalyzer and how do i quit the application? it's preventing me from downloading an

    what is adobe autoanalyzer and how do i quit the application? it's preventing me from downloading and installing updates to elements 11 and camera raw

    To quit Auto analyser, open task manager/Activity monitor and look for 'ElementsAutoAnalyzer' and kill this process/exe.
    Auto analyser is an exe used by Organizer for performing 'media analysis' (assigning smart tags to images).
    ~Andromeda

  • The application detected an error that prevents changes from being saved.

    Hi. I'm having this problem almost all the time when I do some color correction.
    "The application detected an error that prevents changes from being saved. To avoid losing your work, quit Final Cut Pro."
    Any ideas why this is happening?
    I'm on a 2010 Mac Pro running latest Mavericks and latest FCP X.
    I already removed FCP X, and all the effects I have installed. But still the issue persists.
    Thanks.

    That could have happened. I can't remember though.
    Is there any work around?
    I currently only have 1 open library and 1 event on it. If I move or copy that event into a new library, would that in theory work?
    Thanks for the help so far.

  • "media server application expectly quit" when submitting from final cut pro

    browsing through the list, it seems the problem couldn´t be solved so far.
    doing some systematic testing, the following riddle shows up:
    ... when adding a QT ref movie (or movie) directly to the compressor batch list and submit to the cluster, everything runs fine.
    ... when exporting from final cut pro:
    menu -> export -> using compressor ...
    submitting in compressor using:
    1) Cluster: this computer: everything keeps running fine.
    2) Cluster: MylovelyCluster ....
    the job fails with the message "Failed: HOST [clusternode_name.local] media server application unexpectedly quit"
    since there is 5TB + of data to be compressed, copying files to the render nodes is not an option. all data is on a shared xraid, connected via giganet.
    Any ideas, any hints appreciated !
    regards,
    p.s. Anybody running an XSAN having the same issues?
    G5s, G4s, G3s, macminis, powerbooks   Mac OS X (10.4.7)   xraid

    ... well, the answer is in other topics.
    showstopper explains it patently again and again ...
    thanks from here.
    shortly: when submitting from FCP, every node HAS to have FCP installed and MUST have access to the same relative file path (mounted shared volume). If the volume is not present, the render node will open the reconnect media dialogue and waits for user input.

  • I am trying to shut down my MacBook Pro but mail is preventing it from shutting down and it will not allow me to quit mail

    Does anyone know of a way to force quit Mail.  It is preventing me from restarting or shutting down my MacBook Pro running Maverick iOS 10.9.
    Thanks.

    itsKeef,
    You're having the same problem? Do you ALWAYS have to Force Quit Mail or will it sometimes just Quite when you select Quit? Which model MacBook Pro do you have (e.g., "15-inch Late 2011"), which version of OS X are you running and which version of Mail do you have?
    Clinton

  • I just purchased my MacBook Pro in February of this year, I go to a certain blog website quite often and I notice that the page tends to refresh or open up another window advertising Japanese dating. How do I prevent this from happening?

    I just purchased my MacBook Pro in February of this year, I visit a celebrity blog website quite often using my Mac and I've noticed that once I am on that page it refreshes on its on and it'll open up a new window advertising Japanese dating. Is there a way I can prevent this from happening? My Mac is technically brand new, I am just begining to put use to it.

    Most browser have a addblocker or addblocker plus.
    Safari>Extensons
    Firefox is a add-on.  Firefox>Tools>Add-On

  • 100% thread pool/CPU usage prevent MII Applications from working

    Hello to all,
    our MII Applications were running on MII 11.5 (windowsserver 2003, with IIS) without any problems.
    We migrated these MII Applications  to SAP xMII Version 12.0 SP8, SAP NW 7.00 SP20, Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_22-rev-b03, mixed mode).
    Since then we faced several problems that prevent the MII Applications from working, e.g.
    - 100% application thread pool usage rate
    - 100% CPU usage
    - awful lot of http connections
    Several sap support calls didn't find the root cause.
    Workaround: restart sap system weekly
    Does anyone has any idea how to go on?
    Thanks
    Simone

    Hi Mike,
    sap support told us to install this Java version.
    Furthermore SAP Note 716604 says "do not use J2SE 5.0" and "Currently, we recommend 1.4.2_24 b06".
    Any more ideas?
    Regards,
    Simone

  • Running application from installer in vista prevents drag and drop

    Running a desktop application from Vista and Windows 7 through a wizzard, prevents doing a drag and drop from the desktop or another windows explorer to our java application.
    We are using a windows wizard to install the application once it finishes it launches the application within the application the drag and drop work perfectly, but I can not drag from desktop or external windows explorer into my application, dragging from the application to the desktop or to another windows explorer is working fine.
    If we run the application by clicking directly on the exe file (generated by the installer app), the application launches and do not present the anomaly (Drag and drop into a out side the applications work fine).
    So the issue might be related to the way the installer executes the application, that maybe have a different configuration or windows permissions are not set correctly when started by the installer.
    Both ways of launching the application have the same working directory the only difference i found was in the system environment (System.getenv()) the one that works has a SESSIONNAME key with a CONSOLE value in it, could this be the problem?
    Any idea on how to workaround this issue or some idea to look at the installer will be kindly appreciated.

    One idea is to use [Java Webstart|http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp] *(<- link)* as your installer. It might not fix the D'n'D problem, but at least if you get to the point of telling Sun about it, they will care (at least) one iota about fixing it.

  • Prevent Portal Application from starting

    Hello.
    We are having problems starting up a portal. Everytime we try to start it we have a java deadlock, and we wonder whether it is possible to prevent an application from starting.
    Specifically the application we would like not to start is:
    sap.com/cafeuodimnuacceap
    Thanks in advance for your help.

    I found it:
    Using the "Initially_Not_Started_Apps" parameter in Config Tool.
    Thanks.

Maybe you are looking for

  • Photoshop CS2 Quits unexpectaly

    I have an iMac running 10.4.10 and about a week ago I reinstalled tiger. I also fixed permissions and repaired the disk. Then 3 days later I go to open adobe photoshop CS2 and i t loads... then quits! I have had this problem with many applications si

  • How to change an icon of a button

    hi guys, i want to change the icon of a button when it is click how can i do it? thanks

  • Regarding BPM

    Hi All, I'am using BPM.(File-BPM-File) I'am getting data from 2 files for that I've used 2 receive steps with in the fork. 1st receive step for Control data from one file and i use option start process for this receive step. 2nd receive step for deta

  • Cannot locate a proxy

    Cannot locate a proxy i made a normal upload do anyone know y i had this message??

  • Can I purchase additional apple care if mine has expired

    I guess I did not purchase Apple Care when I purchased my phone.,  Can I purchase it now??  I have a 5s