Create fluid apps with shell script

With netflix now available in Sweden I made an fluid app for netflix to have in my dock.

I found the script over at lifehacker.

It is really useful because you get to specify what browser you want the fluid app to launch.

Patching GNU Screen with vertical split support in OS X

I found this great article on how to get support for vertical split in GNU Screen when running Mac OS X.


$ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/screen co screen
$ curl http://old.evanmeagher.net/files/gnu-screen-vertsplit.patch > gnu-screen-vertsplit.patch
$ cd screen/src
$ patch < ../../gnu-screen-vertsplit.patch
$ ./configure --enable-locale --enable-telnet --enable-colors256 --enable-rxct_osc
$ make
$ sudo make install

Sources:

Mac: Run Script before or after Wake from Sleep

I have a few scripts that I want want my macbook to run just before I put it to sleep (by simply closing the lid).

To achive this I did the following:

  1. I installed sleepwatcher via brew
    brew install sleepwatcher
  2. Then I copied the launchd files to the ~/Library/LauchAgents directory
    cp /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist ~/Library/LaunchAgents
  3. I restarted my Macbook and created the ~/.sleep script which contains the commands that will run before sleep.. (You could also create a ~/.wakeup script that runs when the mac wakes up.)

Source: EchoDitto Labs, Stack Overflow

Dockless hides apps from the dock

I’ve been using a small app called dockless. Dockless hides the icon from the dock…that’s all. But it does it great and it’s free.

Dockless is a little app that does what some people have always wanted – remove certain applications from their dock. Dock real estate can become precious, and some apps don’t make a whole lot of sense sitting there. That’s where Dockless comes in. With Dockless, any OS X application can be made to show in the Dock or not.

Download dockless here

DavMail is a Exchange to IMAP CalDav proxy

Snow Leopard and Mac OS X Lion both have built in support for Exchange 2007 and 2010.

But what do you do if your company is running Exchange 2003 or if you want to run IMAP (And your company only permits a “Outlook Anyware”-type setup, IMAP over HTTPS).

Well you can either stick to running the Outlook Web Access, which in Exchange 2010 is kind of nice, or you can install a program called DavMail. DavMail acts as a proxy between your computer and the corporate Exchange server.

Some really nice features in DavMail:

  • It’s cross-platform. You can run it on your Mac, Windows och Linux machine.
  • You can run it on a server or locally on your client-computer.

How to install Huawei e173 on Mac OS Lion

I live in Sweden and bought a Huawei e173 from the Swedish operator Telia. The only problem is that the 3G modem came with drivers and software for Snow Leopard (Mac OS X 10.6).

To start off, I installed the modem on a windows machine and disabled the PIN-code on the simcard. I personally get quite annoyed when I have to enter a PIN-code everyone I connect a 3G modem..

Next, I downloaded the drivers on my own from mobinil.com, installed them and configured the modem with the following settings:

Dial: *99#

Vendor:Generic

Model: GPRS (GSM/3G)

APN: online.telia.se

Note that the APN is different on every carrier. Just Google it…

How to force TotalTerminal to always display on top of the dock

I have been using TotalTerminal for a while now. But since the latest 1.1.1 the visor is displayed under the dock. (I have my dock on the left side of my screen) This is both annoying and renders the TotalTerminal useless.

This is all due to a bug fix in 1.1.1. There is a way to fix this issue.

Open a new terminal.app window and enter the following line:

defaults write com.apple.Terminal TotalTerminalVisorWindowOnHighLevel -bool YES 

Restart Terminal.app with TotalTerminal.

The TotalTerminal visor is now shown on top of the dock.

Source: GetSatisfaction

Linked: How to Ensure Ethernet Connects Before AirPort on Your Mac

Some time ago I found this great blog-post about how to prioritize the Ethernet connection over Wi-Fi. In my case this is when I’m at home.

Sometimes, your Mac will connect to a janky Wi-Fi network. The connection is slow or you’re on the other side of a lead wall and you’re getting a really poor signal. When you finally find an Ethernet jack to plug into, you may notice you’re still connected to the Wi-Fi network that was giving you problems. This is because your Network Service Order list is out of its proper order to allow the Ethernet to take over when plugged in. Don’t fret, we’ll show you how to reset the Service Order list on your Mac to ensure that Ethernet takes priority over AirPort.

Read the full post at maclife.com

SMARTReporter

A couple of months ago I found this litte app that checks all the disks on my Mac for any errors.

SMARTReporter is a free application for Mac OS X that can warn you of some hard disk drive failures before they actually happen! It does so by periodically polling the S.M.A.R.T. status of your hard disk drive. S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology) is a technology built into most modern hard disk drives that acts as an “early warning system” for pending hard disk drive problems. SMARTReporter can notify you of impending hard disk drive failures by sending e-mails, displaying a warning dialog or executing an application. The current status of your hard disk drives is always displayed through the customizable menu item.
Because SMARTReporter relies on the S.M.A.R.T. implementation of Mac OS X, it only supports ATA, SATA or eSATA hard disk drives, if you want S.M.A.R.T. support for your SCSI or FireWire hard disk drive, send feedback to Apple.
Please note that a S.M.A.R.T. alert doesn’t mean that your HDD will completely fail for sure, nor can S.M.A.R.T. catch all possible HDD errors – it’s just a very valuable indicator. Follow this link for more information about S.M.A.R.T. technology.

corecode->SMARTReporter.

Delete locked files in Mac OS X with ‘What’s Keeping Me?’


For some time I have been using a small app called What’s Keeping Me to find out what process is locking a file. And it’s free!

About What’s Keeping Me?

Have you ever have the problem where you can’t empty the Trash or eject a disk because something is preventing you? Usually the reason is because some application has a file open, and thus you can’t get rid of the disk or trash the file. That’s why we made What’s Keeping Me! What’s Keeping Me will identify the application that is holding the item open. You can then use What’s Keeping Me to quit the problem application (or kill it if needed) so you can perform your task. What’s Keeping Me includes an Automator workflow so you can perform searches directly from the Finder too!

Download

Mac Tweak: Lose Name When Copying Email Address

I found this the other day! It’s just awesome.

Great post at maclife.com!

If you frequently copy email addresses out of Mail using the Control-click contextual menu. By default, Mail.app includes the user’s real name as well as their email address — that is, until you take a visit to Applications > Utilities > Terminal and type in the following with Mail.app closed: defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool NO — goodbye, real name, hello email address only!

Source: maclife.com | 6 Secrets of the Mac OS X Mail App

Keep your drives clean with BlueHarvest 4

A while ago I came across a small app that does one thing great; It keeps my USB- and network-drives clean of the hidden files that Mac OS X adds in the background. Spotlight files etc. This is a killer feature when you work in a mixed Windows/Mac environment.

Simply put, it saves me a lot of moaning from colleagues after I borrow their thumb-drives!

The easiest way to keep your disks and file servers clean of Mac “dust”. BlueHarvest automatically removes DS_Store and ._ AppleDouble files (resource forks) from your USB keys, SD cards and file servers, etc. BlueHarvest removes these items as they’re created so you’ll always be “dust” free.

Link: http://www.zeroonetwenty.com/blueharvest4/

Linked: How To Rebuild LaunchServices to Remove Duplicates from “Open With” Menu

Have you ever used the right-click “Open With” feature in Finder when opening a specific type of file?  While this feature is usually pretty handy, if you install and remove applications on a regular basis there may still be traces of those applications that have been long-gone from your Mac. In this how-to, we’ll show how you can rebuild this list so it remains up-to-date and only shows what you currently have on your hard drive.

Basically you open a terminal and run the following command…And wait.

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Source