Keyboard Maestro on two Macs with different file paths


#1

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?


#2

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.


#3

Brilliant. Thank you so much! Andrew


#4

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.)


#5

Double-brilliant. Thanks, Andrew