Changes between Version 14 and Version 15 of Help/Plugin/Scripting


Ignore:
Timestamp:
2016-04-27T23:35:45+02:00 (10 years ago)
Author:
openstreetmap.org-user-d1g
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help/Plugin/Scripting

    v14 v15  
    1717The [https://gubaer.github.io/josm-scripting-plugin scripting plugin] allows you to run scripts within JOSM.
    1818
     19You can run scripts from console or from files. If you pick files, then latest scripts will appear in "scripting" menu. See also
     20
    1921== How to write your own scripts ==
    2022
     23Please carefully inspect both resources:
     24* http://gubaer.github.io/josm-scripting-plugin/doc/documentation.html - follow all links here
     25* http://gubaer.github.io/josm-scripting-plugin/apidoc/modules/josm.html - scan what all classes, modules, mixins and namespaces can do.
    2126
     27To write functional script than "josm.alert(josm.menu.length);" you should combine examples from multiple pages, for example:
     28* [http://gubaer.github.io/josm-scripting-plugin/apidoc/classes/JSAction.html Create an action using "JSAction" class], then [http://gubaer.github.io/josm-scripting-plugin/doc/menu.html attach it to menu as was show at "Extending the JOSM menu and the JOSM toolbar" page]
    2229
    2330== Implementations details ==
     
    4451 Run once per JOSM session.
    4552
     53== Advanced settings ==
     54
     55Search for {{{scripting.}}} substring.
     56
    4657== See also ==
    4758* [wiki:/Plugins Plugin Help]