Make switching apps (Cmd-Tab) skip hidden apps?

Prior to using Mac OS X 10.8, I used 10.6.8.  In that version of the OS, and probably all the previous ones, I was used to hidden apps being moved to the right end of the apps list used by Cmd-Tab when switching from one app to another.  When hidden apps were moved to the end, they were less likely to be selected and unhidden.  It also meant that after an app was hidden and moved to the end of the list, a simple press of Cmd-Tab to switch to the previous app would not select the hidden one (unless it was one of only two apps running).
However, in 10.8, hidden apps aren't shifted to the end of the list.  Therefore, hiding an app, followed by a simple press of Cmd-Tab will make the just-hidden app reappear, even if there are several apps running.
Is there some way to get the Mac OS X 10.6 functionality back that moves hidden apps to the end of the list?
That is, if the apps list currently contains:
  A B C D
"A" is the current app.  If I hide that app, "B" becomes active and "A" should move to the end of the list:
  B C D A
While app "B" is active, pressing Cmd-Tab will switch to app "C". 

Please bring this functionality back!  If I hide an app it's because I want to completely remove it from thought and view.  I would close instead if I didn't want to receive notifications from it or for it to continue playing music, etc.  I can't tell you how many times I've hidden an app just to accidentally cmd+tab back to it a minute later.  The same goes for minimized apps when all windows are minimized.  If there are no windows to cmd+tab to it should go to the end of the list.

