Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1123

Re: System variables cleanup

From "David Holden" <SpamBin@apdl.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: System variables cleanup
Date 2011-12-01 08:20 +0000
Organization APDL
Message-ID <9jorlpF4emU1@mid.individual.net> (permalink)
References <a901803852.beeb@ron1954.woosh.co.nz> <63e5e63852.Matthew@sinenomine.freeserve.co.uk> <7043ef3852.beeb@ron1954.woosh.co.nz> <03db703a52.Matthew@sinenomine.freeserve.co.uk>

Show all headers | View raw


On 30-Nov-2011, Matthew Phillips <spam2011m@yahoo.co.uk> wrote:

> The aspect I was referring to was whether an application, when being
> booted or run, should overwrite an existing Alias$@RunType setting or
> leave it in place.  You will find variation from one application to
> another on this.
>
> That was the only aspect I was talking to.  I quite agree with what Alan
> says  about how RISC OS is supposed to work: booting occurring when
> the containing directory is opened, and Alias$@RunType persisting after
> the application is quit.

As  general rule the !Boot file shouldn't replace a pre-existing RunType
setting as it would be assumed the user is intelligent enough to make sure
the program he prefers to handle that filetype is the one first 'seen' by
the filer or by setting the appropriate 'look at' in !Boot  It would not
really be appropriate for a program to usurp this just because the user had
inadvertently opened a directory containing that program.

However it's not necessarily inappropriate for the !Run file to set the
RunType and/or LoadType, replacing any previous settings The assumption here
is that if you've deliberately run a particular program then you want that
program (or that instance of it) to claim the filetype. That make is easy to
switch between programs. Even a non-techie user would be able to understand
that the last program he ran would be the one to claim the filetype.

However this action (and I suggest only this action) *is* a point of debate
and depends very much on the type of file. For example, with HMTL and text I
have a preferred text editor and a preferred browser for local files. I may
want to look at a particular file in a different editor/browser for some
reason but I don't want the second one I've run to take over the RunType or
LoadType for that file, I just want it to load a particular file.

So, the only answer would seem to be that nothing (apart, perhaps, from
always setting RunType in the boot file) is always 'right' or always
'wrong'. In particular the actions for universal and 'owned' fileypes may
need to be different. Perhaps the most sensible approach would be to put the
necessary lines in !Run and then suggest the user should put a '|' at the
start of these if he/she doesn't want this action?

-- 
David Holden  -  APDL  -  <http://www.apdl.co.uk>

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-27 16:11 +1300
  Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-27 05:13 +0100
    Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-27 18:29 +1300
  Re: System variables cleanup Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-11-27 21:55 +0000
    Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-28 12:27 +1300
      Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-29 06:33 +0100
        Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-30 00:29 +1300
          Re: System variables cleanup Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-11-29 13:14 +0000
            Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-30 11:50 +1300
              Re: System variables cleanup Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-11-29 23:22 +0000
                Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-11-30 13:19 +1300
                Re: System variables cleanup Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-11-30 21:41 +0000
              Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-30 08:33 +0100
              Re: System variables cleanup Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-11-30 21:38 +0000
                Re: System variables cleanup "David Holden" <SpamBin@apdl.co.uk> - 2011-12-01 08:20 +0000
              Re: System variables cleanup Vince M Hudd <vinceh@softrock.co.uk> - 2011-12-01 16:00 +0000
                Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-02 08:38 +0100
                Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-12-03 12:05 +1300
                Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-03 06:31 +0100
                Re: System variables cleanup Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-12-03 10:02 +0000
                Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-12-04 11:39 +1300
          Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-30 08:20 +0100
            Re: System variables cleanup Ron <beeb@woosh.co.nz> - 2011-12-01 10:22 +1300
            Re: System variables cleanup Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-11-30 23:59 +0000
              Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-01 07:21 +0100
        Re: System variables cleanup jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-12-01 14:15 +0000
          Re: System variables cleanup Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-12-02 08:35 +0100
  Re: System variables cleanup druck <news@druck.org.uk> - 2011-11-27 22:47 +0000
    Re: System variables cleanup druck <news@druck.org.uk> - 2011-11-30 20:19 +0000

csiph-web