Go Back   The macosxhints Forums > OS X Help Requests > Applications



Reply
 
Thread Tools Rating: Thread Rating: 24 votes, 5.00 average. Display Modes
Old 09-22-2004, 10:25 PM   #1
MBHockey
MVP
 
Join Date: Sep 2003
Location: New York
Posts: 2,211
What app will open an mhtml document?

i have a homework problem for one of my mechanical engineering classes and the file is in .mht format. Usually he posts things in .pdf, but i am having trouble with this file.

The file can be found here: http://www.ws.binghamton.edu/jmp/ME%...all%202004.htm

just see assignment #7, the file is "Special Problem 1"

When i downloaded it, Word v.x (2004) tried to open it but i got an error saying it wasn't a valid web archive. I also tried opening it in Safar and IE with just a huge page of rubbish displaying.

Hopefully the file is corrupt, and i'm not the only one, i will see in the meantime. But should Word open this file with no problem?


OS 10.3.5

Last edited by MBHockey; 09-22-2004 at 10:39 PM.
MBHockey is offline   Reply With Quote
Old 09-22-2004, 10:39 PM   #2
MBHockey
MVP
 
Join Date: Sep 2003
Location: New York
Posts: 2,211
Hmm...weird. My colleagues inform me that the file opens fine in Acrobat Reader on a PC.

However, Preview nor Adobe Acrobat 6 on my Mac can open this file. Those two programs, and word, all say the document is corrupt.

EDIT:

Just opened it up in VPC 6. The file opens with Internet Explorer 5, but not with Adobe Acrobat.

So, now i'm confused, how come IE for Mac won't open it?

Last edited by MBHockey; 09-22-2004 at 11:08 PM.
MBHockey is offline   Reply With Quote
Old 09-23-2004, 12:23 AM   #3
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
MHT is a microsoft-centric format for saving a documents like a web page. Unfortunately, its not compatible with anything but Windows. You can extract this one by dragging it onto StuffIt Expander and renaming the files (all but the first one) with '.gif' at the end.

The first document of the set is a Javascript to display the GIFs in order. It actually opens in TextEdit once extracted, but it doesn't see the pictures. It just shows blank pages.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 09-23-2004, 01:48 AM   #4
ulrichm
All Star
 
Join Date: Oct 2003
Location: The Netherlands
Posts: 741
When I download the link, it shows up as an Entourage file. Double clicking on it, opens Entourage and displays a mail message in html with your homework. If you do have Entourage, try it.
__________________
..::|| Mac-addict since 1991 ||::..
ulrichm is offline   Reply With Quote
Old 09-23-2004, 02:18 AM   #5
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
I just tried to open it with Entourage from Works X. It didn't work. I have Works 2004 on my other Mac, but it's not running at the moment. I'll try it later.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 09-23-2004, 02:57 AM   #6
ulrichm
All Star
 
Join Date: Oct 2003
Location: The Netherlands
Posts: 741
Quote:
Originally Posted by Las_Vegas
I just tried to open it with Entourage from Works X. It didn't work. I have Works 2004 on my other Mac, but it's not running at the moment. I'll try it later.

I tried it with Entourage 2004 though!! Sorry should have been clearer.
__________________
..::|| Mac-addict since 1991 ||::..
ulrichm is offline   Reply With Quote
Old 09-23-2004, 04:21 AM   #7
Clytie
Major Leaguer
 
Join Date: Feb 2004
Location: Renmark, in the Riverland of South Australia
Posts: 322
Graphic Converter opens it perfectly.

from Clytie
__________________
from Clytie

MacBook Pro 2.8GHz, 4GB RAM, OSX latest, iPhone 4
Clytie is offline   Reply With Quote
Old 09-23-2004, 10:24 AM   #8
MBHockey
MVP
 
Join Date: Sep 2003
Location: New York
Posts: 2,211
Quote:
Originally Posted by Clytie
Graphic Converter opens it perfectly.

from Clytie

I think it's only opening the first page (there's multiple pages), unless i just don't know how to go to page 2 of the document in graphic converter.

MBHockey is offline   Reply With Quote
Old 09-23-2004, 01:24 PM   #9
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
You're right. Graphic Converter only displays the first image.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 09-23-2004, 02:28 PM   #10
mgh02114
Prospect
 
Join Date: Jan 2003
Posts: 7
Entourage X works

It opens for me in Entourage X running under 10.3.5 it's an email message with a bunch of GIF image attachments.
mgh02114 is offline   Reply With Quote
Old 09-23-2004, 02:46 PM   #11
mark hunte
MVP
 
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
Mht is indeed a web achive type format for IE.

