r/applescript • u/encodedworld • Oct 03 '22
Move file into folder of same name
I have a folder called Movies. Inside there are files
movie1.mp4
movie2.mp4
movie3.mp4
I want each file to be placed inside a folder of the same name (without the extension).
The end result would be a folder named Movies with 3 folders
movie1
movie2
movie3
And in each of the folder would be the respective movie#.mp4 file
4
Upvotes
View all comments
Show parent comment
4
u/copperdomebodha Oct 09 '22
I understand your rigor, but Personally, I find a low percentage of /r/AppleScript posters actually even respond to a posted solution to their question. I like to offer a basic solution that addresses the stated problem without investing significant time to anything other than making the solution as clear as I can. If a user responds to a posted solution I’m more than happy to refine the solution to an actual usable app.
I also like to take the results of discussions like this one and code up nice robust handlers for my library that incorporate the best practices I’m aware of. These get used in my actual coding and ensure I’m being thorough, safe and efficient. I don’t usually share any of that code here. Not the appropriate audience. Here I’m more trying to introduce posters to the basics. My apologies if that disturbs your calm. Not intended.