Sha256: cee1cfe417e29186e6ed9efb2e29efe02c690304dfc0b865f60353bfef389b44

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

#!/usr/bin/env osascript

-- Second: Click Agree Button
set timeoutSeconds to 2.0
set uiScript to "click UI Element 3 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_agree.scpt