File Actions
File actions allow you to perform various tasks with the currently selected file(s) in a project. You can access them in the File ⟩ Actions menu, the menu in the PROJECT FILES header, or by right clicking on any file.
The specific file actions available will depend on what you have selected and what plug-ins are installed, but by default you will typically have access to the following built-in actions:
- Open With...: this allows you to open the file in a third party program. Which program is used by default, along with which programs are shown in the menu, depends on the file associations you have setup in the Finder.
- Publish To...: use this option to immediately upload your file to one of your project's servers.
- New File: if you have a directory selected, create a new file within that directory. If a file is selected, create a new file in the same directory.
- New Folder: identical to New File, but creates a folder.
- Move to Trash...: move the selected items to the Trash in the Finder.
- Rename: rename the selected file or folder.
- Duplicate: duplicate the selected file(s) or folder(s).
- Show in Finder: reveal the selected file or folder in the Finder.
- Show in Project Files: for Workspace items only; reveal the selected file in the PROJECT FILES.
- Open in Terminal / Open Parent in Terminal: if you have a folder selected, a new Terminal.app window will open with the current working directory set to the selected folder. If a file is selected, the Terminal.app window will use the file's parent folder.
- Execute in Terminal: only available for files; a new Terminal.app window will open and attempt to execute the file as a shell script.
Although it may vary per file action, if you select multiple files and choose an action such as New File or Open Parent in Terminal, the nearest shared parent folder will be used as the root folder for the action.
For more file actions, check out third party plug-ins.