Hi. First, thanks for any help/advice. I'm relatively clueless in this arena, so I defer to your massive, impressive hive brain.
(preamble)
I like reading comics on my iPad. I've basically moved to an exclusively digital platform. I download comics that have been scanned by various people or groups and they're tagged as such (both in the file name/folder name and with a jpg 'tag' as the last page in the issue). These are a great way of giving credit to people who put the time and effort in when they're shared and distributed. Thing is, once I get them, I don't share. They go on my HD and/or my iPad.
(/preamble)
But since I have 1000+ comics on my iPad, these tags (and sometimes other superfluous pages) are included. Even if they're 1MB each, that's 1GB+ of wasted space, which is at a premium on my 16GB iPad (next time, I'll get a bigger one. Promise). That's another 100+ issues I can keep on there in the same amount of space. These numbers are general and estimated. Could be more, for all I know.
These files are a folder containing .jpgs of the scanned pages which is compressed and renamed.
I thought Hazel could be useful to help automate this project. I need to complete several steps.
1) Unarchive the .cbr or .cbz file (these are fancy .zip and .rar files)
2) Delete the last page where applicable
3) Re-archive to .zip and rename to .cbr or .cbz
4) Rename .cbz/r file to remove scanner tags
I don't think there's much I can do about the first 2 steps; I can set up a folder where anything put inside is unarchived. But I probably have to delete the pages myself. I've set up a folder that I drop these altered folders into that will re-archive and rename and move to an 'Out' folder.
I'm stuck on the file renaming. The trick is not every file is named the same way and I'm no coder. Even the supposedly simple Apple Scripts are over my head.
Typically, the name structure is: [Series Title] [-Optional Story Title] [Issue #] [Release Year] [Scanner Tag].cbr And there's usually repeated names like Empire, Resin, Nagha, Minutemen, DCP, and so on. Some have multiples. The date and scanner tags are often in parentheses, but not always.
What can I do to automate as much of this process as possible? Again, I know this is a tall-ish order to ask of strangers, but I'm grateful for anything I can use and I appreciate your donation of time.
Thanks so much! Sorry for rambling. It's what I do.
5x5