Whenever I try to run this script I get the following error:
error "Unknown option -
Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query]
list the files matching the query
query can be an expression or a sequence of words
-live Query should stay active
-count Query only reports matching items count
-onlyin <dir> Search only within given directory
-name <name> Search on file name only
-s <name> Show contents of smart folder <name>
-0 Use NUL (``\\0'') as a path separator, for use with xargs -0.
example: mdfind image
example: mdfind -onlyin ~ image
example: mdfind -name stdlib.h
example: mdfind \"kMDItemAuthor == '*MyFavoriteAuthor*'\"
example: mdfind -live MyFavoriteAuthor
" number 1
I've pasted your full code into the Applescript editor and I'm trying it to run in InDesign CS5.5
I've tried modifying the script here and there, but can't seem to get it to work. (I have not made myself familiar yet with running shellscripts within Applescript.)
Any chance you could help me with this?