TweetFollow Us on Twitter

iPod Madness

Volume Number: 19 (2003)
Issue Number: 6
Column Tag: iPod

Getting Started

iPod Madness

by Dave Mark

OK, I'll try to explain this as best I can.

Seems to me it was just a few days ago when the darn thing arrived. I had already started writing my WWDC column. Basically, a follow-on to last month's TinyViewer Interface Builder column.

That's when the doorbell rang.

It was an innocuous looking package, return address Apple Computer, Cupertino, California. I immediately ripped it open, ignored the disk and other trimmings, and pulled out...COOL...a new iPod! Better put it aside - gotta get that column finished.

Hrm...it's just so shiny. Must focus. Must put down shiny iPod.

With great force of will, I put the iPod back in its box and returned to my computer. And that's when I got the email. Guess what, Dave? The new iPods support this cool new markup language so you can create your own linked iPod content. Wha? Huh? And there are these cool new AppleScripts you can play with to manage your iPod notes?

It was all over. All semblance of willpower was lost. iPod madness had taken over.

iPod Notes

As you can tell, I love the new iPods. The case design is gorgeous. The new design is much slimmer and the controls sleeker. The 15 and 30 gig units ship with a cradle and the cradle works quite well. Tie it all up with a new iTunes release and the integrated iTunes Music Store and you've got a marketing windfall for Apple. Can you say ka-ching?

When you double-click your iPod's Finder icon, you'll see three top-level folders: Calendars, Contacts, and Notes. Any items placed in the Notes folder are fair game for the Note Reader, an app built into each of the new iPods (but, sadly, not in any of the older models).

By default, the iPod ships with a single file, named Instructions, in the Notes folder. The Instructions file consists of a single text string, "<INSTRUCTIONS>". Welcome to your first iPod Notes tag. Though not particularly useful for your purposes, the <INSTRUCTIONS> tag tells the Notes Reader to display a simple set of instructions built into the iPod. One cool thing about this tag. Change the language, the instruction language changes. Change the language setting to Espanol, and the instructions appear in Spanish. As it should be.

From the user's perspective, the Notes folder is simply a collecting point for relatively small (notes are limited to 4kb - any bigger, they get truncated) text files. Got a collection of recipes? Put one per file in a collection of folders and drag the folder hierarchy to the iPod's Notes folder. For example, you might organize your recipes in a Recipes folder, with subfolders for Soups, Hors D'oeuvres, Salads, Entrees, and Desserts. You might store each recipe in its own text file, then organize the text files in the correct folder (soup recipe files in the Soups folder, etc.). Now drag the entire Recipes folder into the iPod's Notes folder.

    If you are trying this at home, be sure the Enable FireWire disk use checkbox is checked in the iPod preferences in iTunes 4. If you can't find that preference, attach your iPod to your Mac. Then, when it appears in the iTunes list, click on the iPod's icon in the list on the left-hand-side, then click the iPod icon on the bottom-right corner of the window (left-most of the 4 bottom icons).

When you fire up your iPod, click on Extras, then Notes. On the Notes page, you'll see Instructions as well as a Recipes item. Select Recipes and you'll see the Soups, Hors D'oeuvres, Salads, Entrees, and Desserts folder (see Figure 1). Select Soups, you'll see a list of the Soups text files. Select one of those and the text from that file is displayed. To get back, click the Menu button. Note that the Menu button is more like a browser's back button than a "move up a level" button. When you start playing with links, you'll see what I mean.


Figure 1. The Recipes categories on my iPod.

    Limitations: A single note can be up to 4kb. The current iPods support up to 1,000 notes. The Notes cache is 64kb. Once the cache is exceeded, the cache is flushed, the hard drive spins up and new notes are cached as needed.

iPod Note Tags

Currently, the Notes Reader supports a very small set of HTML tags. All tags are case insensitive.

Use <BR> or the pairing of <P> and </P> to force a paragraph break in your running text.

You'll use <TITLE> and </TITLE> to create a title for your page. If your text file does not contain a <TITLE> tag, the file name is used as the title. If the <TITLE> tag is there, the <TITLE> specified will be displayed at the top of the screen when the text file is shown, and is also used in the scrolling list that contains the text file.

Link Tags

The iPod link tag looks just like its HTML counterpart and allows you to link notes together. Here's an example. I started by creating a text file named Ideal Meal, saving it in the Recipes folder:

<TITLE>An Ideal Meal</TITLE>
The ideal meal always start with a nice piece
of <A HREF="Halvah">halvah</A>, followed immediately by a healthy serving of Mama's 
secret <A HREF="Gravlax">gravlax recipe</A>

