I have a huge amount of seamless patterns. There is anywhere from 1-25 patterns per file.

I want to extract each pattern to a separate file.

Is there any automated or semi-automated way to do this?

I'd like to output is as .AI, as I want to make one more batch operation. 

[![enter image description here](https://i.stack.imgur.com/W4ass.png)](https://i.stack.imgur.com/W4ass.png)

Update:
-------

(with requests from comments)

* Version: CC 2018.
* Every pattern is on it's own layer (and numbers are on a different layer)
* Solutions which appear in suggested question do not allow to save as AI.