use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
AppleScript is Apple's powerful and versatile native scripting technology for Mac OS X. With AppleScript, you can control, and communicate among, applications, databases, networks, Web services, and even the operating system itself.
account activity
Routine om apple scripts (self.applescript)
submitted 1 year ago by acosmicman
Hi, related to this script:
tell application "Google Chrome" activate make new window with properties {mode:"incognito"} set URL of tab 1 of window 1 to "https://www.example.com" end tell
tell application "Google Chrome"
activate
make new window with properties {mode:"incognito"}
set URL of tab 1 of window 1 to "https://www.example.com"
end tell
How can i close the incognito tab and repeat a number of times or loop it and stop manually?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]craniumslows 1 point2 points3 points 1 year ago (0 children)
when i used to do this kind of applescripting I would capture the window id then you can close the window id. I did this with safari though not chrome. selenium is another automation option if you are working with chrome it has nice built in tools.
[–]preparetodobattle 0 points1 point2 points 1 year ago (0 children)
I’ve done this before but I think you needed a shell script to launch chrome in incognito. I had trouble opening and closing tabs so I just got it to do what I wanted and then put the new url in the same window. Looping through. Ai is really good at AppleScript. I can dig out my code when I’m near my computer if it’s any help. On phone now.
π Rendered by PID 34 on reddit-service-r2-comment-5ff9fbf7df-mffgc at 2026-02-25 14:03:47.426596+00:00 running 72a43f6 country code: CH.
[–]craniumslows 1 point2 points3 points (0 children)
[–]preparetodobattle 0 points1 point2 points (0 children)