Media_CreateFolder ( enclosingFolder ; folderName )
Create Folder creates a new folder (directory) in the location specified.
Parameter | Description |
---|---|
Result | An optional target field to receive any error. Will be left empty when there is no error. |
enclosingFolder | Path to the folder inside which to create the new folder. |
folderName | The name of the new folder. |
Examples
To create a folder named “Pictures” in the default folder:
Set Field [ MyTable::Response ;
Media_CreateFolder ( “” ; “Pictures” ) ]
To create a folder named “Backup” in the Temporary folder:
Set Field [ MyTable::Response ;
Media_CreateFolder ( “.T” ; “Backup” ) ]
To create a folder named “New User Folder” in the Macintosh Users directory and store result into the MyTable::Response
field:
Set Field [ MyTable::Response ;
Media_CreateFolder (
“Macintosh HD/Users/” ;
“New User Folder” ) ]