From 1e18712c977608115256a3e2923ecdd94a3aaae7 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Sat, 5 Dec 2015 09:25:16 -0800 Subject: [PATCH] Add function to print the files/directories selected in the Finder --- functions.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/functions.md b/functions.md index 4f2acbc..2f3ef35 100644 --- a/functions.md +++ b/functions.md @@ -10,6 +10,7 @@ - [App Icons](#app-icons) - [Finder](#finder) - [Get Path of Frontmost Finder Window](#get-path-of-frontmost-finder-window) + - [Print Files Selected in Finder](#print-files-selected-in-finder) - [Set Current Directory's Finder View to Column View](#set-current-directorys-finder-view-to-column-view) - [Set Current Directory's Finder View to Icon View](#set-current-directorys-finder-view-to-icon-view) - [Set Current Directory's Finder View to List View](#set-current-directorys-finder-view-to-list-view) @@ -61,6 +62,23 @@ function finder_path { } ``` +### Print Files Selected in Finder + +```bash +selected() { + osascript <