Hello all,
If you want to automatically turn off Spaces when you play Steam Games, and then automatically turn Spaces back on when you quit Steam, get this App:
http://www.mediafire...elee6lhwnl61dgc
Download it, open the ZIP, drag the App into your Applications folder, and then Double Click it when you want to run Steam and Kill Spaces at the same time.
I was having issues with Spaces... I was playing DoD:S and holding the left CTRL key to Crouch. While crouching, I would hit 1, 2, 3, or 4 to select different weapons.
The issue is that if you have Spaces and Expose running.... Mac OS X binds CTRL-1 to Space 1 and CTRL+2 to Space 2 and so on.
Which means that your game completely disappears just as you are trying to grab a grenade to lob into a sniper position. By the time you switch back to the correct Space where your game is... you just got headshot.
Annoying.
So, I wrote an App called Steam Kill Spaces to fix the problem.
Here is what it does:
When you launch the app, it launches Steam for you. So you can use this app to open Steam instead of double clicking the Steam App itself.
At the same time, it shutdown Spaces... the app shuts it completely off so Spaces and Expose don't ruin your game.
While you play your games... every few seconds Steam Kill Spaces checks to see if Steam is still open. If it is, the app does nothing. But if Steam has been closed, the app automatically turns Spaces back on for you, so you don't have to!
Then the app quits itself... and your Mac is back to normal with all it's Spaces Glory.
So if you want to automatically turn off Spaces when you play Steam Games, get this App:
http://www.mediafire...elee6lhwnl61dgc
If you want to roll your own Applescript, Open the AppleScript "Steam Kill Spaces" in a new Script Editor window (applescript://com.apple.scripteditor/?action=new&script=on%20idle%0D%09tell%20application%20%22Syst em%20Events%22%0D%09%09if%20(exists%20application% 20process%20%22Steam%22)%20then%0D%09%09%09return% 205%0D%09%09else%0D%09%09%09do%20shell%20script%20 %22defaults%20write%20com.apple.dock%20workspaces% 20-bool%20YES%22%0D%09%09%09do%20shell%20script%20%22 killall%20Dock%22%0D%09%09%09quit%20me%0D%09%09end %20if%0D%09end%20tell%0Dend%20idle%0D%0Don%20run%0 D%09launch%20application%20%22Steam%22%0D%09do%20s hell%20script%20%22defaults%20write%20com.apple.do ck%20workspaces%20-bool%20NO%22%0D%09do%20shell%20script%20%22killall %20Dock%22%0D%09delay%2010%0Dend%20run). (Thanks NSGod (
http://forums.steamp...003&postcount=2) for the URL)
Save it as a Stay Open Application. Double click the app you just made to launch Steam and Kill Spaces at the same time.
Here is the code so you can see it:
on idle
tell application "System Events"
if (exists application process "Steam") then
return 5
else
do shell script "defaults write com.apple.dock workspaces -bool YES"
do shell script "killall Dock"
quit me
end if
end tell
end idle
on run
launch application "Steam"
do shell script "defaults write com.apple.dock workspaces -bool NO"
do shell script "killall Dock"
delay 10
end run
Or use an applescript:// URL:
--Click to open this AppleScript in Script Editor: Open this script in a new Script Editor window (applescript://com.apple.scripteditor/?action=new&script=on%20idle%0D%09tell%20application%20%22Syst em%20Events%22%0D%09%09if%20(exists%20application% 20process%20%22Steam%22)%20then%0D%09%09%09return% 205%0D%09%09else%0D%09%09%09do%20shell%20script%20 %22defaults%20write%20com.apple.dock%20workspaces% 20-bool%20YES%22%0D%09%09%09do%20shell%20script%20%22 killall%20Dock%22%0D%09%09%09quit%20me%0D%09%09end %20if%0D%09end%20tell%0Dend%20idle%0D%0Don%20run%0 D%09launch%20application%20%22Steam%22%0D%09do%20s hell%20script%20%22defaults%20write%20com.apple.do ck%20workspaces%20-bool%20NO%22%0D%09do%20shell%20script%20%22killall %20Dock%22%0D%09delay%2010%0Dend%20run%0D).
on idle
tell application "System Events"
if (exists application process "Steam") then
return 5
else
do shell script "defaults write com.apple.dock workspaces -bool YES"
do shell script "killall Dock"
quit me
end if
end tell
end idle
on run
launch application "Steam"
do shell script "defaults write com.apple.dock workspaces -bool NO"
do shell script "killall Dock"
delay 10
end run
Hopefully this will help some of you who have been dealing with Spaces interrupting your gameplay.
Enjoy!
Sincerely,
Jorgenson aka Sergeant Twinkle Toes