Using Automator to name a folder with file name
Hi all,
I read through this thread: https://discussions.apple.com/thread/4622032
It has a description and proposed solution, but I can't get the desired results. I'll restate the problem and how I'm trying to use the above solution.
I have a list of documents (.docx) in a folder, each with a unique filename. I need to take each one of those documents and put them into a folder with the same name. So, the manual work flow is:
-Select file
-Get Info and copy filename without extension
-Create new folder
-Name the folder (paste the filename)
-Move the document to the new folder
Except for getting the filename as a variable, I can do all of this with Automator's tools directly. What I can't seem to do is populate a variable with the selected file.
I do not wish to poll an entire folder's contents and generate folders for everything, but it would be great to make an arbitrary selection of files and have those be put into properly named folders.
Is there a simple Script that only capture the filename so I can pass that to Set Variable? I will eventually place this as a plugin so I can get at it from a contextual menu.
Thanks for any help!
MacBook Pro with Retina display, OS X Mountain Lion (10.8.4)