The Get Digital Resource Ids command retrieves digital resource IDs for a list of files using file paths.
Get Digital Resource Ids list_of_files
List of files or folders as aliases, files specifications, or AppleShare file/folder paths. | ||
The integer digital resource IDs of the files found. A value of 0 indicates the file was not found. |
Example: Determine the digital resource IDs of several files and verify that each digital resource exists in the database.
tell application "Virtual Ticket 8.0"
set ids to Get Digital Resource Ids¬
{"Jobs:000001 - Rockport Spring Cat:Brochure"¬
,"Jobs:000002 - Builders Catalogue:Annual Report"}
set allDigitalResourcesExist to (0 is not in ids)
end tell