How do I script Desktop Manager 0.5.3 to organize multiple desktops?

1st… I am extremely new to scripting and have only a rudimentary knowledge of its power. With that said my overall goal is to set up a script that will allow me to open Desktop manager 0.5.3 (virtual desktop) and automatically run certain apps in on certain desktops. Specifically: Main Desktop runs: safari, itunes, finder; Distraction Desktop runs: bittorrent, aquisition, safari; Day to Day Desktop runs: ical, mail, addressbook; Administration runs: activity monitor, script editor.

I cannot figure out how to tell desktop manager to move the apps to particular desktops (my script hasn’t gotten past tell “desktop manager” end tell:|. I know that if I want to move an object or window I must specify the location, but I don’t know how to specify the location of a virtual desktop (ie. Main desktop). Does anyone have insight? Anyone figured out how do to do this or willing to help a noobie?

I have searched Applescript FAQs, code exchange, scriptbuilders, and google for help on this matter. Additionally Desktop Manager is a scriptable program with an extensive dictionary (albeit over my head).

Any help/input would be greatly appreciated.

Model: powerbook g4
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

I use VirtueDesktops occasionally, and I know from experience that applications can be set to live in a particular desktop based on choice by the user. Downloading Desktop Manager just now, I can’t seem to see an option for this functionality.

BTW, I couldn’t see anything useful in Desktop Manager’s script dictionary; it may not have full applescript support. :confused:

Thanks :slight_smile:

I am trying something with VirtueDesktops. I have a mouse that I can assign apps to buttons. I want to add a ‘Roll Forward Through Desktops’ app to the right and a reverse to the left. I seem to have the idea started, but it just returns ‘1’ as the current desktop, regardless of the actual active desktop. I am stuck at 10.4.X for quite a while in a production environment, so not Leopard solution for now… :frowning:

tell application "VirtueDesktops"
	set activeDesktop to number of active desktop as number
	set desktopName to title of active desktop
	if number of active desktop is 1 then
		show desktop 2
	end if
	if number of active desktop is 2 then
		show desktop 3
	end if
	if number of active desktop is 3 then
		show desktop 4
	end if
	if number of active desktop is 4 then
		show desktop 1
	end if
end tell

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 2.0.0.6
Operating System: Mac OS X (10.4)

Well, its not exactly what I wanted, but if you use 10.4.X, you can use this to switch through the desktops. I just use the one on the side-left button, as an app. The bug is that when in Firefox, it only works if I hover over another window. Otherwise, it stays put. You can easily modify these to suit your desktop setup.

tell application "VirtueDesktops"
	set activeDesktop to number of active desktop as number
	set desktopName to title of active desktop
	set desktopNumbers to number of every desktop as list
	set desktopNames to title of every desktop as list
	if desktopName is "Main" then
		show desktop "Internet"
	end if
	if desktopName is "Internet" then
		show desktop "Adobe"
	end if
	if desktopName is "Adobe" then
		show desktop "Four"
	end if
	if desktopName is "Four" then
		show desktop "Main"
	end if
end tell

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 2.0.0.6
Operating System: Mac OS X (10.4)