Technology Insights

Replace A Single Line Of Text In Multiple Files On Mac OSX

Earlier I was transferring some configuration files from an application on a Windows 7 computer to an application on a OSX Lion computer. The location of a file referenced in the configuration files had changed so I needed to update about a hundred different INI files with the new location. Doing this on OSX is very easy using perl as long as you get the syntax correct as it can be tricky if there are multiple quotes and or slashes. Below is a quick example of a perl command used to replace a single line of text in multiple files without having to modify each file individually.

Details
Technology Insights

Disable Caps Lock On Macbook Keyboard, Disable Caps Lock On OSX

One key that always gets in the way for me on any keyboard I use is the caps lock key. On Windows 7 I use a third party application to disable the caps lock key as noted in this article. On Mac OSX the functionality to disable the caps lock key is built in so it doesn’t require any third party software. Use the information below to disable the caps lock key on your Macbook laptop or other computers running OSX. I believe the functionality to disable the caps lock key was added in OSX 10.4 and I can confirm that it is still available in OSX Lion or OSX 10.7.1.

Details
Technology Insights

Change The Default File Association For Text Files On MAC OSX

I recently got a Macbook Pro which is running OSX 10.6 and is the first MAC I have used as my primary computer. Setting it up has been like setting up the first computer I ever setup since I am used to setting up computers running Windows or Linux. Anyhow it has been a great learning experience so look out for a lot more articles related to OSX and Macbooks in the near future. Anyhow the below steps will assist you changing the default application that opens text files from TextEdit or TextEdit.app to TextMate or TextMate.app.

Details
Technology Insights

TextMate Tabs, How To Use Tabs In TextMate On Mac OSX Lion

On Windows I use Notepad++ religiously however since Notepad++ is not available for OSX I am trying to become familiar with TextMate. So far TextMate is pretty solid but there are a couple things that make it less convenient to use. One of the primary items I noticed almost immediately was the fact that TextMate does not support tabs in the same way that Notepad++ does. The good news is there is a work around where you can use tabs in a very similar manner. Use the information below to work with tabs in TextMate which if you are like me you require easy access to numerous text documents at the click of a button.

Details
Technology Insights

Automatically Delete Imported Images From iPhone To A Mac Running OSX using Image Capture’s AutoImporter

I have a specific way I like to configure how my iPhone interacts with the computer I am using such as when I take pictures on my iPhone I like for those pictures to be imported automatically to the computer when the iPhone is plugged in via USB and after the images are imported I want them to be deleted from the iPhone until I organize them to be synced back to the iPhone at a later time. I also don’t want an application to open and stay open on the computer as I prefer that the import process happens in the background without having to close the application used to import the images. This was a bit of a pain to configure on my new Macbook as the application used to accomplish my goal is a bit hidden and doesn’t like to stay running for any amount of time. Use the information below to sync images form your iPhone to your Mac computer running OSX and for the images to be purged from the iPhone once they have been imported.

Details