<%* const http = require("https"); const fs = require("fs");
isbn = await tp.system.prompt("ISBN");
const downloadFile = (url) => {
return new Promise((resolve) => {
const path = ${tp.file.path().split("/").slice(0,-1).join("/")}/attachments
;
const fileName = url.split("/").pop();