Fred Drake | c817e27 | 1998-08-10 18:40:22 +0000 | [diff] [blame] | 1 | \section{\module{macfs} --- |
Fred Drake | f6863c1 | 1999-03-02 16:37:17 +0000 | [diff] [blame] | 2 | Various file system services} |
Fred Drake | fe7f3bc | 1998-07-23 17:55:31 +0000 | [diff] [blame] | 3 | |
Fred Drake | f6863c1 | 1999-03-02 16:37:17 +0000 | [diff] [blame] | 4 | \declaremodule{builtin}{macfs} |
| 5 | \platform{Mac} |
Fred Drake | 72554e4 | 1998-11-25 20:07:35 +0000 | [diff] [blame] | 6 | \modulesynopsis{Support for FSSpec, the Alias Manager, |
| 7 | \program{finder} aliases, and the Standard File package.} |
Fred Drake | fe7f3bc | 1998-07-23 17:55:31 +0000 | [diff] [blame] | 8 | |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 9 | |
Fred Drake | cce1090 | 1998-03-17 06:33:25 +0000 | [diff] [blame] | 10 | This module provides access to Macintosh FSSpec handling, the Alias |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 11 | Manager, \program{finder} aliases and the Standard File package. |
| 12 | \index{Macintosh Alias Manager} |
| 13 | \index{Alias Manager, Macintosh} |
| 14 | \index{Standard File} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 15 | |
| 16 | Whenever a function or method expects a \var{file} argument, this |
Guido van Rossum | 6bb1adc | 1995-03-13 10:03:32 +0000 | [diff] [blame] | 17 | argument can be one of three things:\ (1) a full or partial Macintosh |
Fred Drake | eecdc7f | 2000-10-14 04:45:22 +0000 | [diff] [blame] | 18 | pathname, (2) an \pytype{FSSpec} object or (3) a 3-tuple |
| 19 | \code{(\var{wdRefNum}, \var{parID}, \var{name})} as described in |
| 20 | \citetitle{Inside Macintosh:\ Files}. A description of aliases and the |
| 21 | Standard File package can also be found there. |
| 22 | |
Fred Drake | 0aa811c | 2001-10-20 04:24:09 +0000 | [diff] [blame] | 23 | \note{A module, \refmodule{macfsn}, is auto-imported to replace |
| 24 | StandardFile calls in \module{macfs} with NavServices calls.} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 25 | |
| 26 | \begin{funcdesc}{FSSpec}{file} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 27 | Create an \pytype{FSSpec} object for the specified file. |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 28 | \end{funcdesc} |
| 29 | |
| 30 | \begin{funcdesc}{RawFSSpec}{data} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 31 | Create an \pytype{FSSpec} object given the raw data for the \C{} |
| 32 | structure for the \pytype{FSSpec} as a string. This is mainly useful |
| 33 | if you have obtained an \pytype{FSSpec} structure over a network. |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 34 | \end{funcdesc} |
| 35 | |
| 36 | \begin{funcdesc}{RawAlias}{data} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 37 | Create an \pytype{Alias} object given the raw data for the \C{} |
| 38 | structure for the alias as a string. This is mainly useful if you |
| 39 | have obtained an \pytype{FSSpec} structure over a network. |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 40 | \end{funcdesc} |
| 41 | |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 42 | \begin{funcdesc}{FInfo}{} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 43 | Create a zero-filled \pytype{FInfo} object. |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 44 | \end{funcdesc} |
| 45 | |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 46 | \begin{funcdesc}{ResolveAliasFile}{file} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 47 | Resolve an alias file. Returns a 3-tuple \code{(\var{fsspec}, |
| 48 | \var{isfolder}, \var{aliased})} where \var{fsspec} is the resulting |
| 49 | \pytype{FSSpec} object, \var{isfolder} is true if \var{fsspec} points |
| 50 | to a folder and \var{aliased} is true if the file was an alias in the |
| 51 | first place (otherwise the \pytype{FSSpec} object for the file itself |
| 52 | is returned). |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 53 | \end{funcdesc} |
| 54 | |
Fred Drake | 4c6d21a | 2000-09-22 15:46:35 +0000 | [diff] [blame] | 55 | \begin{funcdesc}{StandardGetFile}{\optional{type, \moreargs}} |
Guido van Rossum | 6bb1adc | 1995-03-13 10:03:32 +0000 | [diff] [blame] | 56 | Present the user with a standard ``open input file'' |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 57 | dialog. Optionally, you can pass up to four 4-character file types to limit |
| 58 | the files the user can choose from. The function returns an \pytype{FSSpec} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 59 | object and a flag indicating that the user completed the dialog |
| 60 | without cancelling. |
| 61 | \end{funcdesc} |
| 62 | |
Fred Drake | 4c6d21a | 2000-09-22 15:46:35 +0000 | [diff] [blame] | 63 | \begin{funcdesc}{PromptGetFile}{prompt\optional{, type, \moreargs}} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 64 | Similar to \function{StandardGetFile()} but allows you to specify a |
Fred Drake | eecdc7f | 2000-10-14 04:45:22 +0000 | [diff] [blame] | 65 | prompt which will be displayed at the top of the dialog. |
Jack Jansen | 0e13374 | 1995-08-14 13:39:16 +0000 | [diff] [blame] | 66 | \end{funcdesc} |
| 67 | |
Fred Drake | 4c6d21a | 2000-09-22 15:46:35 +0000 | [diff] [blame] | 68 | \begin{funcdesc}{StandardPutFile}{prompt\optional{, default}} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 69 | Present the user with a standard ``open output file'' |
| 70 | dialog. \var{prompt} is the prompt string, and the optional |
Guido van Rossum | 6bb1adc | 1995-03-13 10:03:32 +0000 | [diff] [blame] | 71 | \var{default} argument initializes the output file name. The function |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 72 | returns an \pytype{FSSpec} object and a flag indicating that the user |
| 73 | completed the dialog without cancelling. |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 74 | \end{funcdesc} |
| 75 | |
Jack Jansen | 0e13374 | 1995-08-14 13:39:16 +0000 | [diff] [blame] | 76 | \begin{funcdesc}{GetDirectory}{\optional{prompt}} |
Fred Drake | eecdc7f | 2000-10-14 04:45:22 +0000 | [diff] [blame] | 77 | Present the user with a non-standard ``select a directory'' dialog. You |
| 78 | have to first open the directory before clicking on the ``select current |
| 79 | directory'' button. \var{prompt} is the prompt string which will be |
| 80 | displayed at the top of the dialog. Return an \pytype{FSSpec} object and |
| 81 | a success-indicator. |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 82 | \end{funcdesc} |
| 83 | |
Guido van Rossum | 910a671 | 1996-07-30 18:22:31 +0000 | [diff] [blame] | 84 | \begin{funcdesc}{SetFolder}{\optional{fsspec}} |
| 85 | Set the folder that is initially presented to the user when one of |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 86 | the file selection dialogs is presented. \var{fsspec} should point to |
Guido van Rossum | 910a671 | 1996-07-30 18:22:31 +0000 | [diff] [blame] | 87 | a file in the folder, not the folder itself (the file need not exist, |
| 88 | though). If no argument is passed the folder will be set to the |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 89 | current directory, i.e. what \function{os.getcwd()} returns. |
Guido van Rossum | 910a671 | 1996-07-30 18:22:31 +0000 | [diff] [blame] | 90 | |
| 91 | Note that starting with system 7.5 the user can change Standard File |
Fred Drake | eecdc7f | 2000-10-14 04:45:22 +0000 | [diff] [blame] | 92 | behaviour with the ``general controls'' control panel, thereby making |
Guido van Rossum | 910a671 | 1996-07-30 18:22:31 +0000 | [diff] [blame] | 93 | this call inoperative. |
| 94 | \end{funcdesc} |
| 95 | |
Fred Drake | cce1090 | 1998-03-17 06:33:25 +0000 | [diff] [blame] | 96 | \begin{funcdesc}{FindFolder}{where, which, create} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 97 | Locates one of the ``special'' folders that MacOS knows about, such as |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 98 | the trash or the Preferences folder. \var{where} is the disk to |
| 99 | search, \var{which} is the 4-character string specifying which folder to |
Jack Jansen | da53c52 | 1995-10-10 14:43:20 +0000 | [diff] [blame] | 100 | locate. Setting \var{create} causes the folder to be created if it |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 101 | does not exist. Returns a \code{(\var{vrefnum}, \var{dirid})} tuple. |
Fred Drake | 2999607 | 1997-08-22 13:45:13 +0000 | [diff] [blame] | 102 | \end{funcdesc} |
Jack Jansen | da53c52 | 1995-10-10 14:43:20 +0000 | [diff] [blame] | 103 | |
Guido van Rossum | e229d86 | 1997-08-18 15:14:26 +0000 | [diff] [blame] | 104 | \begin{funcdesc}{NewAliasMinimalFromFullPath}{pathname} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 105 | Return a minimal \pytype{alias} object that points to the given file, which |
Guido van Rossum | e229d86 | 1997-08-18 15:14:26 +0000 | [diff] [blame] | 106 | must be specified as a full pathname. This is the only way to create an |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 107 | \pytype{Alias} pointing to a non-existing file. |
Guido van Rossum | e229d86 | 1997-08-18 15:14:26 +0000 | [diff] [blame] | 108 | |
Jack Jansen | da53c52 | 1995-10-10 14:43:20 +0000 | [diff] [blame] | 109 | The constants for \var{where} and \var{which} can be obtained from the |
| 110 | standard module \var{MACFS}. |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 111 | \end{funcdesc} |
| 112 | |
Guido van Rossum | 7e42cab | 1996-10-15 14:37:31 +0000 | [diff] [blame] | 113 | \begin{funcdesc}{FindApplication}{creator} |
Fred Drake | eecdc7f | 2000-10-14 04:45:22 +0000 | [diff] [blame] | 114 | Locate the application with 4-character creator code \var{creator}. The |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 115 | function returns an \pytype{FSSpec} object pointing to the application. |
Guido van Rossum | 7e42cab | 1996-10-15 14:37:31 +0000 | [diff] [blame] | 116 | \end{funcdesc} |
| 117 | |
Fred Drake | f6863c1 | 1999-03-02 16:37:17 +0000 | [diff] [blame] | 118 | |
Fred Drake | efff11b | 2002-01-17 04:44:34 +0000 | [diff] [blame] | 119 | \subsection{FSSpec Objects \label{fsspec-objects}} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 120 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 121 | \begin{memberdesc}[FSSpec]{data} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 122 | The raw data from the FSSpec object, suitable for passing |
| 123 | to other applications, for instance. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 124 | \end{memberdesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 125 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 126 | \begin{methoddesc}[FSSpec]{as_pathname}{} |
| 127 | Return the full pathname of the file described by the \pytype{FSSpec} |
| 128 | object. |
| 129 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 130 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 131 | \begin{methoddesc}[FSSpec]{as_tuple}{} |
| 132 | Return the \code{(\var{wdRefNum}, \var{parID}, \var{name})} tuple of |
| 133 | the file described by the \pytype{FSSpec} object. |
| 134 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 135 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 136 | \begin{methoddesc}[FSSpec]{NewAlias}{\optional{file}} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 137 | Create an Alias object pointing to the file described by this |
Guido van Rossum | 6bb1adc | 1995-03-13 10:03:32 +0000 | [diff] [blame] | 138 | FSSpec. If the optional \var{file} parameter is present the alias |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 139 | will be relative to that file, otherwise it will be absolute. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 140 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 141 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 142 | \begin{methoddesc}[FSSpec]{NewAliasMinimal}{} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 143 | Create a minimal alias pointing to this file. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 144 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 145 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 146 | \begin{methoddesc}[FSSpec]{GetCreatorType}{} |
| 147 | Return the 4-character creator and type of the file. |
| 148 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 149 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 150 | \begin{methoddesc}[FSSpec]{SetCreatorType}{creator, type} |
| 151 | Set the 4-character creator and type of the file. |
| 152 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 153 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 154 | \begin{methoddesc}[FSSpec]{GetFInfo}{} |
| 155 | Return a \pytype{FInfo} object describing the finder info for the file. |
| 156 | \end{methoddesc} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 157 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 158 | \begin{methoddesc}[FSSpec]{SetFInfo}{finfo} |
| 159 | Set the finder info for the file to the values given as \var{finfo} |
| 160 | (an \pytype{FInfo} object). |
| 161 | \end{methoddesc} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 162 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 163 | \begin{methoddesc}[FSSpec]{GetDates}{} |
Guido van Rossum | 7e42cab | 1996-10-15 14:37:31 +0000 | [diff] [blame] | 164 | Return a tuple with three floating point values representing the |
| 165 | creation date, modification date and backup date of the file. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 166 | \end{methoddesc} |
Guido van Rossum | 7e42cab | 1996-10-15 14:37:31 +0000 | [diff] [blame] | 167 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 168 | \begin{methoddesc}[FSSpec]{SetDates}{crdate, moddate, backupdate} |
Guido van Rossum | 7e42cab | 1996-10-15 14:37:31 +0000 | [diff] [blame] | 169 | Set the creation, modification and backup date of the file. The values |
| 170 | are in the standard floating point format used for times throughout |
| 171 | Python. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 172 | \end{methoddesc} |
Guido van Rossum | 7e42cab | 1996-10-15 14:37:31 +0000 | [diff] [blame] | 173 | |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 174 | |
Fred Drake | f6863c1 | 1999-03-02 16:37:17 +0000 | [diff] [blame] | 175 | \subsection{Alias Objects \label{alias-objects}} |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 176 | |
| 177 | \begin{memberdesc}[Alias]{data} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 178 | The raw data for the Alias record, suitable for storing in a resource |
| 179 | or transmitting to other programs. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 180 | \end{memberdesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 181 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 182 | \begin{methoddesc}[Alias]{Resolve}{\optional{file}} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 183 | Resolve the alias. If the alias was created as a relative alias you |
Guido van Rossum | 6bb1adc | 1995-03-13 10:03:32 +0000 | [diff] [blame] | 184 | should pass the file relative to which it is. Return the FSSpec for |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 185 | the file pointed to and a flag indicating whether the \pytype{Alias} object |
Guido van Rossum | e229d86 | 1997-08-18 15:14:26 +0000 | [diff] [blame] | 186 | itself was modified during the search process. If the file does |
| 187 | not exist but the path leading up to it does exist a valid fsspec |
| 188 | is returned. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 189 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 190 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 191 | \begin{methoddesc}[Alias]{GetInfo}{num} |
| 192 | An interface to the \C{} routine \cfunction{GetAliasInfo()}. |
| 193 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 194 | |
Fred Drake | 4c6d21a | 2000-09-22 15:46:35 +0000 | [diff] [blame] | 195 | \begin{methoddesc}[Alias]{Update}{file\optional{, file2}} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 196 | Update the alias to point to the \var{file} given. If \var{file2} is |
| 197 | present a relative alias will be created. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 198 | \end{methoddesc} |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 199 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 200 | Note that it is currently not possible to directly manipulate a |
| 201 | resource as an \pytype{Alias} object. Hence, after calling |
| 202 | \method{Update()} or after \method{Resolve()} indicates that the alias |
| 203 | has changed the Python program is responsible for getting the |
Fred Drake | df0e3fc | 1998-04-07 20:04:27 +0000 | [diff] [blame] | 204 | \member{data} value from the \pytype{Alias} object and modifying the |
| 205 | resource. |
Jack Jansen | e4be9be | 1995-02-28 15:46:09 +0000 | [diff] [blame] | 206 | |
| 207 | |
Fred Drake | f6863c1 | 1999-03-02 16:37:17 +0000 | [diff] [blame] | 208 | \subsection{FInfo Objects \label{finfo-objects}} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 209 | |
Fred Drake | e15eb35 | 1999-11-10 16:13:25 +0000 | [diff] [blame] | 210 | See \citetitle{Inside Macintosh: Files} for a complete description of what |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 211 | the various fields mean. |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 212 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 213 | \begin{memberdesc}[FInfo]{Creator} |
| 214 | The 4-character creator code of the file. |
| 215 | \end{memberdesc} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 216 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 217 | \begin{memberdesc}[FInfo]{Type} |
| 218 | The 4-character type code of the file. |
| 219 | \end{memberdesc} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 220 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 221 | \begin{memberdesc}[FInfo]{Flags} |
Jack Jansen | da53c52 | 1995-10-10 14:43:20 +0000 | [diff] [blame] | 222 | The finder flags for the file as 16-bit integer. The bit values in |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 223 | \var{Flags} are defined in standard module \module{MACFS}. |
| 224 | \end{memberdesc} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 225 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 226 | \begin{memberdesc}[FInfo]{Location} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 227 | A Point giving the position of the file's icon in its folder. |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 228 | \end{memberdesc} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 229 | |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 230 | \begin{memberdesc}[FInfo]{Fldr} |
Jack Jansen | e164bd8 | 1995-08-10 11:53:14 +0000 | [diff] [blame] | 231 | The folder the file is in (as an integer). |
Fred Drake | 41788db | 1998-04-04 06:23:02 +0000 | [diff] [blame] | 232 | \end{memberdesc} |