admin管理员组

文章数量:1581071

基于chatgpt 开发 apple 脚本

看到的一篇博客,感觉很有意思,基于该博客进行了复现,现总结如下:

苹果手机上有备忘录软件,在这里面会记录大量日常总结或者安排,假如现在有个需求,想把备忘录里的内容导出来,一个一个地复制粘贴,显然在量比较大的时候是很浪费时间的。mac 和苹果手机的备忘录是互通的,在 mac 上可以基于 applescript 进行编程,那么我们可以通过编程来批量导出。

问题来了,难道我只是突发奇想,想导出备忘录,还要学一下 applescript 语法,查 api 手册吗?那成本也有点高。所以这时,chatgpt的优势就体现出来了。

Me: Write applescript to loop through all of my Apple Notes and output their contents

ChatGPT: Sure, here’s an AppleScript that will loop through all of your Apple Notes and output their contents:

tell application "Notes"
  set allNotes

本文标签: 脚本chatGPTApple