Copy filepath for the each file in a folder

I need the macro which consequently copies the filepath of the every file in the specified folder for the next action. Currently I stuck here:

I though it will copy the file path after that but it copies the folder path.

I have figured it out

Please include your solution(s) for those who stumble on your posts and want to learn. TY.

1 Like

I am sorry. I will do it tomorrow

:blush:.

In Keyboard Maestro, "Edit ▹ Copy as … ▹ Copy as image" when a macro is selected will give you an image file of your macro's Actions that you can easily paste to the forum "Reply" editor.

1 Like

Yes, but now that macro was heavily transformed and I need to redo that simple version :slight_smile:
But now I recalled.

You don't need to simulate the option+command+C as the variable FilePath already contains the file path.

1 Like

You can avoid using the System Clipboard altogether by using the Keyboard Maestro token %FinderSelection%

Assuming you have a folder selected in Finder and want to get the paths of the files it contains, you can do in a single For Each Action, like this:

Display File Paths for Selected Folder in Finder.kmmacros (3.9 KB)

2 Likes