Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| powerscript_extendscript_actions [2024/12/11 06:02] – [Boot Loader] o2wiki | powerscript_extendscript_actions [2024/12/11 06:04] (current) – [Examples] o2wiki | ||
|---|---|---|---|
| Line 354: | Line 354: | ||
| <sxh javascript; > | <sxh javascript; > | ||
| - | // | + | if(typeof _powerScriptCommand === ' |
| + | // get this filename | ||
| + | var thisFilename = $.fileName; | ||
| + | |||
| + | // escape shashes and ' | ||
| + | thisFilename = thisFilename.replace(/ | ||
| + | |||
| + | // Send JSON string with command " | ||
| + | var lib = new ExternalObject( " | ||
| + | var eventObj = new CSXSEvent(); | ||
| + | eventObj.type = " | ||
| + | eventObj.data = ' | ||
| + | eventObj.dispatch(); | ||
| + | |||
| + | // exit | ||
| + | return; | ||
| + | } | ||
| // Dimensions Script | // Dimensions Script | ||