osx - How to duplicate a batch of files in finder -


i've never used apple script before , find myself needing accomplish repetitive task. need batch duplicate , rename number of files following pattern. preferably need dialogue box saying

"how many duplicates?"

so if have this:

1-1.jpg 1-2.jpg 1-3.jpg

(it number of files highlighted, not three)

what want highlight 3 files services menu invoke applescript ask how many duplicates want make rename them thus:

2-1.jpg 2-2.jpg 2-3.jpg 3-1.jpg 3-2.jpg 3-3.jpg...

obviously depends on how many duplicates need.

this 1 minute job applescript knowledge alas it's going take me time learn this!

if highlight files , press command+d (duplicate) many times need duplicates, without applescript. thing different more-clearly named duplicates:

  • 1-1.jpg
  • 1-1 copy.jpg
  • 1-1 copy 1.jpg
  • 1-1 copy 2.jpg
  • etc.

if want automate in services menu, can build service automator. services menu not typical place run applescripts from. there script menu that, can enable in script editor preferences (show script menu in menubar.)

if want applescript, want learn how script finder, basic task. in script editor, can go file ▶ open dictionary , choose finder, , you’ll see scripting dictionary finder has commands finder understands. looks complicated @ first, becomes clear work make first script.

this kind of project people when first learn applescript. there lots of online learning resources macscripter , others. can start else’s finder script want, , adapt work want.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -