Recently I am trying to set up an AppleScript to do some simple task. But I can't really find some resources that can provide me with a systematic introduction or tutorial for me to get started with Apple Script. So I'd like to hear some advices on how should I get started. Or in other words which are the recommended materials or documentations that I should follow?
I tried to go through the Apple's official documentation, but that seems too heavy to be a quick start guide.
Something like this as we have in python would be the best.
And I just attach the actual problem that I am trying to solve below.
a simple logic:
if safari is not the front most application:
bring safari to frontmost
if certain webpage is opened in safari:
bring that tab of the webpage to the frontmost
else
open that webpage
end if
else
hide safari
end if
Quite simple and naive isn't it.