BBEdit Rename Active Document Script The script itself has most of the documentation. Just know that there are two scripts here: A plain-text version (.applescript) A compiled version (.scpt)