Adding delay in AppleScript

Hello, I use Hazel to OCR PDFs using Nitro PDF Pro.
I used to use PDFpen Pro but ownership changed recently.
I scan documents using Scansnap, then they go to a monitored folder, where Hazel OCRs it with the following script, applies a tag and moves to a holding folder. The problem is, Scansnap gives me option to name the file, but things go so fast that before I can write the desired title, Hazel moves it to Nitro which starts OCR etc.
Here the script
tell application "Nitro PDF Pro"
open theFile as alias
tell document 1
ocr
repeat while performing ocr
delay 1
end repeat
delay 1
close with saving
end tell
quit
end tell
Is there a way to add delay in hazel rules or the script so I can title it before the train leave the station?
Thankk you
I used to use PDFpen Pro but ownership changed recently.
I scan documents using Scansnap, then they go to a monitored folder, where Hazel OCRs it with the following script, applies a tag and moves to a holding folder. The problem is, Scansnap gives me option to name the file, but things go so fast that before I can write the desired title, Hazel moves it to Nitro which starts OCR etc.
Here the script
tell application "Nitro PDF Pro"
open theFile as alias
tell document 1
ocr
repeat while performing ocr
delay 1
end repeat
delay 1
close with saving
end tell
quit
end tell
Is there a way to add delay in hazel rules or the script so I can title it before the train leave the station?
Thankk you