Command Control (0.0.5 alpha)

Command Control is an application for Mac OS X (Think cmd + ctrl buttons from the Mac OS keyboard... pretty clever, huh?)

This application, written in Xcode (objective-c cocoa and applescript) allows you to connect to your MODx database, get the list of documents, edit them, create new documents, delete documents, etc...

It uses an XML-RPC server I put together based on the The Incutio XML-RPC Library for PHP to send and receive data from the Mac OS X desktop, so it consists of 2 parts. Command Control.app (the OS X application) and cmdctrl.php (the XML-RPC server you upload to the root of your MODx installation).

This is VERY alpha software. Only the basics are working at this time (edit, create new, and delete).  I am working on the RTE, which at this point allows text input, but the heading 1-6 selectors and the bold, italics, and underline buttons are not working yet. I am also working on image upload.  The whole RTE thing I am finding out is no trivial task (to say the least).

To start off, open the app, select from the "preferences" from the main menu (cmd + ,).
enter your Manager username and password, as well as the url to the root of your MODx installation (this is where the cmdctrl.php file should be).  Click "close" or hit enter. You can ignore the FTP area for now, that will be for image upload when I get it working.

next, click the "Fetch Documents" button at the top of the "Documents" window. this will load all the documents in the doc root path (default is 0). if you keep your blog entries/news stories under a different documents (document 2 for example) you can put that number in the doc root text field.  Documents that are also folders will be noted with an apple icon.

From here you can select a document from the table and click "Edit" (or (cmd + return)) or you can create a new document by clicking the "+" button, or delete a selected document by clicking the "-" button.

Once you select a document to edit and click "Edit", it brings up the main Command control window which should look familiar to the MODx manager. you can edit the content  in the document content window, or click the HTML button (⌘ + U) to edit the raw HTML. click the tabs on the top of this window to edit various document data (⌘+1 for General, ⌘+2 for page settings, ⌘+3 for META, ⌘+4 for Misc). If you open the HTML edit window (⌘+U) you can save it and have it update the main window by clicking update or (⌘+S), or forget your changes and close the window by clicking cancel (or hit esc).  the same controls (⌘+S and esc) apply to the main window as well.

I have attached a screen shot as an example of what I have so far.  This is editing a page on my local MAMP server which is a backup of http://scottydelicious.com.

Please, PLEASE!!! backup your database first!