on run {input, parameters}
tell application "System Events"
tell process "Xcode"
click menu bar item "Xcode" of menu bar 1
click menu item "Preferences…" of menu 1 of menu bar item "Xcode" of menu bar 1
click button "General" of tool bar 1 of window 1
set continue_value to get value of checkbox "Continue building after errors" of window "General"
if continue_value is equal to 0 then
click checkbox "Continue building after errors" of window "General"
end if
set in_editors to get value of checkbox "In Editors" of window "General"
if in_editors is equal to 1 then
click checkbox "In Editors" of window "General"
end if
set in_issue to get value of checkbox "In Issue Navigator" of window "General"
if in_issue is equal to 1 then
click checkbox "In Issue Navigator" of window "General"
end if
click button 1 of window "General"
end tell
end tell
return input
end run
for enabling live compilation
on run {input, parameters}
tell application "System Events"
tell process "Xcode"
click menu bar item "Xcode" of menu bar 1
click menu item "Preferences…" of menu 1 of menu bar item "Xcode" of menu bar 1
click button "General" of tool bar 1 of window 1
set continue_value to get value of checkbox "Continue building after errors" of window "General"
if continue_value is equal to 0 then
click checkbox "Continue building after errors" of window "General"
end if
set in_editors to get value of checkbox "In Editors" of window "General"
if in_editors is equal to 0 then
click checkbox "In Editors" of window "General"
end if
set in_issue to get value of checkbox "In Issue Navigator" of window "General"
if in_issue is equal to 0 then
click checkbox "In Issue Navigator" of window "General"
end if
click button 1 of window "General"
end tell
end tell
return input
end run
In Automator make sure that Service receive "no input"
You can set keyboard shortcuts via SystemPreferences->Keyboard->Keyboard Shortcuts->Serices
hopefully it will be useful for some people