10.5: Fix a Terminal window position AppleScript issue
Dec 16, '08 07:30:00AM • Contributed by: Anonymous
Dec 16, '08 07:30:00AM • Contributed by: Anonymous
I was trying to use AppleScript to open, title, change directory, and position several Terminal windows. Titling and changing directories wasn't a problem, but there appears to be a bug positioning the windows using set bounds of front window to {x,y,w,h}. I Google'd around for answers and found this page which confirms the bug.
I tried the alternative suggested in the above page to no avail; it was better, but still not positioning the windows exactly where I wanted. I then found this page, and the Unix commands listed there did the trick!
So, I cranked out an AppleScript to achieve what I'd originally set out to do, and it works flawlessly. Here's the commented code; it should be self-explanatory. I hope it's of use to someone...
•
[11,290 views]
