Managing Resources
The PAPI offers several methods for managing resources. In this section, we will look at how you can programmatically create and replace resources.
Creating Resources
When given the task of uploading multiple files to resource galleries, each tagged with unique names and descriptions, would you:
1. Use Web Author to upload each file one at a time?
2. Open Site Manager, drag all files from Windows Explorer and drop them into the resource gallery (you have to drop them actually onto the gallery icon for this to work), and toggle back to Web Author to adjust their names, display names, and descriptions?
While either of the above solutions is acceptable when the number of resources to upload is small, neither is particularly appropriate for cases where thousands of files are to be uploaded and properly tagged. It would be a tedious and time-consuming task indeed to manually handle each resource one by one.
Fortunately, using the PAPI, you can write a script to automate the job of...