Arduino and applescript

Hi, I have a mac related question
How do I make an applescript program that I made run automatically if the arduino outputs (prints) the letter “A” in serial monitor?
I’m a noob at this so if someone could write out the code for me I would really appreciate it

Any help is very much appreciated

There was another Thread about applescript recently. Google should be able to find it for you.

...R