|
<< Index >> |
FutureBasic |
SavePanel | statement / function | |
|
url = savepanel tag, msg, fileTypes, nameFldString, prompt, dirURL
Parameter |
Description |
tag | A number (1 through 1000000) that you assign when you create the savepanel and that you refer to when altering the panel. A negative value builds the panel invisibly and doesn't run it until the statement is executed with a positive value. Note: Once the panel has been dismissed, its tag value is no longer valid. |
msg | The message text displayed in the save panel. |
fileTypes | The allowed file types/content types. This can be one of the following: • Semicolon-delimited string of file extensions and/or UTIs
The value of this property specifies the file types the user can save the file as.
The default value of this property is nil, which indicates that any file type can be used.• An array of file extensions and/or UTIs • A UTType • An array of UTTypes Note: old four character OSTypes are not supported. |
nameFldString | The user-editable filename currently shown in the name field. |
prompt | The prompt of the default button. |
dirURL | The URL of the initial directory shown when the panel is displayed. |
sheetFlag | A boolean value to indicate if the panel will be a sheet attached to the current output window. Note A sheet panel does not return a value from the savepanel statement, but instead posts an |
SavePanelSetAccessoryView
SavePanelSetTitle
SavePanelSetNameFieldLabel
SavePanelSetCanCreateDirectories
SavePanelSetShowsHiddenFiles
SavePanelSetShowsTagField
SavePanelSetTagNames
SavePanelSetExtensionHidden
SavePanelSetCanSelectHiddenExtension
SavePanelSetAllowsOtherFileTypes
SavePanelSetTreatsFilePackagesAsDirectories
SavePanelSetShowsContentTypes // macOS 15.0+
SavePanelSetCurrentContentType // macOS 15.0+
See also
openpanel
Apple documentation
NSSavePanel