![]() On your MacBook you will have to wait until Dropbox is finished syncing before opening up Keyboard Maestro there. If you open Keyboard Maestro on your desktop Mac and close the Keyboard Maestro Editor the database will get copied to your Dropbox folder and an orange color label will be applied to the file. On your second Mac you setup the exact same rule like in step 6 but you change the color of the applied label to red – the embedded script does not change. Osascript -e 'tell application "Keyboard Maestro Engine" to reload' Osascript -e 'tell application "Finder" to set label index of alias POSIX file "/Users/patte/Dropbox/Sync/Keyboard Maestro ist" to 6' Add the Dropbox “Sync” folder in Hazel (here: ~/Dropbox/Sync) and create this rule:Ĭopy the following snippet into the embedded script: osascript -e 'tell application "Keyboard Maestro" to quit'Ĭp /Users/patte/Dropbox/Sync/Keyboard\ Maestro\ ist /Users/patte/Library/Application\ Support/Keyboard\ Maestro/Keyboard\ Maestro\ ist.On Mac #2 (here: MacBook) paste this snippet (see screen shot point 4b): tell application "Finder" to set label index of alias POSIX file "/Users/patte/Dropbox/Sync/Keyboard Maestro ist" to 2 Copy and paste the snippet into the action (see screen shot point 4a): tell application "Finder" to set label index of alias POSIX file "/Users/patte/Dropbox/Sync/Keyboard Maestro ist" to 1 The next snippet takes care of changing the color label of the macro database file to orange on Mac #1 (here: desktop Mac) if Keyboard Maestro quits. Copy the following snippet in each of those (see screen shot point 3) – in case your folder isn’t called “Sync” remember that spaces are \space in terminal paths: cp -rp ~/Library/Application\ Support/Keyboard\ Maestro/Keyboard\ Maestro\ ist ~/Dropbox/Sync/Keyboard\ Maestro\ istĪdd an Execute an AppleScript Action to the macro (again to both If-conditions). In both If Then Else actions we need an Execute a Shell Script action. ![]() ![]() The next component will copy the Plist into our sync folder. Enter the names of your hard drives here (see screen shot point 2). We, or more precisely the macro, needs those to determine on which Mac it is running at the moment. The next thing on the agenda is to add two If Then Else actions.Open Keyboard Maestro and create a new Macro with an application trigger that will fire as soon as Keyboard Maestro quits (see screen shot point 1).It will work as a temporary storage for the Keyboard Maestro Macros 1. Create a folder called “Sync” in your Dropbox.Dropbox (or Google Drive or a similar service).You can download the macro and Hazel rule on my GitHub. That is why I decided to publish a step-by-step tutorial with screen shots and the necessary code snippets. I had to try out some Hazel rules before I got it right. Still, the whole process can be a bit tricky, c.f. The wiki on the Keyboard Maestro website already has a manual that explains how to pull it off. I sat down today and thought to myself that before continuing to share more Keyboard Maestro tips, it would be useful to the ones who own more than one mac to explain how to sync Keyboard Maestro across multiple machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |