MarsEdit Images and WordPress Upgrade
Thursday, September 6th, 2007This morning I wanted to get a few things done with regards to MarsEdit, and my journal (weblog). The first was an issue I'd been having with MarsEdit and importing/including images. When I first captured the Apple logo for decorating Apple-related posts, I got it at a size that was smaller than I wanted. But it was in the beginning and I didn't really know it was a bad size until I used it a bit and created a few more. Then I made another and imported it on top of the original. This sent the image to WordPress and all appeared OK, but it wasn't. Not really.
When I went to add in yesterday's entry about the new iPods, I realized that the size tag in the inclusion was wrong. I had to hand-edit it. Same with the others in WordPress. So then I started playing with it. Turns out, it was inserting the old size with the new image. So I had a bit of a problem. I posted a message to the MarsEdit support forum and didn't directly get my answer, but got close enough.
It turns out that the image is saved into $(HOME)/Library/Application Support/MarsEdit/UpdloadedFiles/ and it's dimensions are also stored in the UploadedFiles.plist in the MarsEdit support directory. So, by placing the correct file from WordPress' uploads directory into the correct place in the /UploadedFiles/ directory, editing the plist, and restarting MarsEdit, I got it working.
Daniel (of MarsEdit) says that he's working on the library functions of MarsEdit to make this more foolproof. Now that I know what I know, I can deal with this, and I'll be much more careful about making icons in the first place, but it's nice that it's all there to be hacked upon.
The second thing I wanted to do was to see about updating WordPress on HostMonster, my hosting provider. Turns out, I was running 2.1.3, and 2.2.2 had some security fixes that it's always good to stay up on. I was very happy to see that when I went into Fantastico on HostMonster, it even pointed out that I had an older version of WordPress, and that I should update it. The update went very smoothly and in a few minutes I was running 2.2.2 and everything was fine. Excellent support from the HostMonster, and WordPress is an excellent tool.