Whenever I have a new client, I always create a new folder on my computer, and depending on the type of project, I place certain folders/template files inside.
I've already created a macro for this that works, but where I'm stuck is for when I have repeat clients.
I need to add a condition to first search my drive to see if a folder name already exists with the client's name. If it does, I want it to create certain subfolders for their newest project. If it doesn't, then I want it to create a new folder for the client.
How would I go about doing this? Is there a specific action step I should use?
The only thing I'm unsure of based on your post is what you meant by "You change the variable to an existing folder name that's in your ~/Documents folder hierarchy?"
The folder I want it to search is on an external hard drive.
Do I replace local_FolderName? with the name of my drive?
Or do I update something else in the section that says: mdfind -onlyin ~/Documents "kMDItemFSName == \"$KMVAR_local_FolderName\"cdw" ?
I'm not very knowledgeable on shell scripts so I'll wait for Chris to actually answer your question but I believe the file path in the shell script does need to be adjusted to point to your external hard drive.
The point about the variable just means you changed it to the name of whatever folder you wanted to search for and/or create.
Version 1.0.1 of the macro has a dedicated Target Path variable for the search path and will accept a full POSIX Path or a $HOME-Based POSIX Path (often referred to as a Tilde-Path).
@ccstone Whoops. I totally missed the second macro. It seems like I've figured this out and have it working with my existing original macro. Thank you so much!
One last question... is it possible to change the shell script result text and/or have nothing pop up at all?