Are you getting a (like "Library not found" or a security warning)?
Run the script and navigate to the root folder where your libraries are stored. kontakt library scripts dmg
Often, these scripts must be moved to the Applications folder or a specific "Scripts" directory within your user profile. Are you getting a (like "Library not found"