gbammc / Thor

Switch the right application ASAP.
MIT License
1.16k stars 69 forks source link

Possible to execute AppleScript? #46

Open xtuer opened 2 years ago

xtuer commented 2 years ago

It would be better when Thor can execute AppleScript.

There is Bug when activating Finder from different space where Finder does not located. We can use following AppleScript first switching to space 1 and then activate Finder:

tell application "System Events" to key code 18 using {control down}

tell application "Finder"
    activate
    if (count windows) is 0 then make new Finder window
end tell
kenji21 commented 2 years ago

maybe related to : https://github.com/gbammc/Thor/issues/38 do you tested using the latest (1.5.6 for now) version ?

xtuer commented 2 years ago

maybe related to : #38 do you tested using the latest (1.5.6 for now) version ?

1.5.7 already used, the Bug still occurred on Finder.