Ooops, don't think I quite answered your first question in full. theFile is an 
alias to the file that Hazel is performing the action on. So that line of code 
calls a shell script to look at the file for a specific string. If its there 
then the file is already OCR'd and nothing needs to be done to it. If its not 
there then OCR it.

Keith

On Mar 16, 2014, at 3:00 AM, Nicholas Parsons <mr.nicholas.pars...@gmail.com> 
wrote:

> Hi Keith,
> 
> Three more questions.
> 
> 1. What do the following lines do? Do they test whether the file is a 
> text-based or image-based pdf? Do I need to customise any of that stuff (e.g. 
> the MyFile thing), or do I simply copy and paste it as is?
> set myFile to POSIX path of theFile
> set theResult to do shell script "grep -i 'encoding' " & quoted form of 
> myFile & " &>/dev/null && echo 1 || echo 0"
> if theResult is "0" then
> 
> 2. Do I need to have those .wav files for it's done etcetera for those alert 
> sounds to work? I guess I can just change that path name to point to one of 
> the system files and it should work? Or I could just remove that line 
> entirely?
> 
> 3. Do I need to enter the version number for PDFPen?
> 
> Cheers,
> Nic
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at http://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to