This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Set up the logger | |
local log = hs.logger.new('WindowMover', 'info') | |
-- Function to get spaceId by space name | |
function getSpaceIdByName(spaceName) | |
local spaceNames = hs.spaces.missionControlSpaceNames() | |
for uuid, desktops in pairs(spaceNames) do | |
log.i("UUID: " .. uuid) -- Log the UUID | |
for index, name in pairs(desktops) do | |
log.i("Index: " .. index .. ", Name: " .. tostring(name)) -- Log the index and name |