If you want to know the file path of the current script, choose "Set File to Working Directory" like you do, and just look in the Console. You'll see a statement like
setwd("~/my_dir")
Just copy that directly into your script.