User Tools

Site Tools


collection:Finders_Selection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
collection:Finders_Selection [2017/10/20 04:02]
peternlewis [Potential Use Cases]
collection:Finders_Selection [2017/10/20 04:04]
peternlewis
Line 1: Line 1:
 {{:​collection:​mac-finder-icon.png?​nolink|}} {{:​collection:​mac-finder-icon.png?​nolink|}}
 +
 ====== Working with the Finder Selection ====== ====== Working with the Finder Selection ======
 +
 **with the //​[[action:​For_Each|For Each Item]]// Action using the //​[[:​Collections|Finder'​s Selection Collection]]//​** **with the //​[[action:​For_Each|For Each Item]]// Action using the //​[[:​Collections|Finder'​s Selection Collection]]//​**
  
 As you probably know, you can select multiple files and/or folders in the Mac Finder, and then perform a manual operation on the entire selection, like copy, move, delete, apply tags, etc.  If you have an operation that you often perform, then Keyboard Maestro can most likely automate that for you. As you probably know, you can select multiple files and/or folders in the Mac Finder, and then perform a manual operation on the entire selection, like copy, move, delete, apply tags, etc.  If you have an operation that you often perform, then Keyboard Maestro can most likely automate that for you.
 +
 ===== Potential Use Cases ===== ===== Potential Use Cases =====
 +
 Some examples of Keyboard Maestro macros performing operations (actions) on a Finder Selection: Some examples of Keyboard Maestro macros performing operations (actions) on a Finder Selection:
   - Move the selected files to another folder you often use for a specific purpose   - Move the selected files to another folder you often use for a specific purpose
Line 18: Line 22:
  
 {{:​collection:​km-for-each-finder.png?​nolink|}} {{:​collection:​km-for-each-finder.png?​nolink|}}
- 
----- 
  
 ===== Examples ===== ===== Examples =====
  
-**Here are some detailed examples.** \\  ​ 
 The //​Finder’s Selection collection//​ sets the //**For Each**// Variable to the full path of each file in the selection. The //​Finder’s Selection collection//​ sets the //**For Each**// Variable to the full path of each file in the selection.
  
 Note the consistency between the first three examples. And note that you could do all three in a single For Each action if you wanted (you would have to ensure the Move was done last of course, as that will change the path to the file). Note the consistency between the first three examples. And note that you could do all three in a single For Each action if you wanted (you would have to ensure the Move was done last of course, as that will change the path to the file).
- 
----- 
  
 ==== #1 - Move Selected Files ==== ==== #1 - Move Selected Files ====
Line 34: Line 33:
 To move the files to the Documents folder, you would do this:\\ To move the files to the Documents folder, you would do this:\\
 {{ :​action:​move-to-documents.png?​516;​nolink |}} {{ :​action:​move-to-documents.png?​516;​nolink |}}
- 
- 
----- 
  
 ==== #2 - Assign Mac Tags to Selection ==== ==== #2 - Assign Mac Tags to Selection ====
Line 42: Line 38:
 To change the Finder Tags, you would use: To change the Finder Tags, you would use:
 {{ :​action:​change-tag.png?​516;​nolink |}} {{ :​action:​change-tag.png?​516;​nolink |}}
- 
----- 
  
 ==== #3 - Rename Selected Files ==== ==== #3 - Rename Selected Files ====
Line 50: Line 44:
  
 {{ :​action:​rename-selected.png?​nolink&​516 |}} {{ :​action:​rename-selected.png?​nolink&​516 |}}
- 
----- 
  
 ==== #4.  Pass the File Path to a Shell Script ==== ==== #4.  Pass the File Path to a Shell Script ====
Line 58: Line 50:
  
 {{ :​action:​pass-to-shell.png?​516;​nolink |}} {{ :​action:​pass-to-shell.png?​516;​nolink |}}
- 
----- 
  
 ==== #5.  Combining Multiple Actions in One For Each Item Action ==== ==== #5.  Combining Multiple Actions in One For Each Item Action ====
- 
  
 This macro will take the selected items in the Finder and perform the following Actions: This macro will take the selected items in the Finder and perform the following Actions:
Line 77: Line 66:
 {{ :​collection:​working-with-the-finder-selection.png?​nolink |}} {{ :​collection:​working-with-the-finder-selection.png?​nolink |}}
  
----- 
 ===== Downloads ==== ===== Downloads ====
 +
   - {{:​collection:​finder_rename_and_sequentially_number_selected_items.kmmacros|}}   - {{:​collection:​finder_rename_and_sequentially_number_selected_items.kmmacros|}}
  
----- 
 ===== See Also ===== ===== See Also =====
 +
 ==== Actions ==== ==== Actions ====
  
Line 97: Line 86:
  
 ==== Forum ==== ==== Forum ====
 +
   * [Working with the Finder Selection](https://​forum.keyboardmaestro.com/​t/​working-with-the-finder-selection/​278)   * [Working with the Finder Selection](https://​forum.keyboardmaestro.com/​t/​working-with-the-finder-selection/​278)
  
collection/Finders_Selection.txt · Last modified: 2021/12/07 00:48 by peternlewis