I have never used AppleScript before, and I wanted to create a view bot (keeps refreshing webpage for views). I found one online that works perfectly, but if I want to change the URL, I have to open Applescript. The same goes for changing the refresh time (currently at every 2 seconds). Can I make it so that when the application opens, there is a simple dialog box with texts fields for both URL and refresh time? Here is what I am using now.
on run
do_the_thing()
end run
on idle
do_the_thing()
return 2
end idle
to do_the_thing()
tell application "Safari"
launch
open location "https://forums.macrumors.com/"
end tell
end do_the_thing
How can I do this?
on run
do_the_thing()
end run
on idle
do_the_thing()
return 2
end idle
to do_the_thing()
tell application "Safari"
launch
open location "https://forums.macrumors.com/"
end tell
end do_the_thing
How can I do this?