For the past couple of years, I’ve been a voluteer on the questions and answers site, AllExperts.com. In that time I’ve mainly answered questions about broken hard disks and printers but every now and then an AppleScript question has appeared.
I’m going to start putting the questions and answer up on this blog for other people to see. There’s bound to be more than one person having a problem.
Is there a specific AppleScript function to alter the boundaries of Firefox windows?
FireFox AppleScript support is really poor. Almost non-existent in fact. As the windows are part of the window manager you can address them through System Events:
tell application "System Events" to set size of window 1 of process "Firefox" to {300,300}
How do you enable Spaces and add an extra row and column?
tell application "System Events"
tell spaces preferences of expose preferences
set spaces enabled to true
set spaces columns to 3
set spaces rows to 3
end tell
end tell
How can I get all elements of a list except the last one?
if (count of your_list) is greater than 1 then set your list to items 1 thru -2 of your_list
Posted under AppleScript
This post was written by stetho on November 26, 2008

Im looking to write an applescript that I can place in my startup items that will open several programs, place their windows on seperate “spaces” when necessary (i.e. when there are more than one window) and resize the windows how I see fit. Any ideas?