I then created a file called Halvah, also saving it in the Recipes folder:

<TITLE>Halvah</TITLE>
A confection made out of crushed sesame seeds and honey. Have a nice piece of Halvah today. It 
couldn't hoit. Goes well with <A HREF="Gravlax">gravlax</A>.
<BR><BR>Back to <A HREF="/Recipes">Recipes</A>.

And finally, a file called Gravlax, also saved in the Recipes folder:

<TITLE>Gravlax</TITLE>
Raw salmon, usually seasoned with dill. Have a nice piece of gravlax with your 
<A HREF="Halvah">halvah</A>. Eat. Eat.

    A note on editing your note files. If you use an editor like Word, be sure smart quotes are turned off. When I created some notes with smart quotes, the iPod displayed them with extreme funkiness. This is because the text encoding used by Word does not match the default encoding of the Notes Reader. More on this in next month's column.

    Also, don't put a hard return in your notes unless you really want a hard return in there. When I use BBEdit, I select Text Options from the Edit menu, then click the Soft Wrap Text radio button and set it to Window Width.

Remember, this is rev 1 of iPod Notes. Over time, I suspect we'll see more tags and other text handling options. And a color screen? With image tag support and an Ethernet port? Huh? Couldja? Please? J

Figure 2 shows the Recipes notes folder after I copied my 3 new notes over to the iPod.


Figure 2. The Recipes folder with 3 added files.

Click on An Ideal Meal (Figure 3). Notice that there are 2 links in this text. The first link is selected by default, with the underline of the second link barely visible. How do you get from link to link? The scroll wheel, of course! Scrolling the wheel counterclockwise moves you up a link, stepping from link to link, stopping at the first one on the page. Scrolling the wheel clockwise moves you down the page, link by link. Keep scrolling and you stop at the last link on the page. There is no wraparound effect if you keep scrolling.


Figure 3. What happens when I click on An Ideal Meal.

Figure 4 shows the Gravlax note, with the halvah link selected. Click on the halvah link and you'll jump to the Halvah note (Figure 5). Note that if you keep selecting links, you'll pop back and forth between Gravlax and Halvah. The interesting thing here is that the links are stacked (like a browser), so when you click the Menu button, you'll bounce back to the previous page, as opposed to moving up in the folder hierarchy.


Figure 4. The Gravlax note, with a link to halvah.

Note that the Halvah note contains a link back up to the Recipes folder. Click this link, and you'll be back up to the screen shot shown in Figure 2. We'll explore link formats in the next section.


Figure 5. The Halvah note, with a links to gravlax and the Recipes folder.

Relative v. Absolute

Just as you can with your web files, you can refer to other notes using relative or absolute link paths. Note that / refers to the inside of the Notes folder, so /Recipes/Halvah really refers to /Notes/Recipes/Halvah. For example, here are some absolute links:

<A HREF=file:///Gravlax>Link to /Gravlax (an error)</A>
<A HREF=file:///Recipes/Halvah>Link to /Recipes/Halvah</A>
<A HREF=/Gravlax>Link to /Gravlax (an error)</A>
<A HREF=/Recipes/Halvah>Link to /Recipes/Halvah</A>

Here are some relative links:

<A HREF=file://Gravlax>Link to Gravlax (in the current 
                                                               directory)</A>
<A HREF=file://Recipes/Halvah>Link to Recipes/Halvah
         (only works if the linking file is in the same
         dir as Recipes)</A>
<A HREF=Gravlax>Link to Gravlax (in the current 
                                                               directory)</A>
<A HREF=Recipes/Halvah>Link to Recipes/Halvah, where
                     Recipes/ is in the current directory</A>

    Note that file names are not case sensitive. Feel free to use any of /, \, or : as a file delimiter, but remember that none of these are legal FAT file name characters and that : is not legal in an HFS+ file name. Use a backslash to escape special characters that are part of the file name itself. For example:

    <HREF="Ferret recipes, 6\/23\/03">

Note also that you cannot link to the Notes folder itself, nor can you link outside the Notes folder. You will simply annoy the Notes Reader.

Dead Links

The Note Reader automatically checks every note for dead links. To see the results of this test, include an <ERRORS> tag in one your notes. The note containing the <ERRORS> tag is completely replaced with a list of all the errors found in all the notes. This means you only need one <ERRORS> tag for your entire hierarchy. Use a testing note for this purpose, not a note containing useful content. Once you've tested your notes, you can delete the error checking note.

Figure 6 shows the results of a couple of purposely malformed links. Bad iPod, bad.


