April 12, 200718 yr I have an old script for centering a window, but now on an intel mac it is not working, any suggestions? Distance from Top (Get ( ScreenHeight ) - Abs(Get(SystemPlatform) + 1) * 150 - Get ( WindowContentHeight )-35) / 2 Distance from Left (Get ( ScreenWidth ) - (Get ( WindowContentWidth )+14)) / 2 //14 add to width for mac scroll bar
April 13, 200718 yr I think the problem is Abs(Get(SystemPlatform) + 1) That's like saying Abs( 1 + 1 ) // =2 on Intel Mac Abs( -1 + 1 ) // =0 on PPC Mac Abs( -2 + 1 ) // =1 on Win2000 or XP should be Abs(Get(SystemPlatform)) + 1 Seems like it wouldn't have worked right before either!
Create an account or sign in to comment