Tag Archives: Tricks

Trick Gmail into checking POP3 more often

I finally got sick of gmail only checking my POP3 account every hour or so, so I resolved to fix it. If you google this, there are numerous solutions, I thought I would share my experience. I have access to a web/mail server so I used that.

(1) Log on to the server. (2) Create the script ~/.mailthis

#!/bin/bash
echo "x123456789x" | mail mypop3account@abc.com

(3) Then edit your crontab with crontab -e and put the following in there

* * * * * /path/to/.mailthis

You must put the absolute path here. This will send a mail to your pop3 account every minute.

(4) Finally create a filter in Gmail that says any message with the word x123456789x in it, delete it. That way you don’t spam yourself.

Thats it, now gmail will check your mail every minute since you are getting messages every minute.

Applescript application interface command line mplayer

Many high quality (e.g. 1080p) movies take significant system resources to play. A GUI wrapper application only adds an extra middle man. The command line version of mplayer is very fast and has served me well many times. I am a huge fan of the command line but sometimes I just want to double click or drag and drop.

You first need to install macports and then install mplayer by typing

$ sudo port install mplayer

Here Is what I threw together:

on open movies

    — Play each file in the list of files to open.
    repeat with movie in movies

        — Convert alias to conventional path.
        set moviepath to quoted form of ¬
            (POSIX path of (movie as Unicode text))

        — play the file with mplayer.
        set command to "/opt/local/bin/mplayer " & moviepath

        do shell script command

    end repeat

end open

Open the script in Script Editor.app and save it as an Application. Unfortunately you can’t double click anything and open it with this but you can drag and drop as well as select open with.

Well it is not all that impressive but for large movie file you can’t beat mplayer on the command line.