This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
collection:Lines_In [2016/02/12 08:24] ccstone |
collection:Lines_In [2016/02/13 03:16] ccstone |
||
---|---|---|---|
Line 5: | Line 5: | ||
(Search for “For Each” using the “Insert Action by Name” menu item or <key>^</key><key>⌘</key><key>'A'</key> in the Keyboard Maestro editor with editing enabled.) | (Search for “For Each” using the “Insert Action by Name” menu item or <key>^</key><key>⌘</key><key>'A'</key> in the Keyboard Maestro editor with editing enabled.) | ||
- | //Lines In collection// allows you to process each line from the specified source. | + | //Lines In collection// allows each line from a specified source to be processed. |
Lines may be read from the System Clipboard, from a Named Clipboard, from a variable, or from a file. | Lines may be read from the System Clipboard, from a Named Clipboard, from a variable, or from a file. | ||
- | It is also possible to include or ignore blank lines. | + | It is also possible to include or exclude blank lines. |
A basic example: | A basic example: | ||
Line 15: | Line 15: | ||
{{ :collection:process_lines_in_a_collection.png?nolink |}} | {{ :collection:process_lines_in_a_collection.png?nolink |}} | ||
- | For a more complex example (and downloadable macro) see this page on the Keyboard Maestro forum: | + | For a more complex example (and downloadable macro) see [Process Lines in Text File](https://forum.keyboardmaestro.com/t/macro-file-process-lines-in-text-file/2936) on the Keyboard Maestro forum. |
- | [Process Lines in Text File](https://forum.keyboardmaestro.com/t/macro-file-process-lines-in-text-file/2936) |