Skip to content

Commit

Permalink
move window first
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrejb committed Mar 14, 2024
1 parent 32a1405 commit eb6182a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/take_screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb6182a

Please sign in to comment.