HI
I have an encrypted disk image with all my Mail on. I have learned that spotlight apparently does not index encrypted volumes. This means search in Mail is useless.
I have also discovered that the indexing is lost every time the disk image is unmounted. Which is a real pain. In other words, every time I mount the disk image, I have to issue a terminal command
…and then wait half an hour while it indexes my Mail each time!
I want to automate this process but am having trouble trying to detect whether indexing is already enabled on the mounted image. I have this snippet:
do shell script "sudo mdutil -i /Volumes/InfoPackEM" with administrator privileges
But even when the disk image is mounted, the script returns an error saying:
… even when the indexing is on…It returns same error when indexing is off.
How do I test whether the indexing is on for a mounted disk image? Any ideas?