Working With Files

Learn about the basics of working with files in WebScripter.

Topics

14.0 Creating Files

There are a few ways of creating files in WebScripter depending on some factors. Note that if tabbed editing is enabled files will be opened in a new tab, otherwise in a new window.

In the File menu there are 3 items which relate to creating files:

  • New. The basic New command will prompt you to create a new file on disk before opening the file. If you are working in a project then the project new file dialog will open.
  • New Empty File. Without creating a file on disk an untitled document will be opened. Note that usually WebScripter sets the syntax mode based on the documents extension, which an empty file does not have. Read here to learn how to set the syntax mode manually. Furthermore, you won't be able to execute the file until it is saved to disk.
  • New Window. If you are working with tabs and want to create a new empty window use this command.

14.1 Templates

If you are creating files from within a project you can choose to use a template for the files contents.

Project Templates

Each project can have it's own list of templates for formatting common files. Inside the project folder is a folder named Templates which if you put files into they will appear in the template menu.

Changing Application Templates

You can edit and manage the application templates by locating the folder inside the application bundle.

WebScripter.app/Contents/Resources/Templates/New File


Choosing the template for a new file.