Run Script Once whne a file is present


I have created a script that needs to automatically run & repeat every time a pdf file is present within the folder on a server.

  1. Look at the folder
  2. File present?
  3. Hold until file present
  4. Activate script and complete
  5. Look at folder - Repeat

Does anyone know where to start?