Archive for February, 2008

Retrieve a Remote File - by Email

Saturday, February 16th, 2008

zipIf you’re using an iPhone or a touch or some other mobile device this could be a very convenient way to retrieve a file from home and view it on your device.

Here’s the scenario: You’re on the bus, you realize your French homework is sitting at home on your Mac. Send yourself a text message with the path to the file. By the time you get to school and log on to a computer your file has been emailed. Problem solved.

Configure Murphy’s script to run every so often using something like launchd. Then send yourself an email. Include the path to the file you want sent in the body, like this:

/Users/murphy/Documents/PenskeFile.doc.

Mail will create a new message, attach the file, and send it to the address in the script. You can configure the script to run when a certain word is in the email subject, like FileGrab. This is an ideal use for rules in Mail.app. But rules don’t seem to work in Mail as of 10.5.1. Murphy hasn’t tried 10.5.2 yet.

Update:  If you leave the file name out the folder’s contents will be zipped and sent.

Instead of using rules, this script is written to run periodically. Maybe every ten minutes or so. If it sees an email with the keyword in the subject it checks for the file and sends it. If the file doesn’t exist the script sends an email that says so.

zip

Security hole? Well, Murphy doesn’t think so. The file will only be mailed to the address you specify in the script, it’s not a reply. (you could alter the script to have it reply, but that doesn’t seem like a good idea.) You can use secure email to send the request and the file. That’s secure.

Getting back to the mobile devices: Your unhacked iPhone and touch don’t let you download files. So you can’t SSH back to the house and grab the file. You could set up your Mac as a web server, but I wouldn’t want to do that.

Using this script the file is emailed to you, so you can view it in Mobile Mail or Gmail depending on what kind of file it is. You can easily view the file later, when you’re offline. The catch? You need to know the path to the file you’re retrieving. Don’t know the path? Here’s some help.

Windows Users: Have a look here.

Note: Script requires use of Mail.app. To schedule this script to run on a schedule you might want to try something like lingon for editing your launchd configuration.

Other Murphy scripts for working with Mail:

Sleep Your Mac by Email

Select a Playlist by Email

Get a List of Your Files by Email

Retrieve Mail.app Messages by Text Message (this post shows how to match emails with Applescript using multiple criteria)


Download Script

Access Google Calendar from Terminal

Thursday, February 14th, 2008

gcalcliMurphy has been on the lookout for an easy way to use the Quick Add feature of Google Calendar, even when his calendar isn’t open in Safari or Firefox. There doesn’t seem to be a widget, but there is a Firefox plugin. Last time Murphy tried the plug-in there were some problems.

If you’re partial to the Terminal you might like gcalcli. Murphy uses gcalcli to make Quick Add entries from the tiny Terminal window he’s always got open. Simple, fast, convenient. He’s also using gcalcli with GeekTool to display calendar events right on the desktop, like the image you see above. (more…)

Watch Now

Webkit

Monday, February 11th, 2008

zip

Quick post in case you haven’t seen this:

I’ll be the first to admit I knew nothing of Webkit until I saw it mentioned on Digg. I always forget to look at Digg. Murphy does too.

Then I read this glowing review by Seth Weintraub over at ComputerWorld. What is Webkit? It’s a developmental version of Safari you can get your hands on right now. I’ll let the post speak for itself, but in summary Seth thinks Webkit is seriously fast. More importantly, the often-ornery Digg comment crowd seems to agree.

When you start Webkit up you’ll see all your links and bookmarks. Basically, jumping back and forth between Webkit and Safari should be more or less transparent. I only played with it for a few minutes. Gmail wasn’t doing so well with auto-fill on the address line. Let us know how you do in the comments.

Here’s the link to Webkit’s nightly builds.

NOTE: Murphy could use a little help on an Applescript with regard to captured text, paths, and spaces in file names. If you have the required expertise please drop an email to murphy at murphymac dot com.  Thanks.

Heads Up on Movie Rentals, DRM Restrictions, and Jailbreak

Wednesday, February 6th, 2008

movie rentals drmIf you’ve jailbreaked your way to 1.1.3 it looks like movie rentals won’t play on your iPhone or iPod touch. That’s based on first hand experience and this thread over at Hackint0sh.

Other things you might want to know about rentals:

  1. When you transfer your movie rental from your Mac to your device you need to be able to connect to the iTunes store. This could burn someone planning on watching on their Macbook in the airport and their device on the plane.
  2. You need to be connected to the Internet when you first play the movie, to stamp the 24 hour start time.
  3. Front Row can’t play your rented movie.
  4. The rental can only be stored on one device at a time.

It’s been widely reported that a rental will only play back on one Mac - the one that downloaded it. Check the update on this review at Ars Technica. According to David Chartier, you can transfer a rental movie from one Mac to another, using an iPod or iPhone to make the transfer. Copying the movie file from one Mac directly to another isn’t supported. (more…)

Wake Your Mac Across the Internet - Port Forwarding Explained

Wednesday, February 6th, 2008

If you’re looking for a simple way to wake your Mac up across the Internets try out this website. You’ll need to know two things: the IP address your isp has assigned you and the MAC address of your Mac. What’s the MAC address of your Mac? A MAC address is a unique identifier assigned to your ethernet card by the manufacturer. You’ll find it in System Preferences. Click on Network, click on Advanced, click on Ethernet - like you see below.

wake up

Then click on on the Ethernet tab at the top right. The number listed as the Ethernet ID is your MAC address.

wake up

The MAC address and the IP address assigned by your ISP are the only two pieces of information you need to wake your Mac using this site: dslreports.com/wakeup

But there’s a catch. Your router needs to let traffic through on UDP port 9. Which brings us to… (more…)