I have a script that takes an .mp3 file and down samples it to a new .acc file. The problem I am having is getting the mp3 info such as Title, Album, Artist etc. copied over to the new file. I have tried to use Apple’s annotation drop scripts as examples, but I just can’t get it to work. I can read the annotation information from the first file but just can’t get the info saved to the second. Here is a snippet of the code I am trying to get to work:
property annot_title : "«none»"
property annot_album : "«none»"
property annot_artist : "«none»"
property annot_comment : "«none»"
--on open myFiles
tell application "QuickTime Player"
launch --bypass promo movie
activate
-- repeat with myFile in myFiles
set myFile to "Mini HD:Users:JoBi:Desktop:New File.mov"
open (myFile) -- as alias)
set myFile2 to "Mini HD:Users:JoBi:Desktop:Origional File.mp3"
open (myFile2) -- as alias)
--This appears to work saving these four attributes into the following four variables
set annot_title to full text of annotation "Full Name" of movie 1
set annot_album to full text of annotation "Album" of movie 1
set annot_artist to full text of annotation "Artist" of movie 1
set annot_comment to full text of annotation "Comment" of movie 1
--This is the part the has an error. I think it is because "Full Name" doesn't exist yet but not sure how to fix this
tell movie 2
set the full text of annotation "Full Name" to annot_title
set the full text of annotation "Album" to annot_album
set the full text of annotation "Artist" to annot_artist
set the full text of annotation "Comment" to annot_comment
end tell
close movie 1 saving yes
close movie 2
end tell
Appreciate any and all help.
-Jonathan