Sha256: cb9fbd51d39a0deaeffae244940c09f4d007d561c6a4bc794d1d83c91d622870

Contents?: true

Size: 605 Bytes

Versions: 15

Compression:

Stored size: 605 Bytes

Contents

#!/usr/bin/env osascript

-- Third: Click Finish Button
set timeoutSeconds to 2.0
set uiScript to "click UI Element 1 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

15 entries across 15 versions & 1 rubygems

Version Path
rebuild-0.0.4 script/click_finish.scpt
rebuild-0.0.4.pre14 script/click_finish.scpt
rebuild-0.0.4.pre13 script/click_finish.scpt
rebuild-0.0.4.pre12 script/click_finish.scpt
rebuild-0.0.4.pre11 script/click_finish.scpt
rebuild-0.0.4.pre10 script/click_finish.scpt
rebuild-0.0.4.pre9 script/click_finish.scpt
rebuild-0.0.4.pre8 script/click_finish.scpt
rebuild-0.0.4.pre7 script/click_finish.scpt
rebuild-0.0.4.pre6 script/click_finish.scpt
rebuild-0.0.4.pre5 script/click_finish.scpt
rebuild-0.0.4.pre4 script/click_finish.scpt
rebuild-0.0.4.pre3 script/click_finish.scpt
rebuild-0.0.4.pre2 script/click_finish.scpt
rebuild-0.0.4.pre script/click_finish.scpt