sending file aliases to iTunes for metadata processing
sending file aliases to iTunes for metadata processing
- Subject: sending file aliases to iTunes for metadata processing
- From: email@hidden
- Date: Mon, 28 Jan 2008 07:25:17 -0800 (PST)
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden