» Home

  » Plugins

      » Mime

            » Supported Directives

Brass Plugins: Mime

 

Supported Directives: Shell - Go To Location

This directive instructs the current shell object to immediately navigate to the specified location.

The format of the directive is:

[ShellLocationTo(target)]

 

The only parameter is the location to go to. This can be a website (for example, http://www.amazingbrass.co.uk) or a local folder location (for example, C:\Windows). No quotes around the target are needed.

Windows Explorer and Internet Explorer are the only applications capable of responding to this gesture. This is not as restricted as it may seem - most file browsing windows and web browsing windows are using the Microsoft Explorer controls. Therefore wherever you see a file browser or web page loaded you can try this directive.

Some examples of where this directive works:

  • Windows Explorer windows
  • My Computer, Network Neighbourhood, My Network Places etc
  • Internet Explorer
  • Microsoft HTML Help Reader (.CHM file reader)
  • File Open and File Save dialogs

 

Because most 3rd party applications reuse the Microsoft web browser controls, this directive will work in their windows too.

 

Examples

Change the current location of an Explorer window to the C:\Windows folder.

[ShellLocationTo(C:\Windows)]

 

Browse to the Brass website:

[ShellLocationTo(http://www.amazingbrass.co.uk)]

 

 

Technical Notes

The major difference between this directive and the [Run()] directive is that no new window is opened. Using the [Run()] directive to open the C:\Windows folder with Explorer requires that a new Explorer window is opened. Using this ShellLocationTo() directive to do the same thing causes the current Explorer window to change location - no new window is required.

The simplest way to understand this is to test it. Mime comes with a custom user action for Explorer called "Go To C:\". The directive is as follows:

[ShellLocationTo(C:\)]

 

Assign a gesture to this action, then open an Explorer window (Start - Run - Explorer) and make the gesture. The current folder changes to C:\ without opening a new Explorer window.

The same principle operates for websites in Internet Explorer.