Firstly I have only been using AppleScript for the last couple of days, so am really new to it and have no real other scripting knowledge, so forgive me if this comes across as something trivial or I ask lots of follow up questions.
I have an element that I would like to right click on using cliclick, but the location of the element moves depending upon other windows and sidebars being open
I would like to use
position of button 1
to return the correct co-ordinates so I would like to be able to use maths to add to the X,Y co-ordinates in cliclick so it would be something like this
position of button 1
do shell script "../cliclick c:x+25,y+5"
is this possible or is it something that I will have to using another language? I am thinking the final project will be compiled into an application using Xcode and will be hiring someone for this, am just trying to make their life as easy as possible beforehand.
A more compact equivalent code: