I have been pouring over every piece of documentation about clipboards and manipulating the values in clipboard data (either system or named). I've come across regular expressions and the documentation was confusing to me. I'm self-taught programming, but I know I have a long way to go.
My goal is to copy a path of a folder (using command + alt + c) and then change the content of the clipboard to a portion of the path (mostly the end). Then I want it to rename the file using the new string. I have tried and discarded many things and I don't remember a lot of it (been working on it for like five hours, I'm nothing if not persistent), but I will most likely remember what I have and haven't tried.
I'm hoping that I'm on the right track, but this particular task feels like I'm making it way more complicated than it needs to be. If anyone has some guidance or is willing to work with me a little so I can learn, I would greatly appreciate it!
This looks to be exactly what I need. Not sure why I didn't see it to begin with. I think I was too focused on the clipboard aspect. Thank you for pointing me in the right direction!
I'm looking to get rid of everything that ~ stands in for as well as "Downloads" and then use the rest to replace the number at the end with everything leftover.
Thank you for such a quick reply and your willingness to help is much appreciated!
I apologize for the confusion, I see now that I wasn't specific enough and that’s on me. I’m also sorry for not getting back to you sooner. I was trying to make it as detailed and concise as possible.
Version of KM: 10.0
Version of macOS: 12.0.1
Workflow and goal: I want to take a selected folder's path and use it to rename the folder to something simple. Then I want to move the newly named folder to a more accessible destination saving myself the headache of navigating to the proper folder each time. From there I will manually import the folder into an app designed to organize my collection of icons (IconJar). I will have to do this workflow hundreds of times (there’s somewhere around 40,000 icons) and I'm hoping this will speed it up considerably.