mitchcohen Posted June 3, 2007 Report Share Posted June 3, 2007 I know the Event Handler is ancient and essentially unsupported. But I'm trying to make it work with a custom script. But I can't even get the basics to work. I have the following script: --- display dialog "This works" --a test to confirm the handler launches on scriptStart given scriptName:theScript, startDate:theDate display dialog "This doesn't work" end scriptStart --- Saved as an application "Retrospect Event Handler" in the right folder. I've removed the .app extension. The handler app launches when it's supposed to; I see the icon in the dock, and the first line of the script causes the "This works" dialog to pop up. But when I start a script, the scriptStart event isn't triggered; that dialog never appears. I have other commands in scriptStart which also don't work. Obviously I want to do more than display dialogs, but if I can't catch the events there's little else I can do. I've had the same lack of success with serverStart and retrospectQuit. This is on a MacPro, OS X Server 10.4.7, and Retrospect Server 6.1.126. Any suggestions appreciated. Thanks. Link to comment Share on other sites More sharing options...
alex_schenkman Posted June 18, 2007 Report Share Posted June 18, 2007 Copying from the example worked for me. Thanks for the tip on removing the .app extension, =) on scriptStart given scriptName:theScript, startDate:theDate activate set dialogResult to display dialog ¬ "scriptStart:" & return & return & "Retrospect script “" & theScript & "” is starting on " & theDate ¬ buttons {"Skip", "OK"} default button "OK" return button returned of dialogResult is "OK" end scriptStart Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.