Help with a script error message

I have been using a nice third-party script to turn the digitizer tablet on a ModBook off and on. The script to turn the pen function off is:

tell application "Finder"
activate
display dialog "Turn off pen and sleep?"
end tell
tell application "System Events"
set PTD to (unix id of process "PenTabletDriver") as text
do shell script "kill -STOP " & quoted form of (PTD)
end tell

It is compiled and has been running very nicely from the Scripts pull down menu. However, this morning, after I started up the ModBook (running 10.5.8), I got the following AppleScript error:

Can’t make «class idux» of «class prcs» “PenTabletDriver” of application “System Events” into type Unicode text

Can anyone explain what is happening and, more importantly, how I correct it and get back to how this was running two day ago?

Model: Axiotron Modbook
AppleScript: 2.2.1
Browser: Firefox 16.0
Operating System: Mac OS X (10.5)

process “PenTabletDriver” does not exist and the unix id of a non existent process cannot be converted to text :slight_smile:

Reboot, I guess. Or use the script that turns it on.

Thanks - somehow the Pen Tablet Driver had been removed. Re-installing it seems to have solved the problem.

Many thanks again.