Loadwave filename problem

Hi, I am having a slight issue with loadwave. I am trying to load .itx files from a previous experiment for analysis, however some the names of the waves have been manually changed since they were created (in Finder). I am able to get the waves to load, but they show up in the data browser under their original name, not the name they were changed to. Is there a way around this?

-Thanks.

P.S. The names were originally changed because the filename was too long for some functions (e.g. loadwave), if there is a way around this, that would also be useful.

<br />
static function loadCELIVwave()<br />
    DFREF anlyzFolder=GetAnalyzeFolder()    <br />
    SVAR fileName = anlyzFolder:fileName<br />
    SVAR filepath = anlyzFolder:filepath<br />
<br />
    getFileFolderInfo/Q<br />
    filepath = S_path<br />
     filename = ParseFilePath(3, filePath,":",0,0)<br />
    loadwave /A=$filename/H/T/O filepath<br />
    wave analyzeWave<br />
    duplicate /O $filename, analyzeWave             // gives "expected wave name" error because the loaded wave is listed with it's original name instead of $filename <br />
    fromFilename(filename)<br />
    fromWave(analyzeWave)<br />
end<br />
The name of waves loaded from an Igor Text file is specified in the text file, not by the LoadWave /A flag. If you want to change the names you will have to edit the Igor Text file before loading it.

To learn about the Igor Text file format execute:
DisplayHelpTopic "Loading Igor Text Files"


Quote:
P.S. The names were originally changed because the filename was too long for some functions (e.g. loadwave), if there is a way around this, that would also be useful.


As of Igor Pro 6 file names can be up to 255 characters long but wave names are still limited to 31 characters. In an Igor Text file the file name has no bearing on the wave names which are specified in the file.