Copy Mac Clipboard to iPad/iPhone (Using Automator + Dropbox)

Filed under Automator + iPad on Friday, 18 June, 2010 12:51 am

I came  up with a super useful way to copy the clipboard from OS X straight to your iPad or iPhone!
Everything you need is free. Only pre-reqs are Dropbox and Automator. I've only tried this on Snow Leopard and I'm not sure if it works on Leopard. I use this to get URLs onto the iPad, notes and it even works pretty well if you need to copy a Wifi password without syncing to iTunes. Best thing about it is that the copy process is near instantaneous!

It's pretty simple and works like this:

  1. Select text
  2. Right click -> Copy to iPad (Dropbox)

See it in action:

Wooo! Now first, make sure you have Dropbox installed on both your Mac and iPad (Free)
Then we need to make a simple to make Automator service:

  1. Open Automator.
  2. Choose "Service".
  3. Search for "Run Shell Script".
  4. You want the /bin/bash shell (should be default option).
  5. Type in the following:
  6. cat > ~/Dropbox/Mac-Clipboard.txt

  7. Save the Service.
  8. Make sure it looks like this:
  9. You're done!

Now all you ever need to do is right click on some text, pretty much anywhere, choose it from the menu we created. Since the clipboard's contents are normally very small (say less than 500kb) your upload to Dropbox should be pretty much instantaneous! When you open DropBox on your iPad, the copied text will be waiting. 8) 8) 8)

After some more thinking about making this better I thought it would be good to do something like this for images using an RTF file format and a Python script. I abandoned the idea since Python doesn't have an RTF writer built-in so you would have to download it separately, make it, blah... blah... it was just getting too complicated. It's best to keep it simple and if you really want images, just copy them to  your Dropbox :wink:

If you liked this tip or think you can improve it in someway, be sure to leave a comment!

Copying Files with SCP

Filed under CLI + Linux + Mac OS X + Unix on Tuesday, 25 May, 2010 10:39 pm

When you want to copy files from one server to another, or remote to local copying.
SCP is your tool.

A typical scenario is I'm SSH'ed into a remote server and I want to copy a file on my Mac, to the Remote machine I'm sshed into.

You can copy the "remote" file with this command:

scp -r brock@192.168.1.6:/remoteDirectory /localDirectory

Rsync for Local Directory Mirroring

Filed under CLI + Linux + Mac OS X + Unix on Tuesday, 25 May, 2010 5:56 am

Just a quick post on using the amazing rsync.

Copy a local directory's contents /Volumes/src/ note the trailing slash, then place those contains inside /Volumes/des.

rsync -Pva /Volumes/src/ /Volumes/des

Key rsync Options
Option Description
-P shows progress during the transfer
-v Turn on verbose mode
-a This turns on archive mode. Bascially this causes rsync to recurse the directory copying all the files and directories and perserving things like case, permissions, and ownership on the target. (Note: Ownership may not be preserved if you are not logged in as the root user.)
-z Turns on compression during the transfer. This option compresses the data as it is copied over the network.

No Interfaces Available in Wireshark on Mac OSX

Filed under Apple + Mac OS X + Networking on Wednesday, 12 May, 2010 7:04 pm

Wireshark in Quicksilver

Easy fix. You need to give Wireshark permission to access the network devices.

sudo chown {your account name} /dev/bpf*

Configuring a New Mac OS X Installation

Filed under Apple + Mac OS X on Friday, 4 December, 2009 11:53 am

The aim is to document commonly useful configurations and settings that you should consider applying when you get a new Mac or perform a reinstall.
Feel free to leave a comment if you have any suggestions you think should be added.

Disable .DS_Store file creation for network connections.

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

How to Restart the Mac OS X Menubar

Filed under Apple + Mac OS X on Friday, 13 July, 2007 9:10 pm

Picture 2.png

Just a quick tip. If your menubar crashes in OS X it can be restarted by typing a simple command in the Terminal.

killall SystemUIServer

You can also restart the Dock by typing:

killall Dock

or the Finder by typing:

killall Finder

All these commands are case-sensitive.

I also wrote a menubar application i call "iRestart" which performs all these functions and more. It is available at my portfolio site here.

Change File Permissions using Terminal in Mac OS X

Filed under Mac OS X on Wednesday, 4 July, 2007 9:56 pm

Changing file permissions on the Mac is something you need to know how to do if you want to create your own non-home directory only shares on the Mac. Leopard implements folder sharing similarly to the way SharePoints does. I find myself needing to change permissions regularly because certain programs like to change file permissions on their own. The Terminal is generally better for changing permissions because it is much faster and also because you have more control. Sometimes you may need to do this is the file permissions get messed up in Leopard's File Sharing under System Preferences.

Here's how it works:

(Click here for the full article...)

Next Page »