Create Archive.zip and rename

Joined
Oct 31, 2012
Messages
3
Reaction score
0
I have two files:
Alan Jackson - Like Red On A Rose.cdg
Alan Jackson - Like Red On A Rose.mp3

I can create an Automator script to create a zip Archive. Result:
Archive.zip

How can Automator rename this Archive.zip?

Goal: Alan Jackson - Like Red On A Rose.zip

Background information:
The .cdg file and the .mp3 file together are used for karaoke players. My karaoke player needs these files as one single .zip file. If I don't rename Archive.zip, my karaoke player will show "Archive" in the song list instead of "Artist - Song Name".
The karaoke CD I bought contains 300 songs and 300 according karaoke files.
I just want to select pair by pair and drag them on an Automator script to create the zip files my karaoke player needs.
 
Joined
Nov 26, 2010
Messages
3,540
Reaction score
51
I'm not sure you can do String manipulation in Automator, you'll have to add in some AppleScript.
 

Attachments

  • Screen Shot 2012-11-01 at 9.31.53 AM.png
    Screen Shot 2012-11-01 at 9.31.53 AM.png
    70.4 KB · Views: 408
Joined
Oct 31, 2012
Messages
3
Reaction score
0
Thanks for the hints. I tried, but the zip file name becomes: aaaaa.zip
(because I set "aaaaa" when the script asks for "Name of Zip File".)

[edit]
At least, with this solution I can save a little bit time.
 
Joined
Oct 31, 2012
Messages
3
Reaction score
0
Now I understand what the script is doing. The name i type in in the beginning becomes the variable. This variable will be insert in the zip file name. I guess, it is not possible to extract the mp3 file name and use it for the zip file name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top