Sha256: 71acf9da5638a18ecf23ee85221fdbb685259c797862c3b77c1337a3d07ddfe7

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

#!/usr/bin/env osascript

-- Fist: Click Install Button
set timeoutSeconds to 1.0
set uiScript to "click UI Element 4 of window 1 of application process \"Install Command Line Developer Tools\""
my doWithTimeout(uiScript, timeoutSeconds)

on doWithTimeout(uiScript, timeoutSeconds)
  set endDate to (current date) + timeoutSeconds
  repeat
    try
      run script "tell application \"System Events\"
" & uiScript & "
end tell"
      exit repeat
    on error errorMessage
      if ((current date) > endDate) then
        error "Can not " & uiScript
      end if
    end try
  end repeat
end doWithTimeout

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rebuild-0.0.4.pre3 script/click_install.scpt