MIME type of MorphOS the hwa extension

Discuss any general programming issues here
Post Reply
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

MIME type of MorphOS the hwa extension

Post 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.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: MIME type of MorphOS the hwa extension

Post 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.
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: MIME type of MorphOS the hwa extension

Post 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
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: MIME type of MorphOS the hwa extension

Post by Juan Carlos »

But the compression is included in the same file ha.
Post Reply