Joiner汽车状态苹果手机桌面小组件

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

视频教程

复制下面代码

打开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]));
免责声明

本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!
如若转载,请注明出处:https://www.zxki.cn/2310.html

上一篇 2021-12-17 13:32
下一篇 2021-12-17 17:51

相关推荐

发表评论

为了防止灌水评论,登录后即可评论!

还没有评论,快来抢沙发吧!