I have a pc at home so I have converted the file to a web page (all files)

changed the source to the files in html, and opened on my Mac to save as a PDF.

There are 8 pages but they are only web page anchors. Which do not work
just scroll down

so in the PDF you will see that the pages are broken by a thick grey line

heres your home work (good luck)

http://homepage.mac.com/markhunte1/h...j/Homework.pdf

http://homepage.mac.com/markhunte1/h...proj/proj.html

Last edited by mark hunte; 09-23-2004 at 02:49 PM.
mark hunte is offline   Reply With Quote
Old 09-23-2004, 04:00 PM   #12
MBHockey
MVP
 
Join Date: Sep 2003
Location: New York
Posts: 2,211
Please disregard the email i sent you saying the link was broken, it is working now.

Thank you so much for going through all that trouble for me, i really do appreciate it!
MBHockey is offline   Reply With Quote
Old 09-23-2004, 06:35 PM   #13
mark hunte
MVP
 
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
Thanks, It was no trouble
mark hunte is offline   Reply With Quote
Old 09-24-2004, 03:19 AM   #14
Clytie
Major Leaguer
 
Join Date: Feb 2004
Location: Renmark, in the Riverland of South Australia
Posts: 322
I didn't realize there was more than one page – the first page was bad enough! Imagine making all that mess over some terrible handwriting, and a couple of pics! (times however many pages it was)

So I wasn't exactly encouraged to look for more :P

from Clytie
__________________
from Clytie

MacBook Pro 2.8GHz, 4GB RAM, OSX latest, iPhone 4
Clytie is offline   Reply With Quote
Old 09-29-2004, 11:27 PM   #15
MBHockey
MVP
 
Join Date: Sep 2003
Location: New York
Posts: 2,211
Quote:
Originally Posted by mark hunte
Mht is indeed a web achive type format for IE.

I have a pc at home so I have converted the file to a web page (all files)

changed the source to the files in html, and opened on my Mac to save as a PDF.

There are 8 pages but they are only web page anchors. Which do not work
just scroll down

so in the PDF you will see that the pages are broken by a thick grey line

heres your home work (good luck)

http://homepage.mac.com/markhunte1/h...j/Homework.pdf

http://homepage.mac.com/markhunte1/h...proj/proj.html


For some reason, my teacher loves this format. It is quite bothersome, he keeps posting stuff on the web in this format. Can you tell me exactly how you did this? I have virtual PC, it opens in IE, however, i can't print it (whenever it try to add a printer, it tells me there is not enough resources, even though i have 1GB of ram and have given VPC 512, but that's another story)

So can you walk me thru the steps you took in converting it to something readable by my Mac?

Thanks so much,

Mike
MBHockey is offline   Reply With Quote
Old 12-01-2004, 04:57 PM   #16
mark hunte
MVP
 
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
How to Convert .mht (web html archive files) on a Mac

Quote:
Originally Posted by MBHockey
Quote:
Originally Posted by mark hunte
Sorry I did not reply to your post on walking you through converting mht files. I thought the post had ended, and only just came across it again.

if you still need help on this let me know and I will write it up for you.

Cheers

That would be great, i'd really appreciate it.

Thanks,
Mike


Here is the guide I promised. I have posted it here so everyone can see it.

My network at home is down so I could not move the files between my xp box and my G3 laptop. So I had to work out a new way to do this


This is all done on Mac. So here goes.

1.Download your file and put it into a new folder. We will call this folder the ‘Projects folder’ for now

2.You may want to Rename the file to a short name like this

‘Homework-- Project 1.mht’ to ‘Homeworkp1’
(Save a little bit of typing later)

3. If you have Stuffit expander
Then drag and drop your ‘Homeworkp1.mht’ file onto it. (If not you will need to download it. Try versiontracker.com to be safe. The app should be free for what you need. )

Stuffit will un-compress the file and create a new folder in the‘Projects folder’. The new folder will be named something like ‘HomeworkP1.mht Folder’.

4. Open the ‘HomeworkP1.mht Folder’

Inside you will find a set of files
HomeworkP1.attachment00
HomeworkP1.attachment01
HomeworkP1.attachment02
HomeworkP1.attachment03
HomeworkP1.attachment04
HomeworkP1.attachment05
HomeworkP1.attachment06
HomeworkP1.attachment07
HomeworkP1.attachment08


5. Delete ‘HomeworkP1.attachment00’ Or just ignore it.you do not need it.

6. Change the name of the other files like this.


from

