This Past Weekend...
I spent some of the day Saturday playing around with an
Applescript I have been working on. I'm just getting started with Applescript and I am quite the noob. I have been reading
Matt Neuberg's
'Applescript - Definitive Guide' from
O'Reilly and just about done with it. So I've got the basics in my head, which of course I completely forget when it gets down to actually writing some code, and I spend alot of time looking things up and re-reading the code examples, and of course, going thru the Finder dictionary. Basically I want the script to watch a folder and when a new file is added to that folder and is an mp3 it will be copied into iTunes and added to a playlist. Still a bit of work to be done.
I have a bit of Python code that I lifted from
Ray Slakinski's (who is now working on
iPodderX) orignal pyPodder that contained an Applescript to move files to iTunes and add it to a playlist. I was going to use this as a model for a portion of my Applescript. I realized however that I had not yet installed
Python for the Mac yet. Actually that is not entirely true, as I do not really need to add Python because Apple is nice enough to include the core of Python as part of OS X. Instead what I needed to do was get to the
MacPython site and
download and install the IDE, the Package Manager and the waste module that the other two packages depend on, the rest is already there. The MacPython addition installed easily and without trouble. I then went to find me a good programmer's type text editor as I prefer to use a text editor instead of the Python IDE. On the Powerbook 12" I had been using
Mi. I liked it at first and it has all the features one would need, but after a bit the rather wonky syntax highlighting began to bug me and it was no longer being actively maintained, and just before I had purchased the iMac G5 I had put
Sub etha Edit on the Powerbook. So for the PodBox I decided to start off with it. Not only is Sub etha Edit a good general purpose editor with all the necessary functions and a plethora of syntax highlighting, it also has the ability to allow for the document to be edited by numerous folks at the same time via Rendevous, each with their own color for text they have added or edited. I haven't played with this feature yet, but plan on soon when I will need to do some collaborative web editing. Sub etha Edit appears to be free for non-commercial use (although it displays a somewhat distracting watermark stating its non-commercial license), and it is also quite reasonable in price when the full meal deal is purchased. I'm gonna run it thru its paces a bit and will then probally opt for the paid version. Check it out.
After playing around with Applescript for a bit more I set it aside to go run some errands with the family. While out and about I picked up a couple of items I was wanting for the PodBox. One was a USB 2.0 hub.
I found one I kinda liked made by
Kensington, the
DomeHub USB 2.0, which also came with a free USB '
FlyLight'. Its a silver hemisphere about the size of half of a small grapefruit. It has six USB 2.0 ports arranged along the back of the hub and one port at the top of the hemisphere (the packaging illustration shows them plugging the FlyLight into the top port). Along the front are seven small green rectangular LEDs which light up when the associated port has something plugged into it. The hub, besides going along with the rest of my desk and its accessories, and the fact that it has seven ports, has a nice weight to it (it prolly weighs a half pound or more), which is very helpful in keeping the hub and cables in place. So when I plug my camera into it and then in turn pick up the camera to turn it on or just move it around in general, the USB hub stays right where I left it and tends not to get drug around the desk or get turned to one side like a typical lightweight hub will do.
But so begins an hour long comedy of errors and frustration. The PodBox's three USB 2.0 ports were occupied with the Seagate external drive, the color laserjet and the blue glowy USB 1.1 hub. I unplugged the glowy hub from the iMac G5, plugged in the new USB 2.0 hub, and in turn plugged the iMic and glowy hub into the new one and unplugged the Powermate from the glowy hub and added it the new one as well. The glowy hub began glowing again and the Powermate began to faintly glow, so I presumed things had been rediscovered. I attempted to wake up the PodBox from screensaver mode, it didn't want to come back to life, tapped on the keyboard a few times, jiggled the mouse around, waited a bit and tried again, the screen saver just kept Ken Burnsing its images of outer space. So I was forced to power down the iMac G5 and turn it back on (having just typed this I'm thinking maybe I should have attempted a forced reboot with some key combo, but didn't think about it at the time and not sure if they work without the system being fully awake anyways). The PodBox booted right up, but once back in OS X I noticed something was different about my desktop, "ah crap!" the Seagate external USB drive had disappeared (and it wasn't showing in the finder either). So I unplugged the the drive from the PodBox and plugged it back in, nothing, powered the drive off and on, nothing. I also attempted to turn up the system sound volume via the Powermate, it no worky either. Did another quick reboot.
Remembering the first time I attempted to connect the external drive and the issues I had with it not liking certain USB ports I decided I would try that trick again. Sure enough, plugging the external drive into a different port had it discovered and mounted in seconds. Now however, I had unplugged the new USB hub to plug in the external drive where it was and when I plugged it back in it wasn't recognized. So, I unplug it and the printer and swap their positions, and if you haven't guessed it, now the printer was recognized. I wasn't about to mess with that external drive again and I was outta ports to swap, so I rebooted the PodBox, still no printer. Tired of dicking around I removed the printer via the 'Printer Setup Utility' from the Applications:Utilities folder and re-added it. Ta, da! Back was the printer.
Now I thought all this USB stuff was supposed to be hot pluggable? I understand about the external hard drive and that I would need to unmount it or 'eject' it prior to unplugging it, but I never touched it and yet it still disappeared when I unplugged a different USB device. It seems like the USB ports on the back of the iMac G5 are all kinda daisy-chained together and removing a device from one effects the others; and once those ports get all funky they don't want to accept the device that was previously plugged into it. Will have to do some checking around and see it this is intended behavior or not.
Got a few more things I did over the weekend, but I'm tired of typing. Stay tuned...