[ANSWERED/REQUEST LOGGED] Moving/Specifying JavascriptLibs Folder
-
Is there a way to move or change the location of the JavascriptLibs? The default is not in a 'convenient' path and I'd like to specify a folder that would be included in my normal backups that I perform on my projects.
-
No, the new JS library path can not be changed. The path on Window is: C:\Program Files\Common Files\TroikaTronix\JavascriptLibs
As you can see this is in the Common Troikatronix folder, which is where a number of other Isadora-related files are located.
This is something we can consider for a future release. I will add this to our feature request database. -
As a workaround, you could consider some automatic mirroring software like Mirror Folders or AOMEI Backupper for PC.
I didn't find any kind of automatic app for this on macOS, but this command will create a synced JavascriptLibs folder in your documents folder.
rsync -va --delete "/Library/Application Support/TroikaTronix/JavascriptLibs/" ~/Documents/JavascriptLibs/
One nice way to automate this is to create an Automater script that runs at system startup
- Open Automator
- Choose to create a new document
- Choose the "Application" option
- From the list of possible actions, choose "Run Shell Script"
- In the "Run Shell Script" Item that appears on the right, paste the rsync code from above
- Save the Automator workflow to your Documents folder as "backup-javascript-libs.app"
- Quit Automator
- Go to System Preferences > Users & Groups > Login Items
- Click the "+" button and enter your password if necessary
- Select "backup-javascript-libs.app" from your documents folder and click Add
Now, every time you restart your computer, the JavascriptLibs is backed up to your Documents folder.
If you're comfortable with with a bit of low level stuff, you can go even further and schedule the rsync command to run periodically using cron. See this StackOverflow article for help on that.
Hope that helps,
Mark