Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KingBuzzard

macrumors newbie
Original poster
Apr 12, 2022
2
0
The Bra Mate
Hey all,

Complete noob to AppleScript here with a rather complex one:

I would like automate a script that can do the following:

1. After launching, waits for 61 minutes without doing anything, then:
2. Opens Safari with 16 tabs (and 16 separate URLS)
3. Clicks a “Roll!” button on each of the 16 tabs, then pauses for 10 seconds, then:
4. Closes Safari
5. Waits another 61 minutes, then:

6. Performs 2 through 5 over again for a total of 15 repetitions.


One thing to note:

Each URL is unique to the other 15, but they are the same for every repetition.

Is this even possible? From my research into AppleScript I understand there will need to be a little Javascript in there too?

All help appreciated!!
Cheers
 

KingBuzzard

macrumors newbie
Original poster
Apr 12, 2022
2
0
The Bra Mate
https://free-doge.com/free The page will require a login, but once you are logged in there is a "Roll!" button down the page wrapped in a div as:

[TABLE] [TR] [TD]<div class="roll-wrapper">[/TD] [TD][/TD] [/TR] [TR] [TD][/TD] [TD]<div class="h-captcha"></div>[/TD] [/TR] [TR] [TD][/TD] [TD]<button class="main-button-2 roll-button bg-2">ROLL!</button>[/TD] [/TR] [TR] [TD][/TD] [TD]<br>[/TD] [/TR] [TR] [TD][/TD] [TD]<p class="text-center">[/TD] [/TR] [TR] [TD][/TD] [TD]<span class="pending-rolls">You can roll 1 more times.</span>[/TD] [/TR] [TR] [TD][/TD] [TD]</p>[/TD] [/TR] [TR] [TD][/TD] [TD]</div>[/TD] [/TR] [/TABLE]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.