Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

File names to text automator

I have a huge folder full of photos and i like sharing some of my photos to my friends so i put that in a different folder, i want to keep a list of them on a text file. I have never used Automator in my life but i do know some java.

So my question is, how do i make a small application that can do this process for me. i want it to go something like

* click application *

prompt: Name of the text file

prompt: Name of the folder that i want to get the files from

then just do its magic and put it on the desktop or a prebuilt folder


Thanks in advance

MacBook Air

Posted on Dec 24, 2017 9:04 PM

Reply
Question marked as Best reply

Posted on Dec 25, 2017 1:34 AM

Open Automator, New (Command - N)

Choose Application:

User uploaded file


Using actions:

"Ask for Finder Items"

"Set Value of Variable"

"Get Folder Contents"

&

"New Text File":

User uploaded file

Set "Ask for Finder Items" to Type: "Folders"

In "Set Value of Variable", create a new Variable:

User uploaded file

Drag the Variable into the "Save as" field, removing "Untitled", & add "_contents", if you wish.

Save the workflow.

Opening the application, will prompt you to select a folder.

A new text file will be created on your Desktop, (or in a folder specified in "Where:" in the action "New Text File") with the name of the folder selected, & listing the folder contents.

3 replies
Question marked as Best reply

Dec 25, 2017 1:34 AM in response to Chessmanadit

Open Automator, New (Command - N)

Choose Application:

User uploaded file


Using actions:

"Ask for Finder Items"

"Set Value of Variable"

"Get Folder Contents"

&

"New Text File":

User uploaded file

Set "Ask for Finder Items" to Type: "Folders"

In "Set Value of Variable", create a new Variable:

User uploaded file

Drag the Variable into the "Save as" field, removing "Untitled", & add "_contents", if you wish.

Save the workflow.

Opening the application, will prompt you to select a folder.

A new text file will be created on your Desktop, (or in a folder specified in "Where:" in the action "New Text File") with the name of the folder selected, & listing the folder contents.

File names to text automator

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.