Archive for October, 2003
With the release of Panther (Mac OS 10.3) Apple has built in a new technology, called URL Protocol Support, that allows for a clickable link in a browser to launch Script Editor and populate it with a script. This makes it easier to share AppleScripts online.
On my handy little script section of Objective Labs I’ve just implemented support for this new feature.
Apple has an AppleScript that is sort of cumbersome in that you have to pre-convert your scripts into clickable links to put them online. If you’re a big geek like me, and you store your scripts in a database, it’s easy to use php to convert a script to a clickable url protocol link on the fly.
Just use this php code:
$yourScript = rawurlencode($the_variable_holding_your_script);
and place it in the scirpt portion of the link like this:
<a href=”applescript://com.apple.scripteditor?action=new&script=<?PHP echo $yourScript; ?>>The Link</a>
And you will end up with something like this:
Panther users click here to open this in script editor.
So, I’ve spun off a moblog I currently call Mofotos. I take shots and post to the site with my new camera phone. We’ll see what I end up doing with the domain.
Update:I’ve added a MOFOTOS section to the sidebar of this site. Update2: That was too much work. I pulled all the photos to this site, and now there just a category on this site.
I was in the Computer room the other day when all I wanted to do is take down one simple little computer and remove it from the group. I went to the Special menu and selected Shutdown as I’ve done thousands of times before. I don’t remember selecting a super-shutdown-all-these-mothers button, but that’s what happened. Do you know what 17 servers shutting down simultaneously sounds like? Exactly, “OH SHIT!”
Apparently redundant power with a UPS battery backup and a diesel backup generator are nothing when you put 80+ amps on a 20 amp circuit breaker it’s going to trip when there is a power spike of any kind, like shutting down a computer (go figure!).
I had to scramble to get as many up as possible while migrating some to another location. I called in the network boys and a PC supportster and got them to pull new cat-5 and move equipment while I’m typing logins as fast as I can.
The kicker was, when I was planning on adding a new g5 to the group earlier that morning, I wondered out loud:
Me:“Do you think we’ve got to much running off this circuit?”
Group:“Awww hell no, this baby is wired for anything!” was the collective answer.
Well I showed them.
The house that css built.
.jpg)
.jpg)
.jpg)
.jpg)