Sha256: 6a22114f7c1670c8c1b3c41f46e5ada5df4be269befd651a2c7f1c881be7b748

Contents?: true

Size: 595 Bytes

Versions: 35

Compression:

Stored size: 595 Bytes

Contents

#!/usr/bin/env osascript

-- Click Done Button
set timeoutSeconds to 8.0
my doWithTimeout("click UI Element \"Done\" of window 1 of application process \"Install Command Line Developer Tools\"", 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 errorMessage & "; Can not " & uiScript
      end if
    end try
  end repeat
end doWithTimeout

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rebuild-0.6.1 script/click_done.scpt
rebuild-0.6.0 script/click_done.scpt
rebuild-0.5.2 script/click_done.scpt
rebuild-0.5.1 script/click_done.scpt
rebuild-0.5.0 script/click_done.scpt
rebuild-0.4.3 script/click_done.scpt
rebuild-0.4.2 script/click_done.scpt
rebuild-0.4.1 script/click_done.scpt
rebuild-0.4.0 script/click_done.scpt
rebuild-0.3.3 script/click_done.scpt
rebuild-0.3.2 script/click_done.scpt
rebuild-0.3.1 script/click_done.scpt
rebuild-0.3.0 script/click_done.scpt
rebuild-0.3.0.pre8 script/click_done.scpt
rebuild-0.3.0.pre7 script/click_done.scpt
rebuild-0.3.0.pre6 script/click_done.scpt
rebuild-0.3.0.pre5 script/click_done.scpt
rebuild-0.3.0.pre4 script/click_done.scpt
rebuild-0.3.0.pre3 script/click_done.scpt
rebuild-0.3.0.pre2 script/click_done.scpt