1. Generating playlists (heaton5@cox.net)

Discussion forum for Amadeus users

Moderator: Martin Hairer

Post Reply
Bull
Posts: 42
Joined: Tue Jun 08, 2010 5:49 pm
Location: Blacksburg, Virginia

1. Generating playlists (heaton5@cox.net)

Post by Bull »

I was interested in seeing the previous exchanges on this subject, so
I went to http://www.hairersoft.com/forum/ .

That particular subject does not appear on the Discussion page. Has
the thread been removed?

Thank yew,
Wayne Durham
Blacksburg, Virginia
_______________________________________________
Amadeus forum mailing list
Unsubscribe / change settings at http://two.pairlist.net/mailman/listinfo/forum_list

User avatar
Martin Hairer
Site Admin
Posts: 1975
Joined: Wed Nov 08, 2006 11:49 am
Contact:

1. Generating playlists (heaton5@cox.net)

Post by Martin Hairer »

That particular subject does not appear on the Discussion page. Has the thread been removed?
Strange. There were a couple of spam posts that I deleted, maybe I made a mistake and also deleted a legitimate post…

Anyway, my recommendation was to use TextWrangler to process the text file created by the "Export markers" function. Regards,

Martin

--
HairerSoft
http://www.hairersoft.com/




_______________________________________________
Amadeus forum mailing list
Unsubscribe / change settings at http://two.pairlist.net/mailman/listinfo/forum_list

Bull
Posts: 42
Joined: Tue Jun 08, 2010 5:49 pm
Location: Blacksburg, Virginia

Post by Bull »

I saw your recommended solution, but do not know what the problem was that you fixed.

User avatar
Martin Hairer
Site Admin
Posts: 1975
Joined: Wed Nov 08, 2006 11:49 am
Contact:

1. Generating playlists (heaton5@cox.net)

Post by Martin Hairer »

This was the OP's post:
I generate playlists for pasting onto paper CD envelopes in one of two ways.
I take a screen shot of the Markers window, trim it, copy and paste into a Word document, then print, trim, and paste to the envelope.
Or if I have split according to markers and have then put the files into Toast, I copy the song list and paste it into Word, then print, trim, and paste to the envelope.
I tried Export Markers but got too much information.
Is there a more efficient way of generating playlists for my purpose? Thanks.
Regards,

Martin

--
HairerSoft
http://www.hairersoft.com/




_______________________________________________
Amadeus forum mailing list
Unsubscribe / change settings at http://two.pairlist.net/mailman/listinfo/forum_list

Bull
Posts: 42
Joined: Tue Jun 08, 2010 5:49 pm
Location: Blacksburg, Virginia

Post by Bull »

I agree with Martin that you should be able to work with the "Export markers" file. I use AppleScript + BBEdit rather than TextWrangler. It allows me to break up long, continuous audiobooks into hundreds of short files of short duration separated at periods of silence in the original. If you could specify what you mean by "too much information" I'd be happy to take a stab at it. Afraid you'd need BBEdit, though.

Wayne Durham
Blacksburg, Virginia

User avatar
Martin Hairer
Site Admin
Posts: 1975
Joined: Wed Nov 08, 2006 11:49 am
Contact:

1. Generating playlists (heaton5@cox.net)

Post by Martin Hairer »

1. Open the file in TextWrangler (free download), select "Search -> Find" and check the "Grep" checkbox.

2. Enter

.*(TRACK|INDEX|REM).*

in the "Find" field (just copy/paste from the above line), leave the "Replace" field blank, and hit "Replace All".

3. Enter

.*\"(.*).\"

in the "Find" field, enter

\1

in the "Replace" field and hit "Replace All".

4. Enter

\r\r

in the "Find" field, enter

\r

in the "Replace" field and hit "Replace All".

5. Repeat step 4 until you don't have any empty lines left.

Regards,

Martin

--
HairerSoft
http://www.hairersoft.com/




_______________________________________________
Amadeus forum mailing list
Unsubscribe / change settings at http://two.pairlist.net/mailman/listinfo/forum_list

Gerard Bik
Posts: 353
Joined: Fri Nov 10, 2006 9:04 pm

1. Generating playlists (heaton5@cox.net)

Post by Gerard Bik »

When Martin's clever super recipe scares you, here is an alternative.

Split the songs according to markers and import them into iTunes.
iTunes has an option to print playlists in different templates. And burns cd's.
Before Amadeus could burn, I made several cd's this way.

Gerard

--
To be without some of the things you want is an indispensable part of
happiness.
Bertand Russel
_______________________________________________
Amadeus forum mailing list
Unsubscribe / change settings at http://two.pairlist.net/mailman/listinfo/forum_list

Bull
Posts: 42
Joined: Tue Jun 08, 2010 5:49 pm
Location: Blacksburg, Virginia

Post by Bull »

Here is an automated version of Martin's suggestion. If you have TextWrangler, in the menu bar you should see a scroll icon in the menu bar two to the left of the Help menu. Click on that and select "Open Script Editor". In the new window, type or paste these lines (between the two --- lines):

---

on open these_items
tell application "TextWrangler"
activate
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
open this_item
replace ".*(TRACK|INDEX|REM).*\\r" using "" searching in text 1 of front text document options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
replace ".*\"(.+)\".*" using "\\1" searching in text 1 of front text document options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
save front text document
close front text document
end repeat
end tell
end open

---

Save this file as an application. Then all you have to do is drag and drop the cue sheets (you can drop one or several at a time) from AP's "Export markers" onto the application icon and the playlist will be generated.

If you drop something other than a text document formatted as a cue sheet from AP, the application will probably get angry with you.

Notes: This is a little different from what Martin posted. I think he had a typo in his, plus I did not put \ before the " in the search field. I don't think that's necessary. And I removed the carriage returns at the same time as removing the TRACK INDEX and REM lines.

Bull
Posts: 42
Joined: Tue Jun 08, 2010 5:49 pm
Location: Blacksburg, Virginia

Post by Bull »

PS After you have modified the Cue sheets to be just a list of the tracks, you can number the tracks. Open the modified file in TextWrangler, Text Menu "Add/Remove Line Numbers" and, as our cousins in England say, Bob's your uncle. You can also add this step to the AppleScript application and Bob will be your brother, or something.

User avatar
Martin Hairer
Site Admin
Posts: 1975
Joined: Wed Nov 08, 2006 11:49 am
Contact:

1. Generating playlists (heaton5@cox.net)

Post by Martin Hairer »

You are right, in step 3, it should have been

.*\"(.*)\"

(My original version would delete the last character in each song title…)
You are also right about using " instead of \", I was just playing safe ;-)
Regards,

Martin

--
HairerSoft
http://www.hairersoft.com/




_______________________________________________
Amadeus forum mailing list
Unsubscribe / change settings at http://two.pairlist.net/mailman/listinfo/forum_list

Bull
Posts: 42
Joined: Tue Jun 08, 2010 5:49 pm
Location: Blacksburg, Virginia

Post by Bull »

Actually, \" was needed in the AppleScript, just not in TextWrangler. Better safe, as you say.

Post Reply