Servant of Cats wrote:
The suggestion is that you use the command line. In Unix – and thus in macOS – a command line interpreter is also known as a "shell."
Actually, the suggestion was that you use the Script Editor application. The Script Editor application, like the Terminal application, lives in the Utilities folder.
- Run the Script Editor.
- Press the New Document button at the bottom of the window that comes up.
- Type in the following lines (but not the "-----" ones)
-----
on open (theItemsDropped)
do shell script "touch ~/Desktop/Listing.txt"
repeat with itemToList in theItemsDropped
set posixItem to quoted form of the POSIX path of itemToList
set shellCommand to "ls -R " & posixItem & " >>~/Desktop/Listing.txt"
do shell script shellCommand
end repeat
end open
-----
- Select File > Export. Set the File Format to Application. Leave the options ("Show startup screen", "Stay open after run handler", and "Run only") unchecked. Choose a name and location for the application. E.g. you could call it "List Files" and save it on the Desktop. Press the Save button.
Now, when you drag and drop folders and files on top of your new List Files application, listings will be added to a file named Listing.txt, on the Desktop. You won't need to interact with Terminal or the command line at all – even though, underneath, that is exactly what the script will be doing.
If you need to edit the script, you can run Script Editor and open the application as if it were a document. (This is why you would want to leave the "Run only" box unchecked when you did the Export.)