Terminal.app does not respond correctly to applescript 'set bounds'
Originator: | bwillmore | ||
Number: | rdar://5765608 | Date Originated: | 26-Feb-2008 07:50 AM |
Status: | Open | Resolved: | |
Product: | Mac OS X | Product Version: | 10.5.5 |
Classification: | UI/Usability | Reproducible: | Always |
26-Feb-2008 07:50 AM Benjamin Willmore: Summary: Terminal application fails to set window bounds correctly in response to Applescript Steps to Reproduce: osascript -e "tell application \"Terminal\" to set bounds of front window to {200,300,1000,800}" (or any other rectangle) Expected Results: Window resizes to the requested rectangle Actual Results: The window resizes to an incorrect rectangle. For example, compare: osascript -e "tell application \"iTunes\" to set bounds of front window to {200,300,1000,800}" osascript -e "tell application \"Font Book\" to set bounds of front window to {200,300,1000,800}" Both correctly resize the window to the requested bounds. Terminal doesn't. Notes: The error is equal to the height of the window, and so the following applescript gives the desired behaviour: tell application "Terminal" set winBounds to bounds of front window set height to (item 4 of winBounds) - (item 2 of winBounds) set bounds of front window to {200, 300 + height, 1000, 800 + height} end tell
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!