Heya!
Wouldn't it be great to have Exposé always display its windows by name? In this way the windows would always be put in the same spot and one would after some working time spent be able to memorize where each and every window is localized. In turn this will greatly improve the work-flow for the user as he or she would out of memory be able to choose the desired window without the need to actually look at the windows in Exposé, just quickly activate 'n pick the right one.
Since there's no option in OS X for making Exposé display windows by name by default I thought we could help each other making this possible.
I've been working on this for a while and understood that a simple Applescript would do it. But I've run into a problem. Read the following stuff which I wrote here earlier, for my dilemma:
I wonder if there's any way in Applescript to determine whether Expose is currently running/is active?
See, I try to get Expose to arrange its windows by name by default and since there's no OS setting for this I try to script it in an Applescript which I trigger by a hotkey (with Quicksilver). To get Expose to sort the windows by name you can push cmd+1 when Expose is active and I have scripted that.
The script I'm working on is the following:
----
18 is the key code for the key "1".
The script actually works fine when I activate Expose with it. It sorts the windows by name automatically.
The only problem I have is that when I push my hotkey when I'm in Expose to have it close/deactivate Expose it does that but also runs the keystroke "cmd+1" which is a problem if, lets say I deactivate Expose into a Safari window. Then it will execute cmd+1 for Safari which actually is my first bookmark and in this way spoil my current webb page. So I thought if I can check if Expose is active before executing cmd+1 then problem would be solved. If I'm wrong please let me know.
Perhaps there are other ways to do this too. Then lets help each other out with it.
Anyone?
Wouldn't it be great to have Exposé always display its windows by name? In this way the windows would always be put in the same spot and one would after some working time spent be able to memorize where each and every window is localized. In turn this will greatly improve the work-flow for the user as he or she would out of memory be able to choose the desired window without the need to actually look at the windows in Exposé, just quickly activate 'n pick the right one.
Since there's no option in OS X for making Exposé display windows by name by default I thought we could help each other making this possible.
I've been working on this for a while and understood that a simple Applescript would do it. But I've run into a problem. Read the following stuff which I wrote here earlier, for my dilemma:
I wonder if there's any way in Applescript to determine whether Expose is currently running/is active?
See, I try to get Expose to arrange its windows by name by default and since there's no OS setting for this I try to script it in an Applescript which I trigger by a hotkey (with Quicksilver). To get Expose to sort the windows by name you can push cmd+1 when Expose is active and I have scripted that.
The script I'm working on is the following:
Code:
try
tell application id "com.apple.exposelauncher" to launch
end try
tell application "System Events" to set exposeopen to "Expose"
if exists exposeopen then
tell application "System Events"
key code 18 using command down
end tell
end if
18 is the key code for the key "1".
The script actually works fine when I activate Expose with it. It sorts the windows by name automatically.
The only problem I have is that when I push my hotkey when I'm in Expose to have it close/deactivate Expose it does that but also runs the keystroke "cmd+1" which is a problem if, lets say I deactivate Expose into a Safari window. Then it will execute cmd+1 for Safari which actually is my first bookmark and in this way spoil my current webb page. So I thought if I can check if Expose is active before executing cmd+1 then problem would be solved. If I'm wrong please let me know.
Perhaps there are other ways to do this too. Then lets help each other out with it.
Anyone?