Skip to content

Instantly share code, notes, and snippets.

@NSExceptional
Last active November 27, 2019 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NSExceptional/f92466750a3740498807e6d7fdeefbde to your computer and use it in GitHub Desktop.
Save NSExceptional/f92466750a3740498807e6d7fdeefbde to your computer and use it in GitHub Desktop.
A simple AppleScript to uncheck "show as run destination" for every device. Open the Devices window first.
activate application "Xcode"
tell application "System Events"
tell process "Xcode"
tell window "Devices"
set deviceList to outline 1 of scroll area 1 of splitter group 1 of group 1
set details to scroll area 1 of splitter group 1 of splitter group 1 of group 1
repeat with r in row of deviceList
select r
-- Uncheck all "Show as run destination" boxes
tell checkbox 1 of details to if value is 1 then click
end repeat
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment