On Oct 04, 2014, at 22:23, Robert Poland <email@hidden> wrote:It takes much more to get to the divider and then a cliclick dc: to activate it.
______________________________________________________________________
Hey Bob,
My script DOES FIND the divider as I mentioned before.
Okay. I was doing two single-clicks with `cliclick`, because I missed the dc: command.
Using 'dc:x,y' this works every time on my 10.9.5 system:
------------------------------------------------------------------------------------------- tell application "System Events" set quit delay to 0 tell application process "Finder" set frontmost to true tell window 1 tell image 2 of UI element 1 of row 1 of outline 1 of scroll area 2 of splitter group 1 set {xPosition, yPosition} to position set {xSize, ySize} to size end tell set {xPosition, yPosition} to {xPosition + (xSize div 2), yPosition + (ySize div 2)} end tell end tell end tell set shCMD to "/usr/local/bin/cliclick dc:" & xPosition & "," & yPosition do shell script shCMD -------------------------------------------------------------------------------------------
I also tried using Keyboard Maestro to click the coordinates provided by System Events. It works too.
-- Best Regards, Chris
|