• On BNET: Are these ads too sexy for TV?
advertisement
April 29, 2009 6:09 PM PDT

MacFixIt Answers

by CNET staff

A new feature from MacFixIt editors answering questions emailed to us by our users. This week the questions cover emailing HTML emails and editing templates, learning how to use the UNIX environment, and details on automatic file defragmentation.

Have a question about your Mac or a technical problem you're trying to solve? Send it in!

Question:

MacFixIt reader "Rombaldi" writes:

"What software can be used to create the e-mail full graphic ads that we all get everyday? Can the templates in Mail be edited?"

Answer:

For the first question, Mail supports sending standard HTML messages, but it does not support editing it. Therefore, you will need to create a page using an application that exports to HTML (or just use an HTML editor), and then send it using Mail via the following procedure:

  1. Create your HTML page.
    Using a text editor or other HTML-generating program, create your page.

  2. Test the page.
    Open the page in Safari or another browser by right-clicking it and choosing the browser from the "Open With..." submenu.

  3. Mail contents.
    When the page is ready, open it in Safari and from the "File" menu choose "Mail Contents of this Page", which will open it in Mail. Ensure everything looks as it should, and repeat the process here to make changes. Then when ready, click "Send".

NOTE: It may help to host images on a web server, and keeping the HTML as simple as possible (no JavaScript or embedded iframes, movies, or Flash) will yield better results.

As for editing templates, this can be done, but templates are rather complex and the editing of them is not straightforward. Templates are categorized in the /Macintosh HD/Library/Application Support/Apple/Mail/Stationery/Apple/Contents/Resources/ folder. From within this folder, choose the category for the template, and go to the /Contents/Resources/ folder within that category. Each Mail template will be look like a letter with ".mailstationery" as the file suffix. To edit a stationery file, right-click it and choose "Show Package Contents." Then navigate to the /Contents/Resources/ folder in the new window that opens, and you should see a "content.html" file. This is the HTML file that is the base structure for the stationery and if you know HTML, you can edit this file to change placement of items on the page. The HTML file references various image files within the same folder, which can either be edited or replaced, or you can alter the HTML file to reference differently-named image files.

Question:

MacFixIt reader "Kenneth Brayer" writes:

"I want to use gfortran which is free and installs in usr/---. I need to run the Mac, iMAC 20 inch, OS 10.5.6, 2.66 dual core cpu from spring/summer 2008 in the UNIX environment. I knew UNIX many years ago and I can relearn it. Is there a book I can buy or a website I can find on using UNIX on the IMAC.

Answer:

The UNIX core of Mac OS X has its differences from other distributions of UNIX, however, the basics are the same and there are no machine-specific versions (such as one for iMacs, or for PowerMacs and MacBooks). Navigating and managing files use the same commands and syntax that have been around for years, so any tools and techniques you may remember will be relevant. There are a variety of new and unique commands specifically for OS X that Apple has developed, but those are not necessary for performing most UNIX-oriented terminal tasks.

As for the Terminal, learning it and the details are like learning HTML or how to program in that there are many resources on the Web for it, but many don't offer an approach that will show you how to do things properly. Some do exist, and here are a couple of Terminal introduction Web sites that do a pretty good job at covering the basics and getting you up and running:

One thing to remember is that in the latest versions of OS X, some of the legacy UNIX technologies are being changed. For instance, if you are used to an "init/cron" system for launching and scheduling tasks and processes, in Leopard this has been switched to "launchd", and the management of this is different; however, many Terminal resources will use examples with "cron" and other items that may not be relevant to OS X. The basics for navigation and file manipulation, however, will be the same.

As far as books go, there are a variety out there but one we recommend is "UNIX for Programmers and Users" (either 2nd or 3rd edition -- Amazon Link), by Graham Glass and King Ables. This book starts out with the basics of computer hardware and advances you through learning the Terminal and shells into shell scripting and programming, which is exceptionally useful for exercising your skills in the terminal.

Question:

MacFixIt reader "Luc Prouix" writes:

"You say that, 'In OS X, Apple has optimized drive performance by incorporating technologies that actively defragment files on the drive...'

Is it also doing it on windows partitions (FAT32 or NTFS)?
Thank you"

Answer:

