This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
collection:Lines_In [2015/07/14 00:39] peternlewis created |
collection:Lines_In [2016/02/13 03:16] ccstone |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The //Lines In collection// contains the lines in the specified source. | + | ==== Lines In collection ==== |
- | You can read the lines from the System Clipboard, from a Named Clipboard, from a variable, or from a file. | + | //Lines In collection// is contained in Keyboard Maestro's **For Each** action. |
+ | |||
+ | (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 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. | ||
+ | |||
+ | It is also possible to include or exclude blank lines. | ||
+ | |||
+ | A basic example: | ||
+ | |||
+ | {{ :collection:process_lines_in_a_collection.png?nolink |}} | ||
+ | |||
+ | 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. | ||
- | You can also choose to include or ignore blank lines. |