On Thu, Apr 14, 2011 at 5:23 PM, Rob McBroom <[email protected]> wrote:
> On the one hand, it might be safer to get a list of bookmarks via 
> AppleScript, so if the internal format ever changes, it still works. On the 
> other hand, that only works if Chrome is running, which is not ideal. 
> Personally, I think it’s worth the risk to go to the JSON file directly.

Don't use applescript. You're right, the application has to be open
(or will be opened), which is annoying. For a browser that wouldn't be
that much of a problem, since that's running all the time anyway. :-)
But it's also so damn slow. Large lists of things (like browser
history) take forever to load. It's really really annoying.

I just went through the same thing with the Apple Mail plugin. I
thought "sure, the applescript dictionary (API) should be stable and
does all the things I need". But the whole thing was so slow, I had to
reimplement the whole thing using different methods.

The only thing applescript is ok for are actions. You only have very
few of them and kind of expect them to take a little time.

Reply via email to