Accidentally Ticked Checkbox Dialog without Thinking
Whenever I click a link on apps.apple.com, the web browser launches the App Store app. I want to undo this behavior.
Detailed Context
Here's the detailed context of the problem:
- Accidentally ticking a checkbox dialog without thinking
- Whenever clicking a link on apps.apple.com, the web browser launches the App Store app
- Undoing this behavior is desired
Code Block (AppleScript)
tell application "Safari"
set url of front document to "https://apps.apple.com/"
set currentTab to the tab ID of the front tab
set newTab to make new tab at end of tabs in front document
set URL of tab newTab to "about:blank"
activate
set frontTab to the tab ID of the front tab
if frontTab is equal to currentTab then
set URL of tab newTab to url of front document
end if
end tell
References
- Book: "Automating AppleScript: A Hands-On Guide to Apple's Powerful Scripting Language" by Shane Stanley
- Article: "How to open links in a new tab in Safari on Mac" by Macworld UK
- Online Resource: "How to Open Links in a New Tab or Window in Safari" by MacStories