Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > itunes/folder action script

itunes/folder action script
Thread Tools
die7werge
Fresh-Faced Recruit
Join Date: Dec 2003
Status: Offline
Reply With Quote
Feb 4, 2004, 04:41 PM
 
hi!

i want a script with that i can assign a certain mp3-tag to every mp3 i put in a certain folder?
is that possible?

example: i have a folder with all mp3s from a certain genre and if i put a new file in that folder the file gets its genre changed

tia
     
Moonray
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 4, 2004, 06:02 PM
 
Yes it is possible.
Put a scrip like this in your Folder Action Scripts folder, attach it to your drop-folder, and turn the folder actions on:
Code:
on adding folder items to this_folder after receiving these_items try repeat with i from 1 to number of items in these_items set this_item to item i of these_items tell application "iTunes" launch set this_track to add this_item set genre of this_track to "YOURGENREHERE" end tell end repeat on error error_message number error_number if the error_number is not -128 then tell application "Finder" activate display dialog error_message buttons {"Cancel"} default button 1 giving up after 120 end tell end if end try end adding folder items to
Enjoy.

-
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 05:56 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,