On Sat, Sep 14, 2013 at 09:36:53AM +0100, Gerald Holdsworth wrote:
>    Hi all,
>    Is there a way to specify the translation of Windows/Mac files to RISC OS
>    filetypes in RPCemu?

No, mainly as things end up as broken as the red squirrel tree you mention 
below.

>    I have a RISC OS 4.39 HostFS disc image from RedSquirrel, with tons of
>    applications in it, and want to open these in RPCemu...but one can't just
>    drag the entire disc image into an RPCemu HostFS directory, as both treat
>    filetypes differently. At the moment, my only solution would be to try and
>    fire up RedSquirrel and ZIP each and every application (or folders of
>    them), then bring these across to RPCemu. However, if there is someway of
>    telling RPCemu that an '.oby' file is a RISC OS Obey file, for example, it
>    would make life so much easier...IIRC, RS has all these definitions in a
>    text lookup file.

Restoring a red squirrel tree for use in rpcemu involves renaming the 
files, I have used cygwin (for a unix like bash shell under windows) and 
the following commands to change all the filenames within the hostfs 
tree. (note, don't run this on your whole harddisc, else a windows 
reinstall would probably be needed ...)

find . -depth -type f -name "*.txt" -exec sh -c 'mv "$1" "${1%.txt},fff"' _ {} 
\;
find . -depth -type f -name "*.dat" -exec sh -c 'mv "$1" "${1%.dat},ffd"' _ {} 
\;
find . -depth -type f -name "*.htm" -exec sh -c 'mv "$1" "${1%.htm},faf"' _ {} 
\;
find . -depth -type f -name "*.arc" -exec sh -c 'mv "$1" "${1%.arc},ddc"' _ {} 
\;
find . -depth -type f -name "*.png" -exec sh -c 'mv "$1" "${1%.png},b60"' _ {} 
\;

find . -depth -type f -name "*.jpg" -exec sh -c 'mv "$1" "${1%.jpg},c85"' _ {} 
\; && \
find . -depth -type f -name "*.jpeg" -exec sh -c 'mv "$1" "${1%.jpeg},c85"' _ 
{} \; && \
find . -depth -type f -name "*.gif" -exec sh -c 'mv "$1" "${1%.gif},695"' _ {} 
\; && \
find . -depth -type f -name "*.html" -exec sh -c 'mv "$1" "${1%.html},faf"' _ 
{} \;

Peter

-- 
Peter Howkins
[email protected]

_______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Reply via email to