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