Updated AppleScript (markdown)

Cameron Kaiser 2019-02-18 05:38:02 +00:00
parent 13572c0510
commit 6dcddbfe57

@ -81,6 +81,8 @@ tell application "TheApp"
end tell
```
A script like this could be handy to display a changing web page in a separate display, or for a non-interactive information kiosk. It could be modified to make it effectively display a programmed slideshow of sites by changing the URL as well.
To stop this script, Alt-Tab to the Script Editor and click Stop, then return to TenFourFox and press Command-W to close the window.
## GUI scripting
@ -142,6 +144,4 @@ repeat with t in every tab of front browser window
end repeat
```
You'd do better simply closing the front browser window, which will close all tabs at once and is more efficient anyway. In a like fashion, because the browser window indexes are variable, trying to do a `repeat with w in every browser window` followed by `close` to close all browser windows will probably cause an error.
AppleScript is currently a feature in development and may change in future versions.
You'd do better simply closing the front browser window, which will close all tabs at once and is more efficient anyway. In a like fashion, because the browser window indexes are variable, trying to do a `repeat with w in every browser window` followed by `close` to close all browser windows will probably cause an error.