Standard module macostools

macostools

This module contains some convenience routines for file-manipulation on the Macintosh.

The macostools module defines the following functions:


\begin{funcdesc}{copy}{src\, dst\optional{\, createpath, copytimes}}
Copy file \...
... original to which the alias points is
copied, not the aliasfile.
\end{funcdesc}


\begin{funcdesc}{copytree}{src\, dst}
Recursively copy a file tree from \var{src...
...needed. \var{Src} and \var{dst} should be specified as
pathnames.
\end{funcdesc}


\begin{funcdesc}{mkalias}{src\, dst}
Create a finder alias \var{dst} pointing to...
...src}. Both may be
specified as pathnames or \var{FSSpec} objects.
\end{funcdesc}


\begin{funcdesc}{touched}{dst}
Tell the finder that some bits of finder-informat...
.... This call should prod the finder into redrawing the
files icon.
\end{funcdesc}


\begin{datadesc}{BUFSIZ}
The buffer size for \code{copy}, default 1 megabyte.
\end{datadesc}

Note that the process of creating finder aliases is not specified in the Apple documentation. Hence, aliases created with mkalias could conceivably have incompatible behaviour in some cases.