The Blog of Brad
Archive for February, 2009
CODE: Webkit (without timer function)
Feb 24th
As noted in an earlier post I’ve been working on a script which will get the latest Webkit (nightly) build and automatically install it, delete the old file, mount/unmount the dmg, then delete the DMG…. Here is the code (I will release the timer function code soon):
on run
getwebkitURL()
set webkitURL to the result
downTHEwebKIT(webkitURL)
set desktopURL to "~/Downloads/webkit-new.dmg"
set webkitexistingfile to "/Volumes/Macintosh HD/Applications/Webkit.app"
do shell script "rm -f -r /Volumes/Macintosh HD/Applications/Webkit.app"
do shell script "hdiutil attach ~/Downloads/webkit-new.dmg"
--do shell script "ditto /Volumes/WebKit/Webkit.app /Volumes/MacintoshHD/Applications/"
tell application "Finder"
delete "MacintoshHD:Applications:Webkit.app"
move (contents of "WebKit:WebKit.app") to "MacintoshHD:Applications"
end tell
do shell script "hdiutil unmount /Volumes/Webkit"
tell application "Finder"
delete "MacintoshHD:Users:bradleyarsenault:Downloads:webkit-new.dmg"
end tell
end run
on downTHEwebKIT(webkitURL)
set webkitURL to webkitURL
set desktopURL to "~/Downloads/webkit-new.dmg"
set curlURL to ("curl -o " & desktopURL & " " & webkitURL)
do shell script curlURL
end downTHEwebKIT
on getwebkitURL()
set curlURL to "curl http://nightly.webkit.org/"
do shell script curlURL
set webkitPage to the result
set osxOffset to the offset of "<p><strong><a href=" in (webkitPage as string)
set webkitshortPage to (characters (osxOffset + 20) thru (count webkitPage) in webkitPage as string)
set dmgOffset to the offset of ".dmg" in (webkitshortPage as string)
set webkitURL to characters (1) thru (dmgOffset + 3) of webkitshortPage as string
return webkitURL
end getwebkitURL
…And We’re Back
Feb 22nd
My Solution: Multiple Computers –> Single Speaker
Feb 19th
At my desk I have my iMac (with a second monitor), a laptop, and sometimes more computers–and these are my day-to-day computers. And I’ve had this issue hooking the computers to my speakers because they both have media on them I want to hear with via my good speakers and I finally found a solution: I bought a $2.97 Y-adapter for headphones. I have configured it as per the picture below: (Just know that my speakers’ plug is a male connector.)

My cheap configuration for multiple computers to single speakers
Twitter Client: Tweetdeck
Feb 17th
Tweetdeck is just about my favorite twitter client. It offers columns of information which are user customizable including your feed, another person’s feed, @replies, and searches (a must!). However, this is not my favorite client-that spot belongs to Twhirl, but this would easily be my favorite if Tweetdeck supported the TWiT Army and not just twitter. Get it for free from tweetdeck.com.
Mac App: ScreenFlow
Feb 16th
The people from Varasoftware have produced what I would call a premiere screen capture utility for Mac OS X, ScreenFlow. ScreenFlow is incredibly useful in that once your recording is done, you use the built in editor. This editor allows you to add mouse/click effects, show key presses, and zoom/pan, and show a spot light. You can also mix in webcam shots, this is all done before even exporting the video. ScreenFlow costs $99 from Varasoftware.![]()

