So after attempting to check specific boxes on an internal work website (using Safari), It seemed unreliable to use strictly AppleScript to do it and I was referred to explore Javascript.
With the help of a friend who knows Javascript, I was able to inspect the element of the website, then paste in the below javascript in the Console menu, which works to check off the boxes needed! (a long list of "last name, first name"s)
But now, how would I even begin to merge the javascript into my existing AppleScript so I don’t have to paste into the website inspector Console?
$(document).ready(function() {
var arr = ["Last1, First1","Last2, First2","Last3, First3"];
jQuery.each( arr, function( i, val ) {
jQuery('span[title*="' + val + '"]').closest('.tree-node').find(':input').click();
});
});
I know nothing about Javascript and my friend knows nothing about AppleScript.
Any guidance would be appreciated