New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Applescript vs Automator vs Unix Command


Post Reply New Thread Subscribe

 
Thread Tools
Thyamine

 
Thyamine's Avatar
 
Member Since: Apr 23, 2007
Location: Coatesville, PA
Posts: 377
Thyamine will become famous soon enough
Mac Specs: MBP 15", 2.33 GHz, 2Gb

Thyamine is offline
Hey all, I'm looking to get into more power user type things with my Mac, and I'm not sure where to start looking for my first task.

Basically I have a 360 that I stream music to, but they need to be in MP3 format, so I use iTunes to rip CDs or convert music I've bought. The problem is iTunes drops the music in the iTunes folder, and I want to keep my AAC files separate from my MP3 files (mostly because I need to move them to a Media Center PC).

What I'm looking to do is create a script or even just a simple terminal command that will:

1. Search a directory and sub-directories for .mp3 files.
2. Move the file to a new directoy.
3. Keep the previous directory structure (basically putting the file back into an Artist -> Album -> .mp3 file structure).

I'm guessing that Applescript will handle this, but I didn't know if that was the overkill method or what.

As an FYI, I do various ASP.Net development projects, so scripting/programming isn't a problem, I'm just very new to it on a Mac.
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
You don't need to do any scripting at all. Just create a Smart Folder that finds all MP3 files.
QUOTE Thanks
Thyamine

 
Thyamine's Avatar
 
Member Since: Apr 23, 2007
Location: Coatesville, PA
Posts: 377
Thyamine will become famous soon enough
Mac Specs: MBP 15", 2.33 GHz, 2Gb

Thyamine is offline
But a Smart Folder won't let me move them and maintain their directory structure will it? My understanding was that it was more of a filter. I want to actually move the files to a new location.
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
If you want to duplicate the directory hierarchy, then yeah, you'll have to write a script. A Unix shell script is probably the most straightforward way.
QUOTE Thanks

Post Reply New Thread Subscribe


« AirPort port5080 + ethernet port80 | Enabling Automatic DNS Discovery »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
'screen' command in unix wiz561 OS X - Development and Darwin 6 03-19-2009 05:24 PM
Unix Command Line books shahvikram123 OS X - Operating System 9 12-21-2007 12:24 PM
Unix Command Line Question moz Switcher Hangout 4 04-22-2006 07:09 AM
UNIX command to find out process hook walkerj Switcher Hangout 0 04-23-2005 04:22 PM
Unix command master class. Amen-Moses Community Suggestions and Feedback 2 02-10-2004 07:34 PM

All times are GMT -4. The time now is 11:19 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?