I need macro that move file every 30 files

please
i need macro
i have a lot of JPEG files in folder "1" in desktop
i need macro that move file every 30 files
to folder "2" in desktop
and the 29 of the files the macro will delete them

example : if i have 90 files in folder "1" in desktop
the macro will move file 30 and 60 and 90
(those number can divide by 30)
and move them to folder "2" in desktop
the other files the macro will delete them

You can accomplish this using:

Judged/ordered by what criterion ?

1 Like

my good friend
it doesn't work well
please
can you send me the full macro
i will appreciate very much

please
can you help me

please
i struggle to make this macro
i tried for 1 week every day
and it not working
please
can you help me

Post what you have (preferably as screenshots) and perhaps we can see where you're going wrong and get you on the right track.

please i don't know how to move on with the macro

What does your source folder look like?

What do you want it to look like at the end?

What does the target folder look like?

What do you want it to look like at the end?

  1. the source folder have 900 JPEG that order by date crated ,the newest JPEG is in number 1 from the top of the list

  2. i want that the end file will be with 30 photo
    example : if i have 900 files in folder "1" in desktop
    the macro will move file 30 and 60 and 90...............until 900
    (those number can divide by 30)
    and move them to folder "2" in desktop

Can you maybe post post an example macro that shoes what you want.

It is not necessary that the macro works. Just to get an idea.

Alternatively:

Explain:

What does this mean:?

the macro will move file 30 and 60 and 90...............until 900
(those number can divide by 30)
and move them to folder "2" in desktop

Any help appreciated.

OK
i am changing the request
think like this
you have 1000 files in folder call "1" in desktop
i just need 100 files from that folder (1000 divide by 10)
but random 100 files
and the macro will put those 100 in the desktop

Something like:

  • For Each action with Folder Contents collection in variable Path, folder ~/Desktop/1
    • If action with Calculation condition [RANDOM](https://wiki.keyboardmaestro.com/function/RANDOM)() < 0.1
      • Move action from %Variable%Path% to ~/Desktop

That will move roughly 10% of files from the 1 folder to the Desktop folder.

2 Likes

my good friend
i try very hard to make this macro
can you send me please in link as a macro
i sorry for my ignorant