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.3.0.pre script/click_done.scpt
rebuild-0.2.6 script/click_done.scpt
rebuild-0.2.5 script/click_done.scpt
rebuild-0.2.4 script/click_done.scpt
rebuild-0.2.3 script/click_done.scpt
rebuild-0.2.2 script/click_done.scpt
rebuild-0.2.1 script/click_done.scpt
rebuild-0.2.0 script/click_done.scpt
rebuild-0.1.3 script/click_done.scpt
rebuild-0.1.2 script/click_done.scpt
rebuild-0.1.1 script/click_done.scpt
rebuild-0.1.0 script/click_done.scpt
rebuild-0.1.0.pre2 script/click_done.scpt
rebuild-0.1.0.pre script/click_done.scpt
rebuild-0.0.5 script/click_done.scpt