Hi,
I am trying to resize the Xcode “groups & files” view, and thought that if I set the (splitter group 1) to the width I want that should work.
I tried to set the left pane of an Xcode project to be 250 pixels wide. I observed the variables as I traced through using ScriptDebugger, and everything worked fine, except the pane did not resize.
set desired_width to 250
activate application "Xcode"
tell application "System Events"
tell process "Xcode"
-- get the {w, h} of the "groups & files" view
set {groups_w, groups_h} to size of (splitter group 1) of group 1 of window 1
-- don't change the height, only the width
set (size of splitter group 1 of group 1 of window 1) to {desired_width, groups_h}
end tell
end tell
It appears to me that Xcode supports the get, but not the set {read only} for (splitter group 1)…
Any idea what I am missing ?
Thanks for any help you can provide…
Bill Hernandez
Plano, Texas