Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gunpowda

macrumors member
Original poster
Oct 31, 2004
31
0
Hi,

I'm trying to write some song information from iTunes to a text file. I currently have:

set combination to var_artist & tab & var_name & tab & var_album & return

This produces something like:

Code:
Bob Dylan   Idiot Wind        Blood on the Tracks
Bob Dylan   Shelter From The Storm    Blood On The Tracks
Bob Dylan   Subterranean Homesick Blues       Bringing It All Back Home
[MacRumors won't let me post tabs, it seems, so I've tried to illustrate the point with spaces.]



I'd like it to align in columns, so it's easier to read, like this:

Code:
Bob Dylan   Idiot Wind                        Blood on the Tracks
Bob Dylan   Shelter From The Storm            Blood On The Tracks
Bob Dylan   Subterranean Homesick Blues       Bringing It All Back Home

Am I looking for something other than the tab character? How can I get this to work?
 

Mekanik561

macrumors newbie
Feb 10, 2007
8
0
I believe tab alignment is handled by the app viewing the text file. A tab is just a character. It's up to TextEdit, Word, or whatever to change and display the tab value.

Or you may be able to fake it by counting the characters of the column and adding extra tabs, but there are a lot of gotchas involved. Better to apply formatting/styling in the viewing app.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.