I have a strange problem. On a Studio X app I change the bounds of a window. This app and especially this function works very well on the most systems.
But I have on beta tester and if he activate the function for changing the bounds of a window then the app crashes or the window will be closed.
I don ´t find the reason for this. He sent me a crash log but this is not really easy to read and understand.
I built a debug app which has only one window with one button. By clicking this button the bounds of the window will be changed.
This is my code:
property clickStatus : true
on clicked theObject
if clickStatus is true then
set clickStatus to false
else
set clickStatus to true
end if
set {tx, ty, txx, tyy} to bounds of window "mainWindow"
tell window "mainWindow"
if clickStatus is true then
set bounds to {tx, (ty + 20), txx, tyy}
else
set bounds to {tx, (ty - 20), txx, tyy}
end if
end tell
end clicked
If you need the crash log I could post it.
It would be very nice if someone can help me. Thanks.
hoschy07.
P.S. This user has Shapeshifter installed.