[Share] Backup Attachment(s) #347
thalient-ai
started this conversation in
Action Scripts
Replies: 1 comment
-
Thanks for your script. In Linux, this was not working correctly, as it was creating a file name that was
const newFilePath = `${folderPath}/${fileName}`; // Use Linux separator :-)
return path.replace(/\\/g, '\\\\'); // Ensure all backslashes are escaped by return path.replace(/\\/g, '/'); I think option 1. is simpler and cleaner. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
This script allows you to create a copy of your attachment files to a user-specified directory. You can select multiple items or an active collection, run the script and the script will prompt you to select a folder where your files will be copied.
This avoids having to search in or access each folder within Zotero's data directory when you want a copy of the attachment files.
Event
None
Operation
Script
Data
Anything else
No response
Beta Was this translation helpful? Give feedback.
All reactions