Hi, Sorry for the delay in getting back with you on this. The wife had me working all day and am now just catching up with email.
so, lets take them one at a time. 1. This script works from a Hazel rule. So you can create a rule on a particular folder with an action that says, if all of the following, extension is pdf do the following. run AppleScript with the code I sent. then move the file to wherever you wish. 2. Sorry I forgot that I left my "It is done Imperious Leader!" wav file in there. You can just delete that line or point it to a wav file of your choice. 3. No you don't need to enter the version number. But you do need to remove the Pro if you only have the standard edition. forgot to note that as well. sorry. Keith On Mar 16, 2014, at 3:00 AM, Nicholas Parsons <[email protected]> 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 [email protected]. > To post to this group, send email to [email protected]. > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/macvisionaries. For more options, visit https://groups.google.com/d/optout.