The simple answer is no. In Macintosh computers, it's the combination of the HFS filesystem and OS X that allows for on-the-fly defragmentation of files. When a file 20MB or smaller is split up, as long as OS X is running on an HFS formatted volume that is journaled, it will defragment the file. An additional type of defragmentation OS X uses is a technology called "Hot-File-Adaptive-Clustering", which keeps track of files being frequently accessed and will move them closer together and placed closer to the drive's "metadata zone" on the disk, which is a fast-accessed portion of the drive based on the drive's physical characteristics. As with the defragmentation of smaller files, this requires a journaled HFS volume.

Despite the format restrictions of on-the-fly file defragmentation, all drives can be optimized. This is where you use a third-party program such as "Drive Genius" to reorganize the files on the disk so they are in the optimum position on disk for access according to that file type (such as all binary or executable files placed before data files). This distribution can be different for various drive formats, and some programs will support fragmentation of certain formats and not others.

Resources

  • Send it in!
  • http://www.osxfaq.com/tuto...
  • http://www.ee.surrey.ac.uk...
  • Amazon Link
  • More from Late-Breakers
  • Recent posts from MacFixIt
    The OS X 10.7 buzz starts--something big in the next release?
    MacFixIt Answers
    Safari still crashing after update?
    Safari 5.0.1 update fixes black Mail backgrounds, autofill, and more
    Making the switch to Apple? Get the perfect setup
    Apple releases OS X 10.6.4 update for iMacs; trackpad driver
    CNET Apple Byte: iPhone to T-Mobile?
    iTunes not connecting to the iTunes store after updating
    Add a Comment (Log in or register) (6 Comments)
    • prev
    • next
    by Polar Bear April 29, 2009 7:16 PM PDT
    Hey guys? Know something? It's good to see you taking a positive, pro-active demeanour toward things Mac rather than the strident, rabid, foam-flecked reaction every time some nerd hereon has a PROBLEM with her half-baked freeware app screwing up a generally good system.

    Good on you guys! Things are looking up. I might even resub when it's time.

    FWIW, any issue with less than 1,000 complainers in a population of approx 300 MILLION plus the Canadians, is NOT worth grinding about. It really isn't. That's right, it really isn't.

    Keep up with the helpful stuff.... eh?

    Capt Billster



    ---
    Polar Bear
    Reply to this comment
    by Polar Bear April 29, 2009 7:16 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Polar Bear</i></div></class><br />
    I just reread my post above and I'm concerned that I might not have been clear and accurate enough, i.e., too considerate. Please let me know if anything I said needs to be stated more clearly, unmistakable terms. It's a Canadian thing to be unavoidably direct.

    ---
    Polar Bear
    Reply to this comment
    by tkessler April 29, 2009 7:16 PM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Polar Bear</i></div></class><br />
    You Canadians are weird... :p
    Reply to this comment
    by kent1 April 29, 2009 7:16 PM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Polar Bear</i></div></class><br />
    I'm with you, and I am enjoying this new, and almost tutorial approach.
    I run a Mac User Group and much of what is now covered is so useful especially for the beginners and switchers. I also, despite 15 years on a Mac, am finding it most helpful.
    Yes, I agree, keep it up.
    The geeks who love the fiddling in the terminal can post on the forums.
    I need commonsense explanations and information at a GUI level.
    <p>---<br>DocOnMac
    Reply to this comment
    by kent1 April 30, 2009 12:55 AM PDT
    I agree with Polar Bear, I am enjoying this new, and almost tutorial approach.
    I run a Mac User Group and much of what is now covered is so useful especially for the beginners and switchers. I also, despite 15 years on a Mac, am finding it most helpful.
    Yes, I agree, keep it up.
    The geeks who love the fiddling in the terminal can post on the forums.
    I need commonsense explanations and information at a GUI level.


    ---
    DocOnMac
    Reply to this comment
    by macdad614 April 30, 2009 6:01 AM PDT
    More info could be provided concerning the inclusion in e-mail - and not just Mail - of various images that are viewed in an existing web page and can be copied and pasted. However, when they are received by others, they most often are NOT present. Previously, copy and paste worked for images and pages that are in existing web pages. However, some of those images appear as empty rectangles when they arrive at their destination, even when they still appear in the original e-mail.

    Any ideas and suggestions will be appreciated.
    Reply to this comment
    (6 Comments)
    • prev
    • next
    advertisement

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader