Jump to content

Spaces and Applescript


onizuka
 Share

2 posts in this topic

Recommended Posts

Hi,

 

Remember this thing?

Looked amazing to me at that time. Now that I've got a MacBook I'd really would like to do the same with Spaces in Leopard. The thing is, I haven't found any app on the web doing that with Spaces...

 

After looking at the Sudden Motion Sensor libraries, I think I might be able to detect the taping. However, I found no AppleScript function, or even no System Event which would change Space... Is there any? :)

 

Besides, this thing is really painful to search on Google, since the word space is on almost every web page :)

Link to comment
Share on other sites

  • 2 weeks later...

By default you can switch spaces by hitting control+number (e.g. control+3 switches to space 3).

So, if access for assistive devices is enabled, you can switch spaces like this...

tell application "System Events"
tell process "Finder"
	keystroke "2" using control down --switches to space 2
end tell
end tell

Link to comment
Share on other sites

 Share

×
×
  • Create New...