I am at my wits’ end, again. I am trying to get a script–any script–to run as a triggered script. I followed all of the instructions in the help:
I have tried several of the example scripts, and none execute. As the most simple test that I can imagine, I saved this into my ~/Library/Application Support/DEVONthink Pro 2/ Scripts folder as “Test Triggered Script.scpt”:
tell application id "com.devon-technologies.thinkpro2" display alert "It works!" end tell
The script runs fine when invoked from the DTP Scripts menu.
I created a group named “Test Attached Script” and followed the instructions to attach the script to this group. The AppleScript graphic is displayed at the right of the group’s name. (See the attached screen shot.)
I change the focus from this group to another, and then back to the “Test Attached Script” group again. Nothing happens. I double-click the group to display it in a new window. Nothing happens. I change the view to any view other than a Split view, and back to a Split view. Nothing happens. I try attaching the script to a document in the group, and repeat all of these tests. Nothing happens. I remove the script from the group, leaving it attached to the document, and repeat all of these tests. Nothing happens. I delete the script completely, and the group, and quit DTP, start it again, and repeat all of these tests. Nothing happens. I uninstalled DTP (paying meticulous attention to the multiple steps required as documented in the help pdf), restarted, and and reinstalled DTP, and did the test again. Nothing happens. I’ve tried attaching the script both to groups and documents. Nothing happens. No script will execute when attached to a group or a document.
The information given in the help pdf says that the script is supposed to execute when the item is displayed. But nothing happens when I open the document or group with a script attached into a new window, or change the view.
I must be doing something stupid, or completely misunderstanding how this is supposed to work. Please, what am I doing wrong? Is there some hidden setting that I must enable? DTP 2.3 on 10.6.8. Many thanks.