Skip to content

Commit

Permalink
Fixed working on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
CeQadrat committed Mar 19, 2018
1 parent 4a0c5ef commit 41378c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/mac.scpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
tell process frontAppName
tell (1st window whose value of attribute "AXMain" is true)
set windowTitle to value of attribute "AXTitle"
end tell
if exists 1st window whose value of attribute "AXMain" is true then
tell (1st window whose value of attribute "AXMain" is true)
set windowTitle to value of attribute "AXTitle"
end tell
end if
end tell
end tell
return {frontAppName,windowTitle}

0 comments on commit 41378c5

Please sign in to comment.