HomeworkP1.attachment01
HomeworkP1.attachment02
HomeworkP1.attachment03
HomeworkP1.attachment04
HomeworkP1.attachment05
HomeworkP1.attachment06
HomeworkP1.attachment07
HomeworkP1.attachment08


to

HomeworkP101.gif
HomeworkP102.gif
HomeworkP103.gif
HomeworkP104.gif
HomeworkP105.gif
HomeworkP106.gif
HomeworkP107.gif
HomeworkP108.gif


7. Open up a new 'Text.app' Document,

9. Go to the menu ‘Format’ and select ‘Make Rich Text’

10. Drag the ‘gif' files one by one on to the new Text.app Document. Making sure to start at number 01 through to 08 and each one drops underneath the last one .

11. Go to the ‘File->‘page setup’ menu and change the paper size to ‘A4’ if it is not so already.

12. Then go to the ‘File->‘Print’ menu . At the bottom of the print window you will see ‘save as pdf’

Click it.

13. Save your file and make sure the extension .pdfis on the end.

14. Open your file in your pdf browser. Done

==
I hope this helps.

On a side note. The ‘HomeworkP1.attachment00’ file is actually the html page.

I did find a way to use this and reset the images to show up in it using Mac Word, but thank god I worked out the obove way.
Although it worked fine, it was fiddly, and would have been a pain to explain in full.
But in a nut shell: change the ‘HomeworkP1.attachment00’ file to
‘HomeworkP1.mht’ and open it in WORD (mac).
the page opens without the images but maintains the page layout.
Now click on one of the image spaces and use the edit link menu. change the source of the files in order (top to bottom /1-8) and press ok. then click on one of the images again and use format picture to increase the size (use percents ). repeat for all. Ignore if the text looks ghosty. Now save as webpage. and then do your print-pdf bit.

All the best

Last edited by mark hunte; 12-01-2004 at 05:18 PM.
mark hunte is offline   Reply With Quote
Old 12-01-2004, 05:26 PM   #17
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,413
There is an easier way if you have "Graphic Converter" (from Lemkesoft).
Do the above steps 1 to 5. Then:

6) Launch Graphic Converter and choose "Convert & Modify" from the File menu. On the left side of the dialog, select the image files (no need to rename them). On the right side, choose a destination folder.
At the top, set the function to "Concat...".
At the bottom, set the destination format to be PDF.
Press the "Go" button.
A dialog will appear asking you to confirm the vertical orientation. Press Ok.

7) The PDF file will be in the destination folder you selected and named after the original document but with a .pdf suffix.

Since Graphic Converter is scriptable, you could probably write an AppleScript to do the whole operation.
hayne is offline   Reply With Quote
Old 12-01-2004, 05:47 PM   #18
fat elvis
MVP
 
Join Date: Oct 2003
Location: New York
Posts: 1,506
and then after all that why don't you give your teacher a swift kick in the ass for making such a poor choice in file formats.

I can see the wheels turning:

letsee...Portable Document Format: secure, flexible, universal...or, wait!! A Windows only option that will be less compatible and larger...brilliant!!

hmmm, great thinking by an engineering instructor.

sorry, had to vent.
__________________
“If more police, more prisons and more prosecutors was a solution to safer streets, the United States and China would be the safest countries on the planet, and they’re not..." -Jane Sterk
fat elvis is offline   Reply With Quote
Old 12-01-2004, 06:04 PM   #19
NovaScotian
League Commissioner
 
Join Date: Oct 2002
Location: Halifax, Canada
Posts: 5,117
Interestingly enough, I downloaded this file to my Mac (10.3.6), double clicked it, and it opened in TextEdit. At the top it says:
Code:
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0023_01C4A008.58F80BD0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
This is a multi-part message in MIME format.
------=_NextPart_000_0023_01C4A008.58F80BD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
and the rest of it seems like normal styled HTML 4. Dropping the file onto Camino, I get the same coded page rather than a rendered one. In Safari, the Mime is not decoded so it's unreadable.

MacLink Plus Deluxe will translate it into a graphic format of choice and when converted to TIFF, there is a folder containing 8 pages that are easily viewed in Preview.
NovaScotian is offline   Reply With Quote
Old 12-01-2004, 07:20 PM   #20
mark hunte
MVP
 
Join Date: Apr 2004
Location: Hello London Calling
Posts: 1,787
Thanks Hayne, Wish I had know you could merge files into pdf with GC before I had a play, would have been handy for many a job. Although I did learn a lot about how the mht files work.

NovaScotian.
Yes the file contains mime and html. Stuffit strips out the mime parts into image type files and the html into its own. If you have a page that you need to recreate exactly then you will need to use the 00 page and re-point the images.
mark hunte is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 08:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.