Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to resize frontmost two windows to fill screen' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to resize frontmost two windows to fill screen
Authored by: ajMac on Jan 10, '06 01:08:42PM

Can I use this script by saving it as an application in the script editor and then executing it?
I tried it, but I am getting this error:
Error: -1700. System Events got an error: Can't make the bounds of window 1 into type reference.

I also tried executing the script from the shell script menu. Same error.
I am new to apple scripts, so could be making an obvious mistake, would like to learn.

p.s: The script works in the script editor.

---
-AJ



[ Reply to This | # ]
A script to resize frontmost two windows to fill screen
Authored by: GlowingApple on Jan 10, '06 01:43:55PM

The script cycles through the current running application. If you run a script with Quicksilver, it does not open a new application but keeps the focus with whatever application you have at the front when you run the script. If you make a new application and run it, that application grabs the focus and becomes the front most application, the it then tries to resize itself and probably runs into issues as it has no visible window.

I don't think I'm advanced enough with Mac and Applescript to get this to work with a separate application. The script would have to capture the application that was front most before the script ran. I'm not sure if this is recorded anywhere in the OS though.

---
Jayson --When Microsoft asks you, "Where do you want to go today?" tell them "Apple."



[ Reply to This | # ]