Monday, February 1, 2010

Playing with Xcode and AppleScript

In case you noticed a post about PDFopener and were curious, I've been playing with Xcode, the Mac OS X development environment. And AppleScript. I guess either could be useful if I ever build a robot with a Mac brain. I wonder how hard it would be to use Xcode to develop for ATmega MCUs. At any rate, the reason for the PDFopener project was that I got sick of problems downloading USPS shipping labels so I dove in and fixed it.

set text item delimiters to ".LabelGenerationServlet"
set stripOther to first text item of fileName
if stripOther is not equal to fileName then

AppleScript is somewhat bizarre to me, an outgrowth of HyperCard's HyperTalk language (anyone remember that?), sort of a pseudo-English programming language. It's a bit mind-boggling for a dude used to C and Perl. I didn't spend any time really learning the language fundamentals but was able to slog my way to making a functional program, chipping away at it little by little with a lot of searching on macscripter.net. Trying to do too much at once and it would all fall apart. Like building a house of cards. That's not unlike my robotic coding experiences thus far, actually.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.