Figure 6. The <ERRORS> tag at work.

Link Files

Just as you might use a file to redirect a user from one url to another, you can use a .link file to redirect a link and a .linx file to spoof a folder of links. Here's how this works.

Create a file named pizza.link that contains the following text:

<TITLE>Pizza Link</TITLE>
<A HREF="Real Pizza">Blap</A> 

Next, create a file named Real Pizza with this text:

Hey, I'm the REAL pizza file. Not that other phony. My file name is Real Pizza.

Put them both in the same folder, somewhere inside the Notes hierarchy. When you scroll to that folder, you'll see two files listed, one named Pizza Link and one named Real Pizza. Click on either one and the Real Pizza content is displayed. Since we never display the link inside pizza.link, the text Blap never appears. Hmmm. Maybe this is a good place to put your favorite bad words.

.link files let you store content in one file and refer to it from other directories. Can you say alias?

A .linx file is similar, but it is used to spoof a folder. Here's an example. Create a file named evil.linx with this content:

<TITLE>Evil, Do Not Taunt</TITLE>
<A HREF="doctors/Dr. Sardonacus">Dr. Sardonacus</A> 
<A HREF="doctors/Doc Ock">Doc Ock</A>
<A HREF="doctors/Dr. Strangelove">Dr. Strangelove</A>
<A HREF="doctors/Dr. No">Dr. No</A>
<A HREF="doctors/Dr. Evil">Dr. Evil</A>

Next, create a folder named doctors in the same folder as evil.linx. Finally, create note files named Dr. Sardonacus, Doc Ock, Dr. Stragelove, Dr. No and, of course, Dr. Evil in the doctors folder. Figure 7 shows what happens when you scroll to the folder named Evil, Do Not Taunt. Notice that the notes listed in this directory are listed in the order we specified in the .linx file, not in alphabetical order. This can be useful!


Figure 7. Been to the doctor lately?

Main.linx

When you navigate into the Notes folder, Notes Reader looks for a file named Main.linx in the Notes folder. If it finds Main.linx, it uses that list to replace anything else in the Notes listing it would normally show. For example, this is a sample I created for the new Macintosh Art Museum Annex (MAMA), just south of Cupertino in Veerkidnya.

<TITLE>Mac Museum</TITLE>
<A HREF="Art/Woman in Kimono">Kimono</A> 
<A HREF="Art/Clarus">Dog Cow</A>
<A HREF="Art/Zebra Lady">Zebra Lady</A>

Figure 8 shows what happens when I click on the Notes folder. Note that none of my other content is shown. The only things listed are the links in Main.linx.


Figure 8. The Mac Museum, in all its glory.

For those of you playing at home, note that links in a .linx file are checked before they are listed. So if you are trying to follow along and you have trouble getting the links in your .linx file to appear, be sure you've created the files referenced in the individual links. The example above won't work properly until I create the Art folder and the three files within that folder. Capisce?

    Worth a look: A new app named iPodNotes from XtremeMac along with a site named http://www.iPodNotes.com. Pretty interesting. The app is designed to help you create and manage your iPod note projects. You can create a new project (essentially, a notes folder hierarchy), add files and folders, edit the files, and even create links to text and audio files.

    The web site borrows from the iCal concept and allows you to share your projects with other folks. For example, my buddy David could upload his list of things he thinks I should do when I make that trek to Iceland I've been dreaming about, along with notes for each item in the list. Or maybe someone would upload the Red Stripes touring schedule for the summer. Or how about if someone put together an audio tour of historic Civil War battlefields that you could download and take with you. It's all good.

    Though this puppy is still in its early stages, I really like this concept. Check it out.

Till Next Month...

Imagine walking down the halls of the Louvre with an iPod in your hand, headsets in place. You click on the Notes folder and see a series of folders, each corresponding to one of the 9 main sections of the Louvre. Click on Salles des Peintures, and you might find a list of the major works of art in that section, including the Mona Lisa. Click on Mona Lisa and you might see a textual description of the painting, along with an embedded link to an audio file describing recent restoration projects related to the Mona Lisa. This model really touches on the power and potential of the Notes Reader.

Next month, we'll dig a little deeper into iPod Notes. We'll see how to create links to audio files and how to work with Note Reader preferences. One of these preferences, NotesOnly, puts your iPod into Museum Mode which causes your iPod to boot right into Note Reader. Perfect for the Louvre example above. We'll also mess with some cool AppleScripts designed especially to help you manage your notes. Remember, if you are at WWDC, come say hello! See you then...


