Jul 05, 2008, 11:05 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: [Mac OS X app for MODx Publishing] Command Control (cmd + ctrl)  (Read 13294 times)
0 Members and 1 Guest are viewing this topic.
Dr. Scotty Delicious
Coding Team
*
Posts: 1,167


Dr. of Fine Pirate Arts


WWW
« on: Jan 22, 2007, 06:00 PM »

I am writing an application for Mac OS X. It is called Command Control (⌘ + 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 keep an eye on the project and to download the latest binary, go to http://piratemachine.org/software/

*** EDIT ***
I am rewriting this in REALBasic so I can deliver binary executables for all major platforms.
I would like to get suggestions for a name for this app (since cmd+ctrl is a term that only seems appropriate for the Mac) from this community.  Please post your naming suggestions in this forum thread.

-sD-
Dr. Scotty Delicious, Scientist.


* cmdctrl_screenshot.jpg (106.75 KB, 1000x667 - viewed 539 times.)
« Last Edit: Feb 07, 2007, 09:06 PM by Dr. Scotty Delicious » Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
garryn
Coding Team
*
Posts: 1,090



WWW
« Reply #1 on: Jan 22, 2007, 06:16 PM »

Very, very nice! That looks superb Grin Heh, quite funny as I only got XCode up and running at the weekend for a bit of widget development - oh, and you have yourself an alpha tester btw Wink

Keep it up, Scotty!

Logged

rthrash
Foundation
*
Posts: 8,910



WWW
« Reply #2 on: Jan 22, 2007, 06:28 PM »

Jaw drops. Me likey ... LOTS!
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
davidm
Marketing & Design Team
*
Posts: 6,468


The best way to predict the future is to invent it


WWW
« Reply #3 on: Jan 22, 2007, 06:51 PM »

+1 Scotty you never cease to amaze me !

This is simply H-U-G-E !

Where the hell do you find time to learn so many things so fast ?
I am in awe (and happy too, glad to be a Mac user Grin)
Logged

blog.nodeo.net : Pour un web libre, moderne et ouvert! :: | ! Nouveau ! Les forums modxcms.fr : Participez à l'élaboration du site MODx francophone ! ! Nouveau ! :.

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.5 | Debian 4.0 (Etch)

Réalisations sous MODx : nodeo.net | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | sworld.com | soleil.info
 et 3 autres en cours de réalisation Smiley
omid
Jr. Member
*
Posts: 23


« Reply #4 on: Jan 22, 2007, 07:34 PM »

Fantastic !!!
You've got another alpha tester ! :-)

How do you manage the offline-online part ?
Will I be able to access the app and the previously synchronized document when i'm offline ?
Will it be a solution for having a real "rich text editor" compatible with Mac OS X ?

By the way, why don't we have a "Mac" section on the forum ? (or i've missed it ?)
Logged
Dr. Scotty Delicious
Coding Team
*
Posts: 1,167


Dr. of Fine Pirate Arts


WWW
« Reply #5 on: Jan 22, 2007, 07:44 PM »

Fantastic !!!
You've got another alpha tester ! :-)
Cool! PM me your email address and I will send you the App.
How do you manage the offline-online part ?
You will have to be online at this point, but perhaps storing the information locally using Xcode's Core Data and then syncing that on connection to the remote host would be cool.
Will I be able to access the app and the previously synchronized document when i'm offline ?
Not at this point.  Great feature request though. I will put it on the TODO list.
Will it be a solution for having a real "rich text editor" compatible with Mac OS X ?
That is the idea. Your definition of "Real" and mine may vary.  What I am shooting for at this point is a basic WYSIWYG HTML editor, much like the basic toolbar set for TinyMCE. Who knows though, maybe next I will do drag and drop support for images. We will see I guess.
By the way, why don't we have a "Mac" section on the forum ? (or i've missed it ?)
Because MODx is platform independant.  Although there are intricacies involved specific to the Mac OS, they are more specifically tied to a particular browser.  Although we are all trying to contribute ideas and solutions to make this work exactly the same on every possible browser, there are a lot of variables that make that quite difficult to say the least.

-sD-
Dr. Scotty Delicious, Scientist.
« Last Edit: Jan 22, 2007, 08:30 PM by Dr. Scotty Delicious » Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
Dr. Scotty Delicious
Coding Team
*
Posts: 1,167


