shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger

# Saturday, April 13, 2002

Radio Blogging From Mac Word

I got Simon Fell's Word to Radio Macros working with Mac Word X and Mac OS 10.1. I mainly did this because some one posted that they were sad that this was a Windows only solution. Well I made Simon's work by putting together some AppleScript and Visual Basic. I used XML-RPC instead of SOAP because I wasted 6 hours trying to figure out why the SOAP version didn't work. I then realized this was because one of the params for the API is "password" and guess what? Password is a reserved keyword in AppleScript and I saw no way to fix that. Oh well.

There are four steps to setting this up.

  1. Install the Word Macro. Download the following file. Open it and select all and copy the text. Launch Mac Word X and select Tools->Macro->Visual Basic Editor. Select Normal in the Project Window and select Insert->Module in the file menu. Paste the text that you just copied to the clipboard. Now select the name field in the Properties Window and name it "WordRadio". It is very important that you do this or the AppleScript will fail. Now you are done with Word. Click the "W" button in the top left toolbar and your back in Word.
  2. Get the Script Menu for Mac OS 10.1. This menu will allow you to run AppleScripts from the Finder. After you install it select Open Scripts Folder in the Script Menu.
  3. Download the Word To Radio AppleScript and place it in the folder that you opened at the end of Step 2. Make sure to open the AppleScript and add the necessary info if you have a username and password for your Radio Server. Also if you want to post to a remote radio server you can enter that info as well (note: proxy servers are not supported because Apple's software doesn't support them).
  4. Configure Radio to allow posting via the Blogger API. You do this by going to prefs page and make sure that XML-RPC & SOAP are enabled, and that the Blogger API is enabled.

That's it for now. Go type some stuff in a Word doc, select "Word To Radio" in the new Script Menu and your post should make it's way to your Blog (note if your menu bar is running out of space, the script menu may not display. If that is the case, switch to the finder first).

There are some things that can be better such as:

  • better install process
  • ability to update a post
  • better error checking
  • support for paragraphs

but that should be good for now as I've run out of free time for now. Enjoy!

 

Comments are closed.