Spotlight Does Not Respond to Window Move and Resize Commands


Edit 2021/12/13 09:18 CST: removed unnecessary tell-block... -ccs


Hey Joel,

The Spotlight window is a floating system window that Keyboard Maestro doesn't see.

Use AppleScript:

--------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2021/12/13 06:01
# dMod: 2021/12/13 09:17
# Appl: Spotlight, System Events
# Task: Reposition and Resize the Spotlight Window.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Spotlight, @System_Events, @Reposition, @Resize, @Spotlight, @Window
--------------------------------------------------------

tell application "System Events"
   tell application process "Spotlight"
      tell window "Spotlight"
         set {position, size} to {{380, 172}, {680, 430}}
      end tell
   end tell
end tell

--------------------------------------------------------

List Windows Keyboard Maestro Can See v1.1

-Chris

1 Like