We will look at ways to automatically launch J scripts from file browser and web browser.

It is required that

Examples

Here are some examples of existing launchable scripts

Windows

Windows XP platform is the most straightforward. We only need to register a new file type right from the Explorer as shown below. (For a Windows Vista solution see Guides/Auto Open).

As a result, J scripts both from local disk and from the Internet are automatically launched on (double) click.

jas_win.png

Mac OS X

Mac requires a hack. As Finder clicked documents are not passed as command line arguments, but as Apple Event. So we need an AppleScript to get the argument.

Also it's not possible so far to launch from a web browser directly. But saving to Desktop and launching works. Share if you know how to improve this.

Now all .ijs files are associated with J and will start J if launchable. First time answer the dialog to open the J Launcher application.

jas_mac.png

Gotchas

Related Technologies

See Also


Contributed by OlegKobchenko

Guides/Auto Start (last edited 2008-12-08 10:45:52 by )