The Exists Digital Resource command checks if a file exists in the database as a Digital Resource.
The file alias, file specification, or AppleShare file/folder path. | ||
Example: Determine whether a particular digital resource exists and, if so, delete it.
tell application "Virtual Ticket 8.0"
if (Exists Digital Resource ¬
"Jobs:000002 - Builders Catalogue:Annual Report") then
Delete Digital Resources¬
(Get Digital Resource Ids¬
{"Jobs:000002 - Builders Catalogue:Annual Report"})
end if
end tell