Built-in Module macfs

macfs

This module provides access to macintosh FSSpec handling, the Alias Manager, finder aliases and the Standard File package.

Whenever a function or method expects a file argument, this argument can be one of three things: (1) a full or partial Macintosh pathname, (2) an FSSpec object or (3) a 3-tuple (wdRefNum, parID, name) as described in Inside Mac VI. A description of aliases and the standard file package can also be found there.


\begin{funcdesc}{FSSpec}{file}
Create an FSSpec object for the specified file.
\end{funcdesc}


\begin{funcdesc}{RawFSSpec}{data}
Create an FSSpec object given the raw data for...
...y useful if you have obtained an
FSSpec structure over a network.
\end{funcdesc}


\begin{funcdesc}{RawAlias}{data}
Create an Alias object given the raw data for t...
...y useful if you have obtained an
FSSpec structure over a network.
\end{funcdesc}


\begin{funcdesc}{FInfo}{}
Create a zero-filled FInfo object.
\end{funcdesc}


\begin{funcdesc}{ResolveAliasFile}{file}
Resolve an alias file. Returns a 3-tupl...
...ce
(otherwise the FSSpec object for the file itself is returned).
\end{funcdesc}


\begin{funcdesc}{StandardGetFile}{\optional{type\, ...}}
Present the user with a...
...indicating that the user completed the dialog
without cancelling.
\end{funcdesc}


\begin{funcdesc}{PromptGetFile}{prompt\optional{\, type\, ...}}
Similar to \var{StandardGetFile} but allows you to specify a prompt.
\end{funcdesc}


\begin{funcdesc}{StandardPutFile}{prompt\, \optional{default}}
Present the user ...
...indicating that the user completed
the dialog without cancelling.
\end{funcdesc}


\begin{funcdesc}{GetDirectory}{\optional{prompt}}
Present the user with a non-st...
...nd the optional.
Return an FSSpec object and a success-indicator.
\end{funcdesc}


\begin{funcdesc}{SetFolder}{\optional{fsspec}}
Set the folder that is initially ...
...al controls'' controlpanel, thereby making
this call inoperative.
\end{funcdesc}


\begin{funcdesc}{FindFolder}{where\, which\, create}
Locates one of the \lq\lq specia...
...\var{which} can be obtained from the
standard module \var{MACFS}.
\end{funcdesc}


\begin{funcdesc}{FindApplication}{creator}
Locate the application with 4-char cr...
...he
function returns an FSSpec object pointing to the application.
\end{funcdesc}



Subsections