On adding Applescript support to your app. (HT: Brent Simmons) I wish, wish, wish more apps added Applescript support. It makes things so much easier. If you’re doing small business software you absolutely should do this. Not because your clients will write Applescript but because they’ll get people to do it for them for automation. Especially to do repetitive actions with Keyboard Maestro. (I wish Daylite has better scriptability)
Nice list of what’s changing in Swift. (HT: Michael Tsai) I don’t think most changes will affect people’s existing code, but even so I’d be cautious about using it until things settle down a mite. And of course there are lots of improvements needed in Swift — especially in strings. The biggest flaw I see is the ambiguity about float sizes. The biggest change in beta 3 that will affect existing code is the change of the token for half-closed range operator. However that was so bad I’m still glad they changed it.
Could have sworn I’d linked to this before. But I guess not. It’s well worth reading. Reactive Cocoa in Swift. The biggest issue right now is that Swift can’t see macros in ObjC/C. Given some of the problems that introduces I’ll hold off until things get more mature. The linked article goes through workarounds but it’d be nice to have a Swift interface done for you. There’s at least one being worked on. An other post discussing Reactive Cocoa in Swift is here. For those just curious about Reactive programming this is a good defense.
Good discussion of strings in Swift along with upcoming changes to Character type. As he says, Unicode is hard. Getting something that works with your usual ASCII stuff is no guarantee it’ll work right with Unicode. (As discussions here have shown)
If you use Finder tags a lot like me you have to worry about losing them. Brett Terpstra has a great writeup of playing defense with certain Unix tools that lose tags. In my case I use rsync for a lot of backups so the -E argument is essential.
Hashbanging Swift. Using Swift at the command line. I had enough issues trying to replace Python with Swift that I went back to Python.
- 55I’d mentioned in passing in one of my Swift posts about using it as a scripting language. Someone on Twitter asked me if I’d convert from using Python to Swift for my scripts. It’s an excellent question that I really can’t answer fully at this stage. The language is still very beta. Most of the…
Launchbar action for browsing your Keyboard Maestro macros. This seems really useful. I’ve not tried it out yet.
The definitive introduction to ReactiveCocoa. There’s been a few posts on combining ReactiveCocoa with Swift but I’d like to see a general guide for doing that.