Sha256: 47e2d3ff83a75a7915a618e516c045d9e3bb2fdc25f3da9282a463a9145aa043
Contents?: true
Size: 747 Bytes
Versions: 40
Compression:
Stored size: 747 Bytes
Contents
#!/usr/bin/env osascript -- Fist: Click Install Button set timeoutSeconds to 1.0 my doWithTimeout("click UI Element \"Install\" of window 1 of application process \"Install Command Line Developer Tools\"", timeoutSeconds) my doWithTimeout("click UI Element \"Agree\" 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
40 entries across 40 versions & 1 rubygems