{
  "$type": "site.standard.document",
  "description": "It's been bothering me for quite a while ever since I used OmniFocus on my iPhone more that I can't easily activate Internet Sharing to sychronise",
  "path": "/automating-internet-sharing-on-os-x-snow-leopard/",
  "publishedAt": "2009-12-06T11:30:00.000Z",
  "site": "at://did:plc:bryys25pc2fnagnyxqgsglhd/site.standard.publication/3mn26bjkkmh23",
  "tags": [
    "macOS",
    "AppleScript",
    "Scripts"
  ],
  "textContent": "It's been bothering me for quite a while ever since I used OmniFocus on my iPhone more that I can't easily activate Internet Sharing to sychronise OmniFocus on my Mac and iPhone. Here's what I always had to do:\n\n 1. Move the mouse (or use Spotlight/QuickSilver) to bring up the System Preferences.\n 2. Press Sharing.\n 3. Press Internet Sharing.\n 4. Check Internet Sharing.\n 5. Press Turn AirPort On.\n 6. Click Start.\n\nThat's at least 6 steps too many, and the friction makes me reluctant to synchronise my apps.[1]\n\nI researched a bit and found a piece of AppleScript that can be used to enable Internet Sharing. I updated it to work for Snow Leopard, created a OS X Service for it using Automator. I also modified the script so that running it again turns Internet Sharing and AirPort off.\n\n2 clicks. Tada!\n\nhttp://gist.github.com/250267\n\n[1] I don't want to keep Internet Sharing on all the time because, there's a OS X bug that makes the CPU hit 100% and I'll have to disconnect by pulling out my HSDPA modem, put it back, wait a while and then connect again.",
  "title": "Automating Internet Sharing on OS X Snow Leopard"
}