Joiner汽车状态苹果手机桌面小组件 第5张插图

视频教程

复制下面代码

打开Scriptable

点击上面按钮后,在 Scriptable 应用点击 ,粘贴,运行 ▶️

const alert = new Alert();alert.title = '大众集团 iOS 桌面挂件下载器';alert.message = '根据您的对应车企进行下载对应的脚本';const menuList = [{name: ['FVW-Audi-Joiner.js'], text: '一汽奥迪'}, {name: ['FVW-Joiner.js'], text: '一汽大众'}, {name: ['SVW-Joiner.js'], text: '上汽大众'}];menuList.forEach(item => {  alert.addAction(item.text);});const menuId = await alert.presentSheet();const obj = menuList[menuId];const FILE_MGR = FileManager[module.filename.includes('Documents/iCloud~') ? 'iCloud' : 'local']();await Promise.all(obj.name.map(async js => {  const REQ = new Request(`https://gitee.com/JaxsonWang/scriptable-audi/raw/master/build/${encodeURIComponent(js)}`);  const RES = await REQ.load();  FILE_MGR.write(FILE_MGR.joinPath(FILE_MGR.documentsDirectory(), js), RES);}));FILE_MGR.remove(module.filename);Safari.open('scriptable:///run?scriptName='+encodeURIComponent(obj.name[0]));