February 14, 20188 yr I keep getting permission blocked and denied to write while using a script that gets new jar updates of a script from Dropbox. How can I solve that? @Alek Edited February 14, 20188 yr by sirskitzo
February 14, 20188 yr 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()
February 14, 20188 yr 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().
February 14, 20188 yr Author Alright, I understand. Are there any alternative ways to add it to the scripts folder safely?
February 15, 20188 yr 1 minute ago, sirskitzo said: Alright, I understand. Are there any alternative ways to add it to the scripts folder safely? Well, what are you doing right now?
February 15, 20188 yr Author 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 February 15, 20188 yr by sirskitzo
February 15, 20188 yr 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/
February 15, 20188 yr Author 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!
Create an account or sign in to comment