<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Thanks Steve. The problem turned out to be that I had run </div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">open -a Automator ~/Library/Services/ClamavScanIt.workflow && osascript -e 'quit app "Automator"'</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">from someplace other than my home directory.  The copy command worked, but the workflow didn't.  I think port commands do the same thing (not run complaining about lack of existence or permissions) when I don't pay attention and try to run from somewhere like my homework assignments folder.  Remembering to do cd and then running the open worked fine.</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Lenore</div><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 10, 2022, at 08:36, Steven Smith <<a href="mailto:steve.t.smith@gmail.com" class="">steve.t.smith@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div dir="ltr" class=""></div><div dir="ltr" class="">Thanks I’m the author.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">It appears that this is unrelated to the port and that there’s some issue with your home directory or account setup.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">In Unix, the path ‘~’ is a synonym refers to your home directory, typically ‘/Users/MyUserName’, and you definitely should be able to copy stuff there.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">If it were me, I’d try to troubleshoot with a few simple commands like:</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">cd ~</div><div dir="ltr" class="">ls ~</div><div dir="ltr" class="">ls -ld ~</div><div dir="ltr" class="">touch ~/THIS_IS_A_TEMPORARY_FILE</div><div dir="ltr" class="">rm ~/THIS_IS_A_TEMPORARY_FILE</div><div dir="ltr" class="">ls -ld ~/Library/Services/ClamavScanIt.workflow</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">If any of that fails, you have bigger issue and should figure out why the path ~ or equivalently (default account configuration) /Users/MyUserName doesn’t exist.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">If it works, then there’s some subtler issue with the ‘open’ command.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class=""><blockquote type="cite" class="">On Aug 28, 2022, at 11:23, Lenore Horner <<a href="mailto:LenoreHorner@sbcglobal.net" class="">LenoreHorner@sbcglobal.net</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">Clamav-server has a really nice set of notes at the end about how to set it up.  Thank you to the folks who set that up.<div class=""><br class=""></div><div class="">I was following those instructions and got to the part </div><div class=""></div><blockquote type="cite" class=""><div class="">Clamav Scan-On-Demand is performed with the command:</div><div class="">    </div><div class="">            /opt/local/bin/ClamavScanIt.sh file1 [directory1] [file2 ...]</div><div class="">    </div><div class="">        A Finder.app Contextual Menu applies ClamavScanIt.sh to the selected</div><div class="">        items in Finder.app. Add this menu item with the command:</div><div class="">    </div><div class="">            cp -R /opt/local/share/clamav/ClamavScanIt.workflow</div><div class="">    ~/Library/Services</div><div class="">            open -a Automator ~/Library/Services/ClamavScanIt.workflow \</div><div class="">      && osascript -e 'quit app "Automator"'</div></blockquote>But when I ran the automator command on my Monterey system the following happened.  <div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">open -a Automator ~/Library/Services/ClamavScanIt.workflow \ && osascript -e 'quit app "Automator"'</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The file /Users/MyUserName/  does not exist.</span></div></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">I substituted MyUserName for my actual username which was correct in the actual results from running the command.</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">ClamavScanIt.workflow is a directory which contains solely the directory Content which contains </span><span style="font-family: Menlo; font-size: 11px;" class="">Info.plist,</span> <span style="font-family: Menlo; font-size: 11px;" class="">Resources, </span><span style="font-family: Menlo; font-size: 11px;" class="">QuickLook</span>, <span style="font-family: Menlo; font-size: 11px;" class="">document.wflow.</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">I can go into Automater and open ClamavScanIt.workflow.  I can also find ClamavScanIt in services in the finder and can select it.  Nothing obvious happened when I did so I don't actually know if it's working.  Did the command actually fail?  Why is it complaining about the non-existence of a directory which is very much alive and well?</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Thanks,</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Lenore</div></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>