Keyboard Maestro on two Macs with different file paths

I have just been given an old iMac, having used a MacBook Pro exclusively for years. The path to my Dropbox is different on each machine because the hard drive name and the user folder name is different on each machine.

What’s the best way to rewrite my Keyboard Maestro macros so that they can reference the same files in Dropbox on both machines?

You can reference the home directory using ~

So instead of:

/Volumes/MacHD/Users/youruser/Dropbox/myfolder

You would write:

~/Dropbox/myfolder

That should work on both machines.

6 Likes

Brilliant. Thank you so much! Andrew

Oh, and even better: that’s not a Keyboard Maestro-specific feature either. It’s a UNIX-thing, so it works macOS-wide. :smile:
(And on Linux, if you are administering a server or something.)

1 Like

Double-brilliant. Thanks, Andrew