Last active
November 27, 2019 15:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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