You can use the "contains" operator with BridgePlus.
use AppleScript
version
"2.4" -- Yosemite (10.10) or later
use framework
"Foundation"
use scripting additions
use script
"BridgePlus"
## REQUIRED SCRIPT LIB ###
load framework
--- SEARCH FOR ALL VIDEO (MOVIE) TYPES ---
-- public.movie: Base type for movies (video with optional audio or other tracks).
-- See: https://tinyurl.com/Apple-UTI
set mdQueryStr
to
"kMDItemContentTypeTree CONTAINS 'public.movie'"
set folderToSearch
to (choose folder)
as
alias
set fileList
to
my spotSearch(folderToSearch,
mdQueryStr)
--~~~~~~~~~~~~~~~~~~~ END MAIN SCRIPT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on spotSearch(pFolderToSearchAlias,
pQueryStr)
set
nsFileList to
current application's
SMSForder's runSpotlightQuery:pQueryStr inFolders:{pFolderToSearchAlias} |error|:(missing value)
--- ALTERNATE QUERY ---
--set theResult to current application's SMSForder's runSpotlightQuery:pQueryStr queryValues:{pQueryValues} inFolders:{pFolderToSearchAlias} |error|:(missing value)
ASify
from
nsFileList
--- RETURN as POSIX File List ---
return
nsFileList as
list
end spotSearch