Similar Messages

  • How to change Window Switching from "cmd + tab" to "ctrl + tab"

    Hi,
    is there a way to switch windows as described in the topic?
    Kind regards,
    Michael

    Thx for the reply.
    Thats what I feared... (I have to work with windows at work and get confused with the differen shortcuts all the time )

  • Cmd-TAB is not working in 10.9

    Hi,
    since Mavericks the application switcher is not working correct. When I switch to an other application using cmd-TAB the menue of the other application is shown, but no windows of this application will be shown. In older versions of OS X the app switching via cmd-TAB was no problem.
    Is ist possible to bring back the old behavior of the shortcut cmd-TAB?
    Gerhard

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to gather information about the state of your computer. That information goes nowhere unless you choose to share it on this page. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them.
    Here's a summary of what you need to do: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a couple of minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking  anywhere in the line. The whole line will highlight, though you may not see all of it in your browser, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s:\n\n%s\n'; Fr='\nRAM details:\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -q XML\|exec && echo $f; done; }; Pc () { o=`grep -v '^ *#' "$2"`; Pm "$1"; }; Pm () { [[ "$o" ]] && o=`sed '/^ *$/d; s/^ */   /' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id | grep -qw '80(admin)'; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed '8!d;s/^ *//'; o=`SP Hardware | awk '/Mem/{print $2}'`; o=$((o<4?o:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d; /[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]||0[^2]8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; o=`SP USB | sed -n '1d; /:$/{s/ *:$//;x;s/\n//p;}; /V.*[(]/{s/^[^(]*/ /;H;}; /Apple/{s/.//g;h;}'`; Pm "USB"; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; d=(/ ""); D=(System User); for i in 0 1; do o=`cd ${d[$i]}L*/L*/Dia* && ls | awk -F_ '!/ag$/{$NF=a[split($NF,a,".")]; print}' | tail`; Pm "${D[$i]} diagnostics"; done; o=`syslog -F bsd -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|n Cause: -|NVDA\(|pagin|SATA W|ssert|timed? ?o' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); o=${s[2]}%; Ps "CPU usage by process \"$s\" with UID ${s[1]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); s[2]=${s[2]%[+-]}; o=$((s[2]>=25000?s[2]:0)); Ps "Mach ports used by process \"$s\" with UID ${s[1]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'`; Pm "Extrinsic system jobs"; o=`launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | grep -v com\.apple\.CSConfig | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/Star*; do M; done`; Pm "Startup items"; o=`find -L /S*/L*/E* {/,}L*/{A*d,Compon,Ex,In,Keyb,Mail/B,P*P,Qu*T,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB\ :CFBundleIdentifier "$d/Info.plist") || ID="No bundle ID"; [[ "$ID" =~ ^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID ]] || printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find -L /u*/{,*/}lib -type f | while read f; do file -b "$f" | grep -qw shared && ! codesign -v "$f" && echo $f; done`; Pm "Unsigned shared libraries"; o=`launchctl getenv DYLD_INSERT_LIBRARIES`; Pm "Inserted libraries"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; Ps "DNS"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; Pc "hosts" <(grep -v 'host *$' /etc/hosts); Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep "Valid: N|Duplicate: Y" | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign ($) or a percent sign (%). If you get the percent sign, enter
    exec sh
    in the window and press return. You should then get a new line ending in a dollar sign.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know your password, or if you prefer not to enter it, just press return three times at the password prompt.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that takes administrator privileges.
    The test may take up to a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line "[Process completed]" to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report your results. No harm will be done.
    8. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If it happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of Apple Support Communities ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Spaces / Firefox / CMD Tab

    Hi @Apple
    1) Even if i switch with CMD-Tab to Terminal in Spaces 1 and then back to Firefox, i had to click into Firefox, because it's not active.
    2) If i have more terminal windows open and switched back to terminal in antother Spaces Window the last active terminal is now in background and another one has the focus.
    3) Whish: Could you please give me the ability to change the effect when i switched between spaces. I whish the cube effect. It's so cool....

    I am also experiencing all these problems. 10.5 has some great features which I am really enjoying using, but I have to say I'm a little disappointed in Apple for releasing the system at this stage, it really is below the grade.
    Command-tab will often switch me to the other app, but will not change from the current space to the space the app is in, let alone set the correct window focus. This is happening with many Leopard apps too, mail,, safari finder, not just third party.
    Can't wait for 10.5.1, let's hope it fixes many of the bugs.

  • Why is the CMD-TAB app switcher still unable to properly focus apps?

    On my MacBook Pro running OSX Lion 10.7.5, and on previous versions of OSX, I've noticed a very strange defect in the way the graphical environment switches applications.
    To reproduce the problem, I open three apps (it does not seem to matter what apps are opened). At least two of the apps are on the same mission control (previously space) desktop so that they overlap. When I use CMD-TAB to switch between the same two apps on different miss.ctl. desktops, very often, as in, about every other switch, the app I'm switching to is underneath another application's window. It fails to rise to the top of the stack.
    It is not regular. That is, sometimes the switched-to window does rise to the top. About half the time, it does not. This makes the app switcher a capricious interruption when I'm programming. I used to use spaces 2D spacial layout to spread out my windows and avoid the buggy behavior, but Apple jettisoned that with Lion.
    I don't know if this is a problem with OSX's GUI, the libraries, or with the way developers write applications, but it has been a long standing issue. Has anyone else experienced this? It seems like it should have been fixed by now.
    Anyone have any clues or fixes ?

    Never mind. Apparently a duplicate of other threads. Possible fix: update the defective OSX Lion to Mountain Lion.

  • Switching Apps with Cmd+Tab

    When you switch to an application using the built-in switcher, nothing happens if you had closed or minimized the last open window. When you switch to an application using the Dock, on the other hand, if there are no documents or windows open in that application, a new one is opened automatically.
    Well, thats really annoying. If I switch to an app, I'd ofcourse want to use it. Is there any hack for it so that the last open window shows up when I switch apps?
    Thanks

    Or press the Option key(Alt) on the selected app while Cmd +Tabbing and then you'll reopen closed or minimized windows.
    It should do this by default imo this is just giving the user more keys to press thus more work.

  • CMD Tab not switching to apps in different Spaces

    This has been a problem in the past and looks like it's still lingering in Mavericks. Yes I do have the Preferences option set btw
    I think it seems to be triggered for me when disconnecting my external monitor (connected via Thunderolt aka MiniDisplayPort to DisplayPort cable). So once I'm using the laptop screen only then CMD+Tab doesn't switch to the correct Space. Not sure if it's when I disconnect when my MBP is sleeping or awake, something else I can test I guess..
    Anyone else still getting this, and in the same situation re ext screen?
    killall Dock makes it work again though.

    Unfortunately there doesn't seem to be a way to do that, or at least in my testing I can't make that happen.

  • App switching (cmd-tab) and Expose stop working

    This has happened to me several times in the last couple of days: Suddenly the cmd-tab command for switching applications stops working, as well as my active corners for Expose. No matter if I use the laptop's keyboard or an external one. After a restart everything works again. Any ideas?

    I'm having the exact same problem. I think it may be somehow tied to the new update of itunes (9.0.1) because when I try to cmd+tab after open itunes it activates tabbing within the itunes fields.

  • CMD+Tab between apps does not bring fullscreen window into focus.

    I just upgraded to Mountain Lion from Snow Leopard and now I can't tab between fullscreen apps and regular screened apps.
    Let me clarify then that my Cmd-Tab function itself still works (the toolbar for whatever application I switch to appears at the top) but the window itself does not slide back into view (fullscreen apps).
    I can tab from fullscreen apps TO regular screen apps and the regular screen (and application) slides into view.  But when I tab back into a fullscreen app, only the toolbar changes.  The screen itself does NOT slide back into view.
    Another noteworthy observation is that I CAN tab between two fullscreen applications.  The toolbar and window both slide into view like normal.
    So the problem ONLY presents itself when I try to switch from regular screen to fullscreen apps.  I already restarted numerous times and also repaired disk permissions twice.
    I'm running ML 10.8.2 on a Mid 2010 15" Macbook Pro (2.66 GHz i7 with 4GB RAM).

    By the way, this interacts with the "order front" bug described here in a nasty way.  Fortunately, suggest it is fixed in Mountain Lion.

  • HT201299 Is there an App which switches on Cellular data at a Particular time of day and switches off as well? if not someone should make an app

    Is there an App which switches on Cellular data at a Particular time of day and switches off as well? if not someone should make an app for that

    No, there are no apps that can do that, as no app would have access to the necessary API's to perform such a task.

  • CMD Tab feature no longer takes me to the selected app.

    The CMD Tab feature no longer takes me to the selected app. Additionally I have to double click many apps in the Dock to gain access. Anyone have a solution for this?
    I have installed a clean Mt Lion system in th ehope that it would fix this but no luck.

    tinafromwest lafayette wrote:
    but when I use the down arrow key to "launch" the app back open; I get a small icon at the bottom just above the dock.
    Don't use the down arrow key. Simply release the Command and Tab keys once the application you want is highlighted. This will open the application in a normal view.
    By pressing the down arrow key you are invoking the view all open windows for an application. This is the same outcome as using Control and down arrow for an application that has multiple windows open.

  • Applescript say app names during Cmd + Tab

    I'm writing a script for a speakable item that will let me switch applications without having to touch the computer, by invoking the Cmd+Tab functionality.  So far, I have the following:
    tell application "System Events"
         key down command
         key code 48
    end tell
    tell application "SpeechRecognitionServer"
         set userinput to listen for {"left", "right", "select", "cancel"}
         if userinput = "left" then
              tell application "System Events"
                   key code 123
              end tell
         else if userinput = "right" then
              tell application "System Events"
                   key code 124
              end tell
         else if userinput = "select" then
              tell application "System Events"
                   key up command
              end tell
         else if userinput = "cancel" then
              tell application "System Events"
                   key code 53
              end tell
         end if
    end tell
    This code basically presses Command and taps Tab while keeping Command pressed, thus prompting the handy little window of what applications are open to pop up.  I can then navigate (albeit slowly) using the 'left' and 'right' commands, and settle on a choice by saying 'select'; alternatively, I can cancel the process with the command 'cancel'. 
    However, this requires me to be present at the computer, or at least keep an eye on the screen, so that I know what application is currently selected.  This defeats one of the two main reasons for having voice commands activated.  These two reasons are 1) I am at my computer but my hands are busy, and 2) I am away from my computer.  Forcing me to be present in order to switch applications clearly runs contrary to the second reason; in all the other speakable items I've created, I've worked in some sort of verbal feedback that lets me know what's going on so that I can operate my computer from across the room. 
    Thus, my question: is there a way to have AppleScript tell me what application is currently selected?  I'm kind of new at AppleScript, and in any case I feel like the answer to this couldn't be found in the few areas I'm already familiar with (I mean, the little Cmd+Tab window isn't exactly an application, so I doubt I could get to its code via UI scripting). 
    Thanks!

    The application switcher isn't scriptable, but you might try using VoiceOver since that does speak the application name.

  • Can I make Cmd-~ behave like Cmd-Tab?

    With Cmd-Tab app switching, invoking it once would alternative between the current and previous application. Is there any way I can make cmd-~ behave the same way with regard to the documents? I find it odd that Apple haven't thought of this, as cycling through document is rarely waht people want.
    thanks

    Alternatively, you can go backwards: Cmd-` cycles through windows one way, Cmd-~ (i.e., Cmd-Shift-`) goes the other direction. You can jump back and forth between two windows by alternating with the shift key.

  • Blurry icons in Cmd-TAB Application Switcher

    Hello.
    As I constantly use the Cmd-TAB app.switcher, it kind of bothers me that one specific application keeps showing a blurry icon (probably resized 128x128 instead of the 512x512). I know this is a known buggy behaviour since Leopard, but it should often be OK after a restart.
    Mine doesn't, and what's even stranger : in another user account the icon works fine every time I launch this application.
    Resetting the PRAM didn't work. Could the problem be some cache file ? If so, how to resolve it ?
    TIA

    Create a new admin user account, log into it, launch a few apps, CMD+tab, and see if looks normal. If so, open the new user's Preferences folder, make a list of those files, log back into the mucked up user account, move those same plist files to an empty Desktop folder, log out and back in, and see if that fixes things. If so, then delete the moved files and reset the preferences for the things on the list.

  • How do I make an app running in the background appear in the dock?

    I've tried searching the rest of the web, but all I can find is how to pin an app to the dock. I already know how to do that.
    What I want to do is make an app that doesn't appear even when it's running (my specific case is SugarSync) appear as an icon in the dock. I know I can get to it by either clicking or right-clicking on the mini icon on the right side of the menu bar, but I want to be able to switch to it using the dock or open-apple+tab, like I can with everything else.

    It depends on the data path from the tower you're using, through NATs and many routers, all the way back to the server. Which depends on your current location and sheer luck.
    For some users, the data path stays alive for 30-45 minutes at a time... thus the phone only has to ping the server that often for push to work. Their push doesn't use much battery.
    Other users have the misfortune of being connected via pathways that only keep a connection alive for 5-10 minutes. Their iPhones eat battery like crazy, and they usually end up switching to a 15-30 minute timed fetch instead.

Maybe you are looking for