window.getFile

Syntax window.getFile (adr)

Params adr is the address of a window or its name.

Action Gets the file path to the specified window.

Returns The file path.

Examples window.getFile (@root) //path to Frontier.root

   » "Power HD:Applications:Frontier:Frontier.root"

window.getFile ("mainResponder.root") //path to a guest database

   » "Power HD:Applications:Frontier:Nirvana Server:apps:mainresponder.root"

window.getFile (@["Power HD:Applications:Frontier:Nirvana Server:www:news.root"]) //gdb path

   » "Power HD:Applications:Frontier:Nirvana Server:www:news.root"

window.getFile (table.getRootAddress (@mainResponder.background.everyMinute)) //gdb path

   » "Power HD:Applications:Frontier:Nirvana Server:apps:mainresponder.root"

Notes With databases, this verb works with the top-level address. With objects inside the database, this verb returns "". Given any database address adr, you can get the path to the database it includes this way: window.getFile (table.getRootAddress (adr)).

See Also Frontier.getFilePath

table.getRootAddress

Discuss