Launch javascript from a lockdown menu item

Solved
E
Erick
tscstores

Hello, i know that we can use something like the below to launch a script from the lockdown menu if we add it as a custom item
script:///scriptPath

is there a way we can do this with javascript files? i have a java script file that i can successfully send to my devices and get the intended result. it works like a charm, i want to be able to leverage this by adding it as lockdown item

2 years ago
Android Scripting
ANSWERS
MD
Matt Dermody Diamond Contributor
2 years ago

Solution
E
Erick
2 years ago

Much appreciated Matt! That worked i did not have the shebang on my script. You rock.

7
74HCT04
2 years ago

Yes, the shebang is required.

I wish the documentation would clarify where it and is not required, since MobiControl will complain if you use it where it is not to be used.

M
MNMOD@SOTI
2 years ago

Hi Erik,

I am glad that the issue is resolved. Thank you for marking the post as solution. If you require any more assistance, please feel free to let us know.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter