r/applescript • • 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

13 comments sorted by

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.

2

u/ChristoferK Oct 10 '22

It doesn't disturb me, no. I do see the logic in what you said here, but probably still ultimately disagree with the mindset. But I also sympathise as you're quite right about simply never hearing back from many users. I also kind of see the hilarity of hogging all the good shit for your personal collection, and just posting all the chaff to reddit. It's like the ultimate dick move, but you're just like "yeah, this is what I do...", which is actually kinda boss. I think I'll even +1 it.