You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Renaming PDF files with RO


I am being paid to rename 3,563 PDF files using an RO number located in the top right corner. Just as the original author of this post has stated, the number varies in its location from time to time but is however always in the top right corner. My files are indeed PDFs and are supposed to be saved as PDFs as well, just renamed. Based on searches I see that I will be using AUTOMATER but unfortunately I am completely new to this application and have no idea where even to begin. Is there anybody here who could maybe help me? It would rescue me from having to perform 9 hours of work I'd imagine.


I have attached a screen shot example of one of the PDF's, the number in the top right corner circled in blue is what I will be using to rename each of the files. If this helps at all, the folders contain documents 6560634-6564197. (3,563 unnamed documents). I was told to click on each .PDF > copy text > and rename said document with pasted text. Individually, one can imagine how arduous a process these kind of jobs can be. I would be so grateful to anybody who can offer a valid solution.


cheers,

Gene


[Re-Titled by Moderator]


Posted on Apr 4, 2023 12:41 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 5, 2023 9:50 AM

THE_DREAM_FACTORY wrote:

You seem to be on the brink of cracking the code! This will for sure help, it is however putting the name twice in certain files where there are two RO numbers. Many of these will contain a second page where the number is listed again with a /2 at the end of it. Is there anyway I can make a rule in the code where it only allows the code to be written once per file?


add -m1 to grep (-m num: Stop reading the file after num matches)

echo -n $(grep -m1 -oE '656[0-9]*[/ 0-9]')



Similar questions

22 replies

Renaming PDF files with RO

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.