I’m trying to write a simple applescript that can interact with the delicious2safari user interface. The current distribution of delicious2safari does not automatically sync your delicious bookmarks with Safari, like the delicious add-on for Firefox does. If you want to keep your bookmarks on Safari up-to-date, you have to run delicious2safari each time you change your delicious bookmarks. I want automate the process of interacting with the application so I can set up a schedule in iCal to handle it for me.
Here’s what I have:
launch application "delicious2safari"
tell application "System Events"
tell window "delicious2safari"
click button "Get my bookmarks!"
end tell
end tell
I run it, and System Events gets this error: “NSReceiverEvaluationScriptError: 4” which I understand means that it probably can’t even find the button “Get my bookmarks!”
Any suggestions?
Model: MacBook
AppleScript: 1.10.7
Browser: Firefox 2.0.0.11
Operating System: Mac OS X (10.4)