any way for it to work this out without having to have the file open?