Scripting Xcode
You can use the Apple Script dictionary provided by Xcode.
- Open AppleScript Editor.
- Choose "Open Dictionary..."
- Find and select Xcode
You will see something like this:
So there are lots of structured APIs for you to manipulate. Happy coding!
Xcode Project Suite looks particularly promising... If Xcode 4 does not implement these methods, maybe you want to go back to Xcode 3? But most likely that is not an option.