Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sending file aliases to iTunes for metadata processing



Hi all,

I'm having a particular problem with an itunes script that I am trying to
write.

Put simply, I have a folder which contains m4v files (video podcast files)
that Finder creates a reference to. I am hoping to pass the details of
this file to iTunes so that the artist can be changed to "This Artist,"
and I can change the year etc.

I know that if I add the video to the itunes music library then it will be
easier to work with, but I'm hoping there is a way of doing it without
this, as this is part of a much larger script that moves the video files
around afterward.

Here's my script:

tell application "Finder"
set itemreferenceipod to (files of folder FileDirAsDir whose name
extension is "m4v") as alias
end tell

set ipodoutputPath to (POSIX path of (itemreferenceipod as alias))
tell application "iTunes"
	set artist of ipodoutputPath to "The Artist"
	set album artist of ipodoutputPath to "The Album Artist"
	set album of ipodoutputPath to ipod_album_name
	set year of ipodoutputPath to "2008"
end tell



This currently results in an iTunes error: Can't set <<class pArt>> of
"/Users/Desktop/test.m4v to  "The Artist."

Thanks for any help!

Spiros


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.