Automation & Scripting Flashcards
7 cards from real GMI practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Automation & Scripting flashcards as text
In a GMI workflow, which scripting approach is best suited for batch-renaming hundreds of graphic output files based on a dynamic naming convention?
Answer: A loop-based shell script iterating over file lists
A loop-based shell script can iterate over file lists and apply dynamic naming logic at scale efficiently.
When automating color profile assignment in a prepress automation script, which data structure is most appropriate for mapping substrate codes to ICC profiles?
Answer: A key-value dictionary/hash map
A key-value dictionary maps substrate codes directly to their corresponding ICC profiles for fast lookup.
A script that monitors a hot folder and triggers a GMI job ticket when a new file arrives is an example of:
Answer: Polling-based event automation
Polling-based automation periodically checks a directory for new files and triggers actions upon detection.
Which regular expression pattern would correctly match a GMI output filename formatted as 'JOB_12345_CMYK.pdf'?
Answer: JOB_\d+_[A-Z]+\.pdf
The pattern JOB_\d+_[A-Z]+\.pdf matches the literal prefix, digits, uppercase color mode, and .pdf extension.
In automation scripting for graphic measures workflows, what is the primary purpose of error handling with try/catch blocks?
Answer: To prevent unhandled exceptions from crashing the entire batch process
Try/catch blocks intercept runtime errors so a single file failure does not abort the entire batch.
A GMI automation script needs to verify that a PDF's bleed is exactly 3mm before processing. Which approach is most reliable?
Answer: Parse the PDF's MediaBox and BleedBox values programmatically
Parsing MediaBox and BleedBox values from the PDF metadata provides an exact, programmatic bleed measurement.
When scheduling automated GMI report generation, which cron expression runs a script every weekday at 7:00 AM?
Answer: 0 7 * * 1-5
The cron expression '0 7 * * 1-5' fires at minute 0, hour 7, on days Monday through Friday.