If you want the script to execute before the recor...
# suitescript
r
If you want the script to execute before the record even loads, then User Event - Before Record Load is your best option.