Category Archives: Scripts

Scripts Part 8: Toggle Hidden Files

Yes, you read that right. It’s time for another entry in the Script Sharing category. It’s been a damn long time since I’ve posted anything here, but I’ve actually been doing a lot of scripting, and I just realized that I had some potentially useful stuff lying around. So hopefully I’ll be able to post [...]

Scripts Part 7: Contextual Menus with Automator

Recently, for some odd reason, there has been a spate of solutions to the problem of creating new files in the Finder via a contextual menu. One involves a contextual menu plugin called NuFile. Another involves installing Big Cats Scripts and linking it to an Applescript. But honestly — and I’m surprised someone else didn’t [...]

Backing Up with RsyncX

In an earlier post I talked generally about my backup procedure for large amounts of data. In the post I discussed using RsyncX to back up staff Work drives over a network, as well as my own personal Work drive data, to a spare hard drive. Today I’d like to get a bit more specific. [...]

Scripts Part 6: Archiver

A hint on MacOSXHints yesterday discussed using tar to create backups in Mac OS X. The poster was frustrated with the OS X-bundled version of the zip command, and confused by the way the Finder creates .zip files. Indeed, the Finder does not use the zip command to create its .zip files, and indeed it [...]

Using SSH to Send Variables in Scripts

In July I posted an article about sending commands remotely via ssh. This has been immensely useful, but one thing I really wanted to use it for did not work. Sending an ssh command that contained a variable, via a script for instance, would always fail for me, because, of course, the remote machine didn’t [...]

Send Remote Commands Via SSH

This is one of those “I’m posting it so I remember, ’cause I keep forgetting” posts. It’s also astoundingly cool, though, if you didn’t know about it. Which I didn’t until fairly recently. If you’ve ever wanted to send a command to a remote computer without ever actually logging in to that computer, ssh is [...]

Scripting Filenames with Spaces: A for Replacement

Okay, this will be a quickie. Really. I use for loops in scripts all the time, but for chokes on files with spaces in the name. After years of finding ways to avoid this problem any way I could, I’ve finally found what I believe to be the solution. The for command treats any whitespace [...]

Scripts Part 5: New Spotlight Disabler

Someone recently commented that my script to disable Spotlight was no longer functioning in v. 10.4.5 of Tiger. When I went to check on the functionality of the old script, I realized I’d been working on a new and improved version awhile back, and that I’d intended to post it, but completely forgot to. So [...]

Scripts Part 4: Cloning — What’s the Big Deal?

Boy, there sure are a lot of cloning apps out there. The mother of them all, of course, is Mike Bombich’s Carbon Copy Cloner, but it’s slowly losing mindshare to more aggressively marketed apps like the affable SuperDuper!. There are others, but I don’t feel like scouring the web for them, nor do I feel [...]

Delayed ACK Startup Item for Intel Macs

MacFixit just reported about troubles the new Intel-based Macs are having with network speeds, particularly AFP connections to, of all things, other Macs. The solution, they report, is to set the delayed_ack property to 0. In order for this change to survive a reboot, however, they recommend editing /etc/rc. The problem with this is that, [...]