Dave Mark is a long-time Mac developer and blah, blah, blah... We interrupt this important bio to bring you an important message: Gonna be at WWDC? Be sure to find Dave and say hi (His pic is up on mactech.com and spiderworks.com). Bring your comments, suggestions, and maybe even a nice piece of gum.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »
Embark into the frozen tundra of certain...
Chucklefish, developers of hit action-adventure sandbox game Starbound and owner of one of the cutest logos in gaming, has released their roguelike deck-builder Wildfrost. Created alongside developers Gaziter and Deadpan Games, Wildfrost will... | Read more »
MoreFun Studios has announced Season 4,...
Tension has escalated in the ever-volatile world of Arena Breakout, as your old pal Randall Fisher and bosses Fred and Perrero continue to lob insults and explosives at each other, bringing us to a new phase of warfare. Season 4, Into The Fog of... | Read more »
Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links below... | Read more »
Marvel Future Fight celebrates nine year...
Announced alongside an advertising image I can only assume was aimed squarely at myself with the prominent Deadpool and Odin featured on it, Netmarble has revealed their celebrations for the 9th anniversary of Marvel Future Fight. The Countdown... | Read more »

Price Scanner via MacPrices.net

Every model of Apple’s 13-inch M3 MacBook Air...
Best Buy has Apple 13″ MacBook Airs with M3 CPUs in stock and on sale today for $100 off MSRP. Prices start at $999. Their prices are the lowest currently available for new 13″ M3 MacBook Airs among... Read more
Sunday Sale: Apple iPad Magic Keyboards for 1...
Walmart has Apple Magic Keyboards for 12.9″ iPad Pros, in Black, on sale for $150 off MSRP on their online store. Sale price for online orders only, in-store price may vary. Order online and choose... Read more
Apple Watch Ultra 2 now available at Apple fo...
Apple has, for the first time, begun offering Certified Refurbished Apple Watch Ultra 2 models in their online store for $679, or $120 off MSRP. Each Watch includes Apple’s standard one-year warranty... Read more
AT&T has the iPhone 14 on sale for only $...
AT&T has the 128GB Apple iPhone 14 available for only $5.99 per month for new and existing customers when you activate unlimited service and use AT&T’s 36 month installment plan. The fine... Read more
Amazon is offering a $100 discount on every M...
Amazon is offering a $100 instant discount on each configuration of Apple’s new 13″ M3 MacBook Air, in Midnight, this weekend. These are the lowest prices currently available for new 13″ M3 MacBook... Read more
You can save $300-$480 on a 14-inch M3 Pro/Ma...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
24-inch M1 iMacs available at Apple starting...
Apple has clearance M1 iMacs available in their Certified Refurbished store starting at $1049 and ranging up to $300 off original MSRP. Each iMac is in like-new condition and comes with Apple’s... Read more
Walmart continues to offer $699 13-inch M1 Ma...
Walmart continues to offer new Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBook for sale by... Read more
B&H has 13-inch M2 MacBook Airs with 16GB...
B&H Photo has 13″ MacBook Airs with M2 CPUs, 16GB of memory, and 256GB of storage in stock and on sale for $1099, $100 off Apple’s MSRP for this configuration. Free 1-2 day delivery is available... Read more
14-inch M3 MacBook Pro with 16GB of RAM avail...
Apple has the 14″ M3 MacBook Pro with 16GB of RAM and 1TB of storage, Certified Refurbished, available for $300 off MSRP. Each MacBook Pro features a new outer case, shipping is free, and an Apple 1-... Read more

Jobs Board

*Apple* Systems Administrator - JAMF - Activ...
…**Public Trust/Other Required:** None **Job Family:** Systems Administration **Skills:** Apple Platforms,Computer Servers,Jamf Pro **Experience:** 3 + years of Read more
IT Systems Engineer ( *Apple* Platforms) - S...
IT Systems Engineer ( Apple Platforms) at SpaceX Hawthorne, CA SpaceX was founded under the belief that a future where humanity is out exploring the stars is Read more
Nurse Anesthetist - *Apple* Hill Surgery Ce...
Nurse Anesthetist - Apple Hill Surgery Center Location: WellSpan Medical Group, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Apply Now Read more
Housekeeper, *Apple* Valley Village - Cassi...
Apple Valley Village Health Care Center, a senior care campus, is hiring a Part-Time Housekeeper to join our team! We will train you for this position! In this role, Read more
Sublease Associate Optometrist- *Apple* Val...
Sublease Associate Optometrist- Apple Valley, CA- Target Optical Date: Apr 20, 2024 Brand: Target Optical Location: Apple Valley, CA, US, 92307 **Requisition Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.