Tag Archives: Applescript

Mac OS: Split-Tunnel VPN

So you’ve already setup a VPN connection to your home or office, but then you realize that you either can’t connect to your VPN network, or you can’t connect to the internet. If you want to have access to both, you’ll need to setup a split-tunnel. On a Mac this is a bit more frustrating than on a Windows machine, so I’ve used some script-foo to make it easier.

Continue reading Mac OS: Split-Tunnel VPN

Easily Compressing Multiple Folders

You have a directory full of important folders, and you want each one compressed separately. Doing this by hand would take waaay to much time. Of course, we can do this in terminal, and with one line of code (sweet!) so it’s easy to use.

For this we use the “Find” command built in into our computer. From there we’ll have two choices, to use compress it to a zip file for a dmg file.

Continue reading Easily Compressing Multiple Folders

Fixing Adobe Applescript Errors

Fixing Adobe Applescript Errors

If you are still using an Adobe Photoshop CS3 or CS4, you might have run into some funky Applescript errors. These errors sometimes pop-up as, “Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax”, or “Can’t make 720 into type traditional points”, or something similar.

The fix for this is easy, and is provided straight from Adobe. The error comes from a conflict between the old 32-bit component and the newer 64-bit scripting environment of Mac OS X 10.6+ (Snow Leapard, Lion, and Mountain Lion).

There are three ways to fix the issue, but simplest is to download the updated file and install it into the “/Library/ScriptingAdditions” folder of your Mac, then restart your computer.

FileMaker & Applescript: Force a remote user commit

When editing a live FileMaker database, we’ll sometimes need to force clients to commit their records before the update can happen. If our users are on remote machines, this can be a real problem. The general fallback approach is to send a disconnect request from the FileMaker Server. This will close the database the client is using, so it isn’t the most friendly method.

Continue reading FileMaker & Applescript: Force a remote user commit