For those who use Xcode and source control

In Xcode, I often have the need to switch back and forth between displaying all my files and reviewing the changes in the ones I need to check in. Tapping that little M button in the lower right of the Navigator panel is a pain and there is no shortcut key for this button that is named Source Control Status.

The only problem I am having is getting this launched from Xcode. I’ve tried launching from a behaviour in a shell script, but with no luck.

Here’s the script in the hopes that it will be useful to somebody.

tell application "System Events"
	set myWindow to window 1 of process "Xcode"
	click checkbox "Files with source-control status" of text field 1 of group 1 of splitter group 1 of group 1 of myWindow
end tell

Cheers,
Alex Zavatone