Dr. of Fine Pirate Arts


WWW
« Reply #6 on: Jan 22, 2007, 09:50 PM »

Mark helped me track down a bug in cmdctrl.php (a really stupid mistake actually).
Line 829 should read:
Code:
require_once('manager/includes/config.inc.php');
and not any reference to scottydelicious LOL  Embarrassed

-sD-
Dr. Scotty Delicious, Scientist.
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
sottwell
Documentation Team
*
Posts: 7,200



WWW
« Reply #7 on: Jan 23, 2007, 12:34 AM »

Can I test too? Can I? Can I?  Shocked
Logged

Live site! sottwell.com - Manager user: guest, password: guestuser
MODx Templates - SkinGraft ready! Loripsum
Dr. Scotty Delicious
Coding Team
*
Posts: 1,167


Dr. of Fine Pirate Arts


WWW
« Reply #8 on: Jan 23, 2007, 01:02 AM »

Can I test too? Can I? Can I?  Shocked
Susan, I sent you a package to your loripsum address

-sD-
Dr. Scotty Delicious, Scientist.
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
doze
Coding Team
*
Posts: 2,944


....Boom!


« Reply #9 on: Jan 23, 2007, 04:13 AM »

Very nice Scotty!!  Cheesy
Logged

MODxWiki || Please, list wiki worthy material here!
yoomai
Full Member
***
Posts: 228



WWW
« Reply #10 on: Jan 23, 2007, 03:43 PM »

Amazing.
Logged

sottwell
Documentation Team
*
Posts: 7,200



WWW
« Reply #11 on: Jan 24, 2007, 09:01 AM »

It needs a bit of input validation, the database wasn't happy about the apostrophes in my page content.

« Last Edit: Jan 24, 2007, 09:53 AM by sottwell » Logged

Live site! sottwell.com - Manager user: guest, password: guestuser
MODx Templates - SkinGraft ready! Loripsum
sottwell
Documentation Team
*
Posts: 7,200



WWW
« Reply #12 on: Jan 24, 2007, 09:51 AM »

It got real unhappy with me when I clicked on "Cancel" on the little dialog about the published status. In fact, it's still just sitting there with the blue progress bar spinning or whatever it is that it does. I'll have to do a force quit.
Logged

Live site! sottwell.com - Manager user: guest, password: guestuser
MODx Templates - SkinGraft ready! Loripsum
Dr. Scotty Delicious
Coding Team
*
Posts: 1,167


Dr. of Fine Pirate Arts


WWW
« Reply #13 on: Jan 24, 2007, 10:03 AM »

Holy CRAP!
I think I forgot to mysql_escape_string() the saved content!

oh, and the "published = (0 or 1)" dialog was for debugging, and was never supposed to make it into one of these distrobutions.  I think you have alpha 0.0.2 or 0.0.1.  The folks who have 0.0.3 won't know what Susan is talking about, but Susan... I will have an updated version with the doc list as an outline (as in the attached photo) hopefully by the end of the day.  You can have the first copy!  Wink

On the TODO for TODAY.  Grin

BTW, Here is a screencap of the new document list, complete with custom "iTunes-esque" window style.

-sD-
Dr. Scotty Delicious,  Scientist.


* 003docList.jpg (46.67 KB, 250x630 - viewed 348 times.)
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.

http://scottydelicious.com
http://piratemachine.org
http://treasurechestcart.com

My Amazon Wishlist Wink

Download WebLoginPE 1.3.0: A complete web user management snippet for MODx.
TreasureChest Documentation: http://www.treasurechestcart.com/documentation.html.
TreasureChest. Easy MODx eCommerce!
sottwell
Documentation Team
*
Posts: 7,200



WWW
« Reply #14 on: Jan 24, 2007, 10:24 AM »

It doesn't save the URL in Preferences.

And you really should use mysql_real_escape_string()

However... http://www.sottwell.com/command-control.html


* editor.jpg (143.15 KB, 642x583 - viewed 351 times.)

* preferences.jpg (57.26 KB, 356x273 - viewed 342 times.)
« Last Edit: Jan 24, 2007, 10:26 AM by sottwell » Logged

Live site! sottwell.com - Manager user: guest, password: guestuser
MODx Templates - SkinGraft ready! Loripsum
Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!