Author Topic: Read-Only Variable  (Read 1685 times)

0 Members and 1 Guest are viewing this topic.

AfricaAD

  • Guest
Read-Only Variable
« on: June 15, 2005, 01:41:40 PM »
Is there a variabe to automatically open files as read-only?

mohobrien

  • Guest
Read-Only Variable
« Reply #1 on: June 15, 2005, 02:50:40 PM »
You could change the file to read only then open it
(command ".shell" (strcat "attrib " file-name " +r"))
(command ".open" file-name "y")

then take the read only off
(command ".shell" (strcat "attrib " file-name "-r"))

CADaver

  • Guest
Read-Only Variable
« Reply #2 on: June 15, 2005, 02:53:01 PM »
Not that we could find earlier, but Mark Thomas, our fearless leader and expert shoveler, provided a lisp function that when combined with a profile to auto-load and run it, makes all subsequent openings read-only.

Look HERE

AfricaAD

  • Guest
Read-Only Variable
« Reply #3 on: June 15, 2005, 04:58:21 PM »
Just simply change the open command on a specific profile to load this lisp?

This is a handy tool, but could also be harmfull to the PM's.