Access to Safari bookmarks from another application

前端 未结 1 711
死守一世寂寞
死守一世寂寞 2021-02-02 00:28

I was wondering how we can access Safari bookmarks from another Cocoa application on Mac OS X, in a way that is safe and secure for the future.

As you may know, two mec

相关标签:
1条回答
  • 2021-02-02 01:15

    You can read out the bookmarks plist file even when running in a sandbox if you expressly ask the user for consent: Present an open panel pointing to the plist directory and store the security-scoped bookmark you receive from it. I did this and my app wasn't rejected for this (but for other things).

    0 讨论(0)
提交回复
热议问题