{"id":1166,"date":"2015-09-06T06:26:17","date_gmt":"2015-09-06T11:26:17","guid":{"rendered":"http:\/\/agileadam.com\/?p=1166"},"modified":"2015-09-06T07:28:12","modified_gmt":"2015-09-06T11:28:12","slug":"keyboard-maestro-looping-through-each-line-of-the-clipboard","status":"publish","type":"post","link":"https:\/\/agileadam.com\/2015\/09\/keyboard-maestro-looping-through-each-line-of-the-clipboard\/","title":{"rendered":"Keyboard Maestro – Looping Through Each Line of the Clipboard"},"content":{"rendered":"

This graphic illustrates how you can loop through each line of the clipboard and use the line’s value for some purpose. It also demonstrates how to handle the first line differently than the others.<\/p>\n

This is zero-based. The second time through the loop will say “Line number 1” if you use the exact setup below. If you need your\u00a0i<\/span>\u00a0\u00a0variable to be “1” on the first loop, just move the\u00a0i + 1<\/span>\u00a0calculation above the\u00a0If All Conditions Met Execute Actions<\/em> and change the\u00a0i is 0<\/span>\u00a0<\/em> to i is 1<\/span>. Alternatively you could start i as 1 and change the i is 0<\/span>\u00a0<\/em> to i is 1<\/span>.<\/p>\n

\"Screenshot_2015-09-06_07-17-17\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

This graphic illustrates how you can loop through each line of the clipboard and use the line’s value for some purpose. It also demonstrates how to handle the first line differently than the others. This is zero-based. The second time through the loop will say “Line number 1” if you use the exact setup below. If you need your\u00a0i\u00a0\u00a0variable to be “1” on the first loop, just move the\u00a0i + 1\u00a0calculation above the\u00a0If All Conditions Met Execute Actions and change the\u00a0i is 0\u00a0 to i is 1. Alternatively you could start i as 1 and change the i is 0\u00a0 to i is 1.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[76],"tags":[173,103],"_links":{"self":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts\/1166"}],"collection":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/comments?post=1166"}],"version-history":[{"count":3,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts\/1166\/revisions"}],"predecessor-version":[{"id":1170,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/posts\/1166\/revisions\/1170"}],"wp:attachment":[{"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/media?parent=1166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/categories?post=1166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agileadam.com\/wp-json\/wp\/v2\/tags?post=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}