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
Next revision
Previous revision
Next revision Both sides next revision
collection:Finders_Selection [2015/12/23 06:48]
JMichaelTX Major edit to add intro, reorg, add images
collection:Finders_Selection [2017/10/20 04:02]
peternlewis [Potential Use Cases]
Line 1: Line 1:
 {{:​collection:​mac-finder-icon.png?​nolink|}} {{:​collection:​mac-finder-icon.png?​nolink|}}
-====== ​Making Use of the Mac Finder Selection ======+====== ​Working with the Finder Selection ====== 
 +**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 =====
Line 7: Line 9:
   - Assigning Mac Tags to the selection (can't be done via AppleScript)   - Assigning Mac Tags to the selection (can't be done via AppleScript)
   - Renaming the selected files using a consistent prefix and number scheme   - Renaming the selected files using a consistent prefix and number scheme
-  - [FIXME JM: should we add more?] 
  
-[FIXME ​ JM:  We need to put the detail examples in the same order as listed above. ​ Also, I suggest that we start with a simple example, like #1 above, that does NOT require something complicated like a plugin] 
- 
----- 
  
 ===== Setup of the For Each Item Action ===== ===== Setup of the For Each Item Action =====
Line 29: Line 27:
  
 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 ====
  
-To move the files to the Documents folder, you would do this:\\n   +To move the files to the Documents folder, you would do this:\\ 
-[FIXME ​ **JM:  There is something wrong with these images. ​ They all have a "Fix Finder Selection Bug" checkbox on them that does NOT appear on my Actions, or in Chris'​s Actions.**] +{{ :​action:​move-to-documents.png?​516;nolink |}}
- +
-{{ :​action:​move-to-documents.png?​nolink |}}+
  
  
Line 43: Line 41:
  
 To change the Finder Tags, you would use: To change the Finder Tags, you would use:
 +{{ :​action:​change-tag.png?​516;​nolink |}}
  
-[FIXME ​ **JM:  There is something wrong with these images. ​ They all have a "Fix Finder Selection Bug" checkbox on them that does NOT appear on my Actions, or in Chris'​s Actions.**] +----
-{{ :​action:​change-tag.png?​nolink |}}+
  
 ==== #3 - Rename Selected Files ==== ==== #3 - Rename Selected Files ====
  
 +You could rename the selected files from .txt to .html like this:
  
- +{{ :action:rename-selected.png?nolink&​516 ​|}}
-+
-Set the Finder Label to Red (using the Plug In action for Set the Finder Label). +
- +
-[FIXME ​ **JM:  There is something wrong with these images. ​ They all have a "Fix Finder Selection Bug" checkbox on them that does NOT appear on my Actions, or in Chris'​s Actions.**] +
-{{ :action:label-red.png?nolink |}}+
  
 ---- ----
Line 63: Line 57:
 You can pass each file to a shell script using something like this: You can pass each file to a shell script using something like this:
  
-{{ :​action:​pass-to-shell.png?​nolink |}}+{{ :​action:​pass-to-shell.png?​516;nolink |}}
  
 ---- ----
Line 89: Line 83:
 ---- ----
 ===== See Also ===== ===== See Also =====
-==== Documentation ​====+==== Actions ==== 
 + 
 +* [[action:​For_Each|For Each]] action 
 +* [[action:​File_Actions|File Actions]] action 
 +* [[action:​Get_File_Attribute|Get File Attribute]] action 
 +* [[action:​Set_File_Attribute|Set File Attribute]] action 
 + 
 +==== Collections ​====
  
-  ​TBD+[[collection:​Finders_Selection|Finders Selection]] collection 
 +* [[collection:​Folder_Contents|Folder Contents]] collection 
 +* [[collection:​Mounted_Volumes|Mounted Volumes]] collection
  
 ==== 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)
  
-==== External References ==== 
-  * TBD 
collection/Finders_Selection.txt · Last modified: 2021/12/07 00:48 by peternlewis