Keep program from stealing focus?

Discussion in 'macOS' started by Isoparm, May 7, 2011.

  1. Isoparm macrumors newbie

    Joined:
    Jul 15, 2005
    #1
    I have a bash script (could also be done as an applescript) that opens and closes a application every 10 minutes or so.

    The script and program all work great, except for when I'm working in another application (such as typing a document or online), when I'm doing that and the program closes and re-opens it steals the focus from what I was doing.

    Is there any way that I can keep the program from stealing focus, so that it opens/closes in the background?


    Thanks
     
  2. McGiord macrumors 601

    McGiord

    Joined:
    Oct 5, 2003
    Location:
    Dark Castle
    #2
    In the Application Menu -> hide Application (command+H).
    I never done any scripting or anything like it, but I would think that you can put that in the thing you are trying to do.
     

Share This Page