sirskitzo Posted February 14, 2018 Share Posted February 14, 2018 (edited) 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, 2018 by sirskitzo Quote Link to comment Share on other sites More sharing options...
Lemons Posted February 14, 2018 Share Posted February 14, 2018 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() 2 Quote Link to comment Share on other sites More sharing options...
Juggles Posted February 14, 2018 Share Posted February 14, 2018 Have to go through Data folder 1 Quote Link to comment Share on other sites More sharing options...
Alek Posted February 14, 2018 Share Posted February 14, 2018 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(). 1 Quote Link to comment Share on other sites More sharing options...
sirskitzo Posted February 14, 2018 Author Share Posted February 14, 2018 Alright, I understand. Are there any alternative ways to add it to the scripts folder safely? Quote Link to comment Share on other sites More sharing options...
Alek Posted February 15, 2018 Share Posted February 15, 2018 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? Quote Link to comment Share on other sites More sharing options...
sirskitzo Posted February 15, 2018 Author Share Posted February 15, 2018 (edited) 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, 2018 by sirskitzo Quote Link to comment Share on other sites More sharing options...
Lemons Posted February 15, 2018 Share Posted February 15, 2018 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/ 1 Quote Link to comment Share on other sites More sharing options...
sirskitzo Posted February 15, 2018 Author Share Posted February 15, 2018 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! Quote Link to comment Share on other sites More sharing options...