Jump to content
sirskitzo

Permission blocked

Recommended Posts

You can only write/read from %userprofile%/OSBot/Data for windows, or ~/OSBot/Data for *nix systems. Sounds like your making an auto-updater, make it an external application if you want to save to ~/OSBot/Scripts.

Also if you want to get the user directory in a Script, use Script.getDirectoryData()

  • Like 2
Link to comment
Share on other sites

Please don't tag me. If it's a permission saying that something is blocked, then it's blocked. 

OSBot priorities:
1. Security
2. Stability
3. Features

You can ask in the scripting help section for alternatives that are compatible with OSBot.

Edit: May depend on how you are downloading the jar as well. As other's have suggested, also make sure you are downloading in getDirectoryData().

  • Like 1
Link to comment
Share on other sites

18 minutes ago, Alek said:

Well, what are you doing right now?

Someone is coding me a private script and I don't want the pain of downloading the new jar everytime he codes an update for me and then go and replace it with the old version. I just want it to be ready(up to date).

Edited by sirskitzo
Link to comment
Share on other sites

12 minutes ago, sirskitzo said:

Someone is coding me a private script and I don't want the pain of downloading the new jar everytime he codes an update for me and then go and replace it with the old version. I just want it to be ready(up to date).

If your using Dropbox, just make a link to the jar in the Dropbox folder. If it updates the link will point to the new version.

On windows: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/

On linux/mac: https://www.cyberciti.biz/faq/creating-soft-link-or-symbolic-link/

  • Like 1
Link to comment
Share on other sites

19 minutes ago, Lemons said:

If your using Dropbox, just make a link to the jar in the Dropbox folder. If it updates the link will point to the new version.

On windows: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/

On linux/mac: https://www.cyberciti.biz/faq/creating-soft-link-or-symbolic-link/

Thanks so much!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...