molokaiboy
Usenet Archive
- Joined
- Jul 15, 2003
- Messages
- 83
- Reaction score
- 0
I am trying to create a lisp that will load only if the "poweruser" user is trying to access a command. If all other users try to access the command, it will show a msg box and not load the rest of the code. Here is what I have:
(if (= (strcase (getvar "loginname")) "poweruser")
(if (not (poweruser (load "msg3") ""))
(command msg3)
add error trap here
))
Can anyone give me some tips as to how I would finish it.
TIA
Collin
(if (= (strcase (getvar "loginname")) "poweruser")
(if (not (poweruser (load "msg3") ""))
(command msg3)
add error trap here
))
Can anyone give me some tips as to how I would finish it.
TIA
Collin