Re: Is Mac a security hazard in a Windows network




I'd also suggest you run a script after you're finished browsing a Windows
box to clear out Mac files which are only visible to Windows users.

Here's an Applescript I use:


set someFolder to quoted form of (POSIX path of (choose folder) as string)

"find -d " & someFolder & " -name \"\\.DS_Store\" -exec rm -f {} \\; ;find
-d " & someFolder & " -name \"\\._*\" -exec rm -f {} \\;;find -d " &
someFolder & " -name \"\\.FBCLockFolder\" -exec rm -fR {} \\;;find -d " &
someFolder & " -name \"\\.FBCIndex\" -exec rm -f {} \\;"

tell application "Terminal" to do script result

Note that the middle line is all one line and you should unwrap it or it
won't compile.

When you are finished browsing the mounted disk, run this script and choose
the mounted disk you want to clear out.

There is probably a shorter command for this, if anyone knows how to
wildcard the target files post it here.

-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/

.



Relevant Pages

  • Progress Box or Bar in Windows
    ... I have a Python script that I've prettied-up for Windows users by adding things like shell.SHBrowseForFolder and win32gui.MessageBox, ... win32gui.MessageBox informing user the script will now begin. ... a progress bar that moves across the screen as the script does its job. ...
    (comp.lang.python)
  • Re: making symlinks with distutils
    ... myexecutable.py is a script which is intended to be used ... > to be made at installation time, when the user runs "python setup.py ... from mypackage import myexecutable ... windows users without code duplication. ...
    (comp.lang.python)
  • User authentication using scripting?
    ... authenticate them against windows users from within a script. ... If so, wich ...
    (microsoft.public.scripting.vbscript)