I am running apple script. My problem is that i am opening a safari window using apple script. After that I am hiding it using script tell application "System Events" to tell process "Safari" to set visible to false
Now I want that my leftover script should run on that safari window which is hidden, but when i hide safari window then the focus to the safari is lost and the script starts running on the application that has focus instead of safari window.
Can we do this? Please tell the solution if we can.Any help is appreciated.
Thanks.