Hi Patrick,
worth adding that if you wanted to change lots of paths in one go, you could do it with a macro. e.g. the following would change the relative path for all your spectra:
Python
- specPath = `/New/File/Path/`
- for spectrum in project.spectra:
- specFileName = spectrum.filePath.split(`/`)[-1]
- spectrum.filePath = specPath+specFileName
For Bruker data you would probably want to adjust the specFileName part so you don`t just keep the file name, but some of the data structure, too.
If you wanted to something for spectra individually (e.g. with copy/paste), the following might be useful:
Python
- sp=project.getByPid(`SP:hsqc`)
- sp.filePath=(`/New/File/Path/Filename)
Best wishes,
Vicky