From eb6182ad736a93bf2d003d9cd729c500ed6b9c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sverre=20Johann=20Bj=C3=B8rke?= Date: Thu, 14 Mar 2024 21:54:51 +0100 Subject: [PATCH] move window first --- .github/workflows/take_screenshot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/take_screenshot.yml b/.github/workflows/take_screenshot.yml index 072116f..5d2cdc8 100644 --- a/.github/workflows/take_screenshot.yml +++ b/.github/workflows/take_screenshot.yml @@ -37,6 +37,7 @@ jobs: cargo run --release > cargo.log 2>&1 & sleep 5 cat cargo.log + osascript -e 'tell application "System Events" to tell process "infoskjerm" to set position of window 1 to {0, 0}' window_info=$(osascript -e 'tell application "System Events" to tell process "infoskjerm" to get {position, size} of window 1') x=$(echo $window_info | cut -d, -f1) y=$(echo $window_info | cut -d, -f2)