When you right click on any line on the "IDA View-A" screen, you will see the "Print File Offset" menu. When you click on this menu, the file offset will be printed to the output window screen.
Copy the "fileOffset.py" file to the "\plugins" folder in the location of the "ida.exe" file.