This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
collection:Lines_In [2016/02/13 03:14] ccstone |
collection:Lines_In [2017/09/07 05:08] (current) peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Lines In collection ==== | ==== Lines In collection ==== | ||
- | //Lines In collection// is contained in Keyboard Maestro's **For Each** action. | + | //Lines In collection// is contained in the [[action:For_Each|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 In collection// allows each line from a specified source to be processed. | ||
Line 9: | Line 7: | ||
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 13: | ||
{{ :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. |
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | ==== Actions ==== | ||
+ | |||
+ | * [[action:For_Each|For Each]] | ||
+ | |||
+ | ==== Forum ==== | ||
+ | |||
+ | * [[https://forum.keyboardmaestro.com/t/file-process-lines-in-text-file/2936|[FILE] Process Lines in Text File]] | ||
- | [Process Lines in Text File](https://forum.keyboardmaestro.com/t/macro-file-process-lines-in-text-file/2936) |