Important: The information in this document is obsolete and should not be used for new development.
StandardPutFile
You can use theStandardPutFileprocedure to display the default Save dialog box when the user is saving a file.
PROCEDURE StandardPutFile (prompt: Str255; defaultName: Str255; VAR reply: StandardFileReply);
prompt- The prompt message to be displayed over the text field.
defaultName
The initial name of the file.reply- The reply record, which
StandardPutFilefills in before returning.DESCRIPTION
TheStandardPutFileprocedure presents a dialog box through which the user specifies the name and location of a file to be written to. The dialog box is centered on the screen. While the dialog box is active,StandardPutFilegets and handles events until the user completes the interaction, either by selecting a name and authorizing the save or by canceling the save. TheStandardPutFileprocedure returns the user's input in a record of typeStandardFileReply.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forStandardPutFileare
Trap macro Selector _Pack3 $0005 SPECIAL CONSIDERATIONS
TheStandardPutFileprocedure is not available in all versions of system software. Use theGestaltfunction to determine whetherStandardPutFileis available before calling it.Because
StandardPutFilemay move memory, you should not call it at interrupt time.