|
|
|
Macintosh Library Modules |
|
|
|
Availability: Macintosh.
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 FSRef or FSSpec objects.
The findertools module defines the following functions:
-
Tell the finder to launch file. What launching means depends on the file:
applications are started, folders are opened and documents are opened
in the correct application.
-
Tell the finder to print a file. The behaviour is identical to selecting the file and using
the print command in the finder's file menu.
-
Tell the finder to copy a file or folder file to folder
destdir. The function returns an Alias object pointing to
the new file.
-
Tell the finder to move a file or folder file to folder
destdir. The function returns an Alias object pointing to
the new file.
-
Tell the finder to put the Macintosh to sleep, if your machine
supports it.
-
Tell the finder to perform an orderly restart of the machine.
-
Tell the finder to perform an orderly shutdown of the machine.
|
|
|
Macintosh Library Modules |
|
|
|
Release 2.3.4, documentation updated on May 20, 2004.
See About this document... for information on suggesting changes.