Page 1 of 1

MIME type of MorphOS the hwa extension

Posted: Thu Dec 17, 2015 5:31 pm
by Juan Carlos
This commands with the help of jPV in Amigaworld,net forum:
http://amigaworld.net/modules/newbb/vie ... =46#775420
You can make that the applet files are recognizes as current files and calling the Hollywood Player installed.

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
Thanks for the help to jPV.
Now is more easy make Hollywood programs without the executable under MorphOS.

Re: MIME type of MorphOS the hwa extension

Posted: Tue Dec 29, 2015 4:55 pm
by Juan Carlos
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.

Thanks Andreas for this suggestion to -Quiet command.

Re: MIME type of MorphOS the hwa extension

Posted: Tue Apr 26, 2016 3:05 pm
by jPV
Oops, I didn't notice back then that there are two types of applets, with or without compression. I think this should work for both:

Code: Select all

AMTD
1
Name Hollywood Applet
Type application/x-hollywoodapplet
Match
	PatternHint #?.hwa
	Match sHWA
	OR
	Match sHWZ
	End
Action
	Name Play with HollywoodPlayer
	Event DoubleClick
	Command AMIGADOS Run >NIL: SYS:Utilities/HollywoodPlayer %sp -QUIET
	End
End

Re: MIME type of MorphOS the hwa extension

Posted: Wed Apr 27, 2016 12:10 pm
by Juan Carlos
But the compression is included in the same file ha.