Inquisitive Cocoa

Unless otherwise stated all code is released under the MIT License

In a similar vein, here’s a command I use for building the project of the current document in Xcode.

PROJECT=$(ruby -- "${TM_BUNDLE_SUPPORT}/bin/find_xcode_project.rb")
if [[ -f "${PROJECT}/project.pbxproj" ]]; then
   open -a Xcode "${PROJECT}"
else
   echo "Didn't find an Xcode project file."
   echo "You may want to set TM_XCODE_PROJECT."
fi
 
 
osascript -e 'tell application "Xcode"
	activate
 
	set targetProject to project of active project document
	if (build targetProject) is equal to "Build succeeded" then
		launch targetProject
	end if
end tell'

Cocoa, Scripts

Add your thoughts