navigate between windows in applescript

  applescript, autohotkey, key, windows

I come from windows 10 and I have a code in autohotkey with which I could move between all the windows of an application.
I want if I press left arrow then go to the last window and if I press right arrow then go to the next window.
Is it posible in applescript??

this is my code in AHK.

THX

#Persistent
    Settitlematchmode, 2
    
    ^Left::    ; Last window
    
    WinSet, Bottom,, A
    SetTitleMatchMode, 2
    WinActivate, /            
    return
    
    ^Right::    ; Next window
    
    SetTitleMatchMode, 2
    WinActivateBottom, /
    return

Source: Windows Questions

LEAVE A COMMENT