Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 910a671

Browse files
committed
Added SetFolder
1 parent a29cc97 commit 910a671

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Doc/libmacfs.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ \section{Built-in Module \sectcode{macfs}}
6666
Return an FSSpec object and a success-indicator.
6767
\end{funcdesc}
6868

69+
\begin{funcdesc}{SetFolder}{\optional{fsspec}}
70+
Set the folder that is initially presented to the user when one of
71+
the file selection dialogs is presented. \var{Fsspec} should point to
72+
a file in the folder, not the folder itself (the file need not exist,
73+
though). If no argument is passed the folder will be set to the
74+
current directory, i.e. what \code{os.getcwd()} returns.
75+
76+
Note that starting with system 7.5 the user can change Standard File
77+
behaviour with the ``general controls'' controlpanel, thereby making
78+
this call inoperative.
79+
\end{funcdesc}
80+
6981
\begin{funcdesc}{FindFolder}{where\, which\, create}
7082
Locates one of the ``special'' folders that MacOS knows about, such as
7183
the trash or the Preferences folder. \var{Where} is the disk to

Doc/mac/libmacfs.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ \section{Built-in Module \sectcode{macfs}}
6666
Return an FSSpec object and a success-indicator.
6767
\end{funcdesc}
6868

69+
\begin{funcdesc}{SetFolder}{\optional{fsspec}}
70+
Set the folder that is initially presented to the user when one of
71+
the file selection dialogs is presented. \var{Fsspec} should point to
72+
a file in the folder, not the folder itself (the file need not exist,
73+
though). If no argument is passed the folder will be set to the
74+
current directory, i.e. what \code{os.getcwd()} returns.
75+
76+
Note that starting with system 7.5 the user can change Standard File
77+
behaviour with the ``general controls'' controlpanel, thereby making
78+
this call inoperative.
79+
\end{funcdesc}
80+
6981
\begin{funcdesc}{FindFolder}{where\, which\, create}
7082
Locates one of the ``special'' folders that MacOS knows about, such as
7183
the trash or the Preferences folder. \var{Where} is the disk to

0 commit comments

Comments
 (0)