path of current file

Hello to all, I am in the need of knowing the path of the current applescript I am running! I know you can get the path to the desktop with the next code…

    set thePath to (path to desktop as text) 

Is there a way of getting the path to the current applescript in a similar way?

Hope someone can help!

Brian

got it…

path to me

so simple! hahaha

Hi,

the current script is me


set pathToMe to (path to me as text)