• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Set Security using scripts

New Here ,
Mar 12, 2016 Mar 12, 2016

Copy link to clipboard

Copied

Hi All,

         I am having a strange situation here, I want to change this property Pref_SCRIPTING_FILE_NETWORK_SECURITY Scripts buts its not allowing me. .

      Can any one suggest that how it can be set using script.

Regards,

Manish R Gurnaney

TOPICS
Scripting

Views

335

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 13, 2016 Mar 13, 2016

Copy link to clipboard

Copied

LATEST

The whole point of that preference is to stop scripts from having control over the file system unless the user specifically allows it. If scripts could give themselves permission it would make that preference redundant and effectively remove any security.

The best thing you can do is alert the user that they will need to set that pref. You can then use app.executeCommand(2359); to open the pref panel for them if you like.

Paul

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines