Poster | Thread |
Templario
 |  |
How add to MIME type of MorphOS the hwa extension Posted on 17-Dec-2015 13:07:52
| | [ #1 ] |
|
|
 |
Elite Member  |
Joined: 22-Jun-2004 Posts: 3672
From: Unknown | | |
|
| How add the hwa Hollywood applet file format to MIME type of MorphOS, to the applet format is load for the Hollywood Player directly as other cases. |
|
Status: Offline |
|
|
jPV
|  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 17-Dec-2015 14:34:28
| | [ #2 ] |
|
|
 |
Cult Member  |
Joined: 11-Apr-2005 Posts: 834
From: .fi | | |
|
| @Templario
It's a bit more complicated because Ambient file format recognition database doesn't have a pre-made entry for it, but I'd do it like this... not sure if official would be similar if it's added some day, but maybe quite close :) With this you'll get a mime type for hwa applets and doubleclicking those will launch them in HollywoodPlayer. You can add context menu entries etc from Ambient prefs yourself afterwards if you want more options.
Create a new file to SYS:Prefs/Ambient/filetypes/application/x-hollywoodapplet with this content:
AMTD 1 Name Hollywood Applet Type application/x-hollywoodapplet Match PatternHint #?.hwa Match sHWZ End Action Name Play with HollywoodPlayer Event DoubleClick Command AMIGADOS Run >NIL: SYS:Utilities/HollywoodPlayer %sp End End
Last edited by jPV on 17-Dec-2015 at 02:41 PM.
_________________ - The wiki based MorphOS Library - Your starting point for MorphOS - Software made by jPV^RNO |
|
Status: Offline |
|
|
Templario
 |  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 17-Dec-2015 16:26:13
| | [ #3 ] |
|
|
 |
Elite Member  |
Joined: 22-Jun-2004 Posts: 3672
From: Unknown | | |
|
| @jPV Thank you very much, it works very well, and it is perfect to make little scripts in applet format instead of executables files with much space. Thanks for your help.
I write your answer in the Hollywood forum, to help the programmes under MorphOS http://forums.hollywood-mal.com/viewtopic.php?f=10&t=1249 Last edited by Templario on 17-Dec-2015 at 04:32 PM.
|
|
Status: Offline |
|
|
jPV
|  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 28-Dec-2015 8:44:40
| | [ #4 ] |
|
|
 |
Cult Member  |
Joined: 11-Apr-2005 Posts: 834
From: .fi | | |
|
| It's now confirmed, that the next MorphOS update will have this filetype added to the Ambient's recognition database in this same form. Although it doesn't have the action part pre-configured because it's a 3rd party app, but MorphOS will recognize the files and configuration is available from the Mime settings.
So, it's perfectly valid to do it like I suggested already.
And if for example the author of Hollywood wants to configure the filetype in HollywoodPlayer's installation script, it can be done in this same way by creating the file with the previously mentioned contents. It just has to be checked that there isn't any existing file (== user configured mimetype) before creating a new one.
And starting from the next MorphOS release, the Match part could be skipped.. but it doesn't do harm if it's left there to support older MorphOS installations... Last edited by jPV on 28-Dec-2015 at 09:07 AM.
_________________ - The wiki based MorphOS Library - Your starting point for MorphOS - Software made by jPV^RNO |
|
Status: Offline |
|
|
Templario
 |  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 28-Dec-2015 9:14:33
| | [ #5 ] |
|
|
 |
Elite Member  |
Joined: 22-Jun-2004 Posts: 3672
From: Unknown | | |
|
| @jPV Thanks, when will be available the next MorphOS versión?
|
|
Status: Offline |
|
|
jPV
|  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 28-Dec-2015 9:34:02
| | [ #6 ] |
|
|
 |
Cult Member  |
Joined: 11-Apr-2005 Posts: 834
From: .fi | | |
|
| I don't know. _________________ - The wiki based MorphOS Library - Your starting point for MorphOS - Software made by jPV^RNO |
|
Status: Offline |
|
|
Templario
 |  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 28-Dec-2015 9:46:40
| | [ #7 ] |
|
|
 |
Elite Member  |
Joined: 22-Jun-2004 Posts: 3672
From: Unknown | | |
|
| |
Status: Offline |
|
|
TRIPOS
|  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 28-Dec-2015 13:23:33
| | [ #8 ] |
|
|
 |
Super Member  |
Joined: 4-Apr-2014 Posts: 1205
From: Unknown | | |
|
| @jPV
Quote:
jPV wrote: It's now confirmed, that the next MorphOS update will have this filetype added to the Ambient's recognition database in this same form. Although it doesn't have the action part pre-configured because it's a 3rd party app, but MorphOS will recognize the files and configuration is available from the Mime settings.
|
That's good, and thanks for your efforts regarding this!
 |
|
Status: Offline |
|
|
TRIPOS
|  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 28-Dec-2015 13:23:58
| | [ #9 ] |
|
|
 |
Super Member  |
Joined: 4-Apr-2014 Posts: 1205
From: Unknown | | |
|
| @jPV
Quote:
jPV wrote: It's now confirmed, that the next MorphOS update will have this filetype added to the Ambient's recognition database in this same form. Although it doesn't have the action part pre-configured because it's a 3rd party app, but MorphOS will recognize the files and configuration is available from the Mime settings.
|
That's good, and thanks for your efforts regarding this!
 |
|
Status: Offline |
|
|
Templario
 |  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 29-Dec-2015 15:47:20
| | [ #10 ] |
|
|
 |
Elite Member  |
Joined: 22-Jun-2004 Posts: 3672
From: Unknown | | |
|
| @jPV If you add the command: -QUIET to the mime type file:
AMTD 1 Name Hollywood Applet Type application/x-hollywoodapplet Match PatternHint #?.hwa Match sHWZ End Action Name Play with HollywoodPlayer Event DoubleClick Command AMIGADOS Run >NIL: SYS:Utilities/HollywoodPlayer %sp -QUIET End End
The Hollywod Player open directly the Holywood app, no started the Player. |
|
Status: Offline |
|
|
jPV
|  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 29-Dec-2015 16:57:53
| | [ #11 ] |
|
|
 |
Cult Member  |
Joined: 11-Apr-2005 Posts: 834
From: .fi | | |
|
| @Templario
OK, good to know, thanks. _________________ - The wiki based MorphOS Library - Your starting point for MorphOS - Software made by jPV^RNO |
|
Status: Offline |
|
|
Templario
 |  |
Re: How add to MIME type of MorphOS the hwa extension Posted on 29-Dec-2015 21:29:46
| | [ #12 ] |
|
|
 |
Elite Member  |
Joined: 22-Jun-2004 Posts: 3672
From: Unknown | | |
|
| @jPV Thanks for your help with my problems with applet and your mime config file.
|
|
Status: Offline |
|
|