MIME type of MorphOS the hwa extension

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

MIME type of MorphOS the hwa extension

Post by Juan Carlos » Thu Dec 17, 2015 5:31 pm

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: 470
Joined: Mon Sep 06, 2010 1:02 pm
Contact:

Re: MIME type of MorphOS the hwa extension

Post by Juan Carlos » Tue Dec 29, 2015 4:55 pm

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: 233
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: MIME type of MorphOS the hwa extension

Post by jPV » Tue Apr 26, 2016 3:05 pm

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: 470
Joined: Mon Sep 06, 2010 1:02 pm
Contact:

Re: MIME type of MorphOS the hwa extension

Post by Juan Carlos » Wed Apr 27, 2016 12:10 pm

But the compression is included in the same file ha.

Post Reply