AppleScripts icon indicating copy to clipboard operation
AppleScripts copied to clipboard

Modifications for more robustness

Open boisy opened this issue 2 years ago • 0 comments

I modified the Safari/Show|Create-Tab.applescript file to make it more robust, handling the situation where there is no open Safari window. The existing script fails if Safari is not running, or is running but has no window open.

I also added an activate just below the tell application "Safari" line in case Safari wasn't already launched. This helps in bringing up a fresh window in that case.

I tested this script with Safari 15.2 on macOS 12.1 Monterey.

boisy avatar Dec 21 '21 23:12 boisy