Applescript, Safari (or Firefox) and Spaces
I am currently attending online classes using my new iMac and it works great 🙂 Here is my question. I am using the iMac screen and also a second monitor. I have 5 classes that require 2 windows per class.
I have opened up Safari and placed each class on its own "Space". It works awesome, except when something crashes (typically due to flash). When I reopen Safari or Firefox, all of the Windows are back on Space 1.
What I want to do, is create an applescript to move the windows to their proper spaces. I have figured out that I can get each windows name in Applescript and perform some action afterwards. My test was displaying the name of the Window, but I am not sure how to tell Applescript something like the following pseudo-code (Mind you I have excluded a lot of the earlier part of the script that gets the window name of each window of the application)
if theWindowName = "Class 1" then
move theWindowName to Space 2"
end if
Any help would be appreciated 🙂
Thanks
Greg Evans
21.5" i5 iMac, G4 Mac Mini, iPhone 3g, Mac OS X (10.6.4), Anyone wanna donate me a iPhone4? <grin>