IceCubesApp icon indicating copy to clipboard operation
IceCubesApp copied to clipboard

Window Size and Location Not Saved on Exit from App

Open dgiffin opened this issue 1 year ago • 4 comments

Environment:

  • OS:
  • IceCubesApp version:

Description

Related Issues

  • [None ] Search that this bugs don't already exist before creating it.

dgiffin avatar Dec 27 '23 13:12 dgiffin

I can confirm the same behavior.

OS: MacOS 14.2.1 (23C71) IceCubes: 1.10.6 (2262)

jessewilson avatar Dec 30 '23 18:12 jessewilson

I second that. This behavior is really annoying.

% sw_vers
ProductName:		macOS
ProductVersion:		14.3
BuildVersion:		23D56
% defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleShortVersionString
1.10.28
% defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleVersion
2487

0xDP avatar Jan 29 '24 16:01 0xDP

Same here. Would be nice if this could be fixed!

sw_vers ProductName: macOS ProductVersion: 14.3 BuildVersion: 23D56 defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleShortVersionString 1.10.30 defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleVersion 2501

nachtbraker avatar Feb 05 '24 21:02 nachtbraker

Until the issue is fixed, one can use the following Apple script to start and/or resize/position Ice Cubes. wPos and wSize must of course be adapted.

-- get name from bundle identifier in case someone has renamed the app
set appID to "com.thomasricouard.IceCubesApp"
set appName to name of application id appID
set wPos to {50, 50}
set wSize to {600, 800}

activate application appName
tell application "System Events" to tell process appName
	-- wait until the window is available to resize it
	repeat until count of windows > 0
		delay 0.1
	end repeat
	set position of windows to wPos
	set size of windows to wSize
end tell

0xDP avatar Apr 27 '24 15:04 0xDP