Nilesoft Shell Pro GitHub

APP


The namespace of the application contains file paths, version and some details.


app.directory

Returns the path of Shell directory.

Syntax

app.directory     // usage in section context
'@app.directory'  // usage inside quoted-string literals
app.cfg

Returns the path of the configuration file shell.nss (or shell.shl in older installations).

Syntax

app.cfg     // usage in section context
'@app.cfg'  // usage inside quoted-string literals
app.dll

Returns the path of shell.dll.

Syntax

app.dll     // usage in section context
'@app.dll'  // usage inside quoted-string literals
app.exe

Returns the path of shell.exe.

Syntax

app.exe     // usage in section context
'@app.exe'  // usage inside quoted-string literals
app.name

Returns application name.

Syntax

app.name     // usage in section context
'@app.name'  // usage inside quoted-string literals
app.version

Returns Shell version.

Syntax

app.version     // usage in section context
'@app.version'  // usage inside quoted-string literals
app.is64

Returns the architecture of the application.

Syntax

app.is64     // usage in section context
'@app.is64'  // usage inside quoted-string literals
app.about

Returns Shell information.

Syntax

app.about     // usage in section context
'@app.about'  // usage inside quoted-string literals
app.reload

Reload the configuration file.

Syntax

app.reload     // usage in section context
'@app.reload'  // usage inside quoted-string literals
app.set, app.get, app.exists, app.remove (app.delete)

Remember a piece of text between menus, even after a restart. Each value has a name of your choice.

  • app.set(name, value) stores the value as text. Returns true when it was saved.
  • app.get(name) returns the stored text, or nothing when there is none.
  • app.exists(name) returns true when a value with that name is stored.
  • app.remove(name) or app.delete(name) forgets the value. Returns true when one was removed.

The name can't be empty. Values are kept for the current Windows user, in the registry under HKEY_CURRENT_USER\Software\Nilesoft\Shell\Variables. Uninstalling Shell leaves them there.

Use app.set and app.remove in cmd, so they run when the item is clicked. In where, title or another property they would run every time the menu opens. app.get and app.exists are fine anywhere.

Syntax

item(title='Remember this folder' cmd=app.set('fav', sel.dir))
item(title='Go to ' + app.get('fav') where=app.exists('fav') cmd=app.get('fav'))
item(title='Forget the folder' where=app.exists('fav') cmd=app.remove('fav'))
app.unload

Unload the configuration file.

Syntax

app.unload     // usage in section context
'@app.unload'  // usage inside quoted-string literals