## Save

This function is used to save modifications to files. When executing stepwise, you can choose to save all open files or only files which are currently selected. In Grouped execution mode, or when executing via a Load and Run statement, the options are ignored and only the single file being processed will be saved. Note that once files are saved you will have lost the ability to revert. While you are testing actions it is a good idea to leave the Save function out of the action.

When linked files are saved, this function will automatically tell iTunes to refresh its metadata. Depending on your Preferences - iTunes settings, some metadata such as ratings, play counts, etc. may automatically be exported to iTunes.

Yate typically only saves files when they have been modified. If no options are set, files will only be saved if modified. The following options are available:

Save files always
  Files are always saved regardless as to whether they have been modified. If you are doing a batch run to clean your tags you may want to always save your files to force a clean write of the tags. This will ensure the selected ID3 specification is used for mp3 files and will adjust any out-of-spec issues that have been identified in a file. Free space may or may not be reduced depending on the settings in Preferences - Audio.
Save mp3 files which have an ID3V1 tag
  When saving mp3 files, Yate by default eliminates ID3V1 tags. (ID3V1 tags can be written if specified in Preferences - Audio). Check this option if you want to eliminate this old tagging format even if the file has not been modified. Note that this option is implied by Save files always.
Remove free space if greater than the audio padding size
  Via Preferences - Audio - Remove free space you can force the removal of free space above a specified amount every time a file is saved. When this option is set, the Remove free space setting is ignored. This allows the action statement more granularity. When set and the only if the file is being saved option is not set, a file will always be saved if it has free space in excess of the current padding size. The excess space will be removed. If the only if the file is being saved option is set, the save will not be forced. ie. free space will only be removed if the file is saved for different reasons. Note that you can override the default padding amount by the Preferences statement.
Remove leading audio padding
  Some mp3 files have leading padding. This is extra space before the start of the audio stream. This is rarely placed in the file intentionally but may have been caused by how the audio was captured. Typically this extra data is benign. However, If you have files which are not playing correctly or which cannot be fingerprinted, removing the leading padding may fix the issue. We do not like messing with the audio stream. Only do this if for some reason you feel that the audio track is not behaving correctly.