Bookmark with Dynamic Components via Keyboard Maestro (with Toggl Reports example)

Here’s an example of how you can use Keyboard Maestro to create bookmarks that use dynamic components. For this example I wanted to create a bookmark that would give me the correct URL to get a report of the last 365 days of Toggl time entries. Toggl lets you pass a start date and an end date in the URL. Using KM it’s easy to replace those values with calculated date values.

Click the screenshot at the right to see the macro, which I’ve also provided here: Toggl entries for the last 365 days.kmmacros.


Here are the steps to get the bookmark working:

Step 1: Import this Macro

Step 2: Edit the Toggl “workspace_id” in the URL (example is 1214302)

Step 3: Get the unique ID by highlighting this macro and choosing Edit » Copy as » Copy UUID.

Step 4: Create a bookmark in your browser that points to the unique ID of this macro like this:
kmtrigger://macro=A72CA77E-DBA1-4DB4-8A97-F8F37CC9C9A6


When you click the bookmark it is instantaneous. You cannot open the bookmark in a new tab (cmd-click on a Mac) or window, so open a fresh tab if you don’t want to lose whatever page you’re on when you click the bookmark.

Also, here’s what the final URL looks like for this particular Toggl example:

https://toggl.com/app/reports/summary/1214302/from/%Variable%lastyear%-%Variable%monthandday%/to/%Variable%thisyear%-%Variable%monthandday%/
Tagged with: , , , ,
Posted in Tech Tips

Leave a Reply

Your email address will not be published. Required fields are marked *

*