Standard module findertools

findertools

This module contains routines that give Python programs access to some functionality provided by the finder. They are implemented as wrappers around the AppleEvent interface to the finder.

All file and folder parameters can be specified either as full pathnames or as FSSpec objects.

The findertools module defines the following functions:


\begin{funcdesc}{launch}{file}
Tell the finder to launch \var{file}. What launch...
...s are opened and documents are opened
in the correct application.
\end{funcdesc}


\begin{funcdesc}{Print}{file}
Tell the finder to print a file (again specified b...
... to selecting the file and using
the print command in the finder.
\end{funcdesc}


\begin{funcdesc}{copy}{file, destdir}
Tell the finder to copy a file or folder \...
...function returns an \code{Alias} object pointing to
the new file.
\end{funcdesc}


\begin{funcdesc}{move}{file, destdir}
Tell the finder to move a file or folder \...
...function returns an \code{Alias} object pointing to
the new file.
\end{funcdesc}


\begin{funcdesc}{sleep}{}
Tell the finder to put the mac to sleep, if your machine supports it.
\end{funcdesc}


\begin{funcdesc}{restart}{}
Tell the finder to perform an orderly restart of the machine.
\end{funcdesc}


\begin{funcdesc}{shutdown}{}
Tell the finder to perform an orderly shutdown of the machine.
\end{funcdesc}