Set Filer Type - Application
Geoff (7740) 68 posts |
Is there an application or magazine type in listing, so that you can set the file type of any file. Because I’m a macOS user, if you click on a zip file to download, once the download is complete it’s automatically saved and placed into a folder, when you transfer this to your hostess folder then open in Risc OS, the file types are not recognised. When Using macOS and you do a secondary click then from the menu you select to save as a zip file, then place this zip file in your hostess folder then Risc OS will recognise all files. Simply doing a straight one click is a much quicker process of downloading folders than doing a second click then selecting from the menu the file zip file type when using macOS. So using a Set File Type application maybe a method I should be using. I do have a Risc OS micro SD card that was in my Raspberry Pi which I no longer have, but can’t see how it would be possible to transfer some files from it to RPCEmu hostess folder. Thank you. |
Martin Avison (27) 1494 posts |
I would strongly recommend that any zip files for RISC OS are opened on RISC OS not on MacOS. Setting the filetype on RISC OS is trivial (Menu over file → File → Set Type) but only if you know what the filetype should be. There is also a *SetType command. But it is difficult if there are a lot of files with different types! Perhaps easiest to do the download on RISC OS in the first place? |
Steve Pampling (1551) 8170 posts |
Geoff, I’m not totally clear what state the files are when you transfer them but if they are all in a zip file when you download then the single zip archive file can be opened by simply dragging it to the SparkFS icon on the iconbar. If you haven’t already made sure that SparkFS is loaded then run it from the utilities folder and then drag the zip file in. RO filetypes of the files inside the archive are preserved and the SparkFS utility will not only open the archive when you drag the archive there, it will also set the filetype of the archive so that it can be opened with a double-click in future (assuming SparkFS is running) As Martin mentioned MacOS doesn’t set file types in the same way as RO so downloading on a Mac will destroy the filetype of any RO file. So, download direct to the RO machine. |
Geoff (7740) 68 posts |
Martin, Ok, is RPCEmu easy to setup to connect to the www, if so how do you do this. |
David Pitt (3386) 1248 posts |
On my Mac Safari’s ‘Open “safe” files after downloading’ Preference is unticked. In RPCEmu’s hostfs there is a symlink to the Mac’s Download folder. The filetypes are lost through the symlink so zips appear filetyped as text. Obligingly SparksFS in not concerned about input filetypes, just drop the ‘text’ zip file onto SparkFS’s iconbar icon, the zip filetype will be restored and the internal zip files will all be of the correct filetype. imac@iMacPro SymLinks % ln -s /Users/imac/Downloads /Users/imac/RPCEmu/RPCEmu529/hostfs/SymLinks/Downloads (Setting the Mac’s Downloads folder as an NFS share allows that folder to be seen by real RISC OS hardware with Sunfish or Omni.) |
David Pitt (3386) 1248 posts |
It’s very easy. The Mac NAT setup is the same as for Linux |
Geoff (7740) 68 posts |
David, That’s perfect, just the answer that I have been looking for. I can always change this back if I need to. To setup the symbolic link on macOS, do I need to do this through the terminal window. |
David Pitt (3386) 1248 posts |
Yes. That is how I do it. |
Geoff (7740) 68 posts |
David, Thank you. How are you able to open .adf and .apd files when using RPCEmu. |
David Pitt (3386) 1248 posts |
I don’t know about that, I have never needed to try. A search of the forum found this. |
Steffen Huber (91) 1953 posts |
APD files are only supported by Arculator IIRC. ADFs can be “mounted” as a floppy within RPCEmus main menu (“Disc” → “Floppy” → “Load drive 0”) and then access it from RISC OS’ floppy icon. Or you can go via ADFFS (and HostFS) which should handle both formats. Never tried it under RPCEmu to be honest…strange… |
Chris Mahoney (1684) 2165 posts |
As noted, if you leave that ticked then Safari will automatically unzip the file. However, the original zip file will be moved to the Bin and can be recovered from there if needed. |
Raik (463) 2061 posts |
Around this, from my private “playground” I temporally use with RPCEmu… |