Re: How to write song tags with iTunes and Scripting Bridge
Re: How to write song tags with iTunes and Scripting Bridge
- Subject: Re: How to write song tags with iTunes and Scripting Bridge
- From: Matt Neuburg <email@hidden>
- Date: Fri, 09 Sep 2011 13:01:27 -0700
On Mon, 05 Sep 2011 17:44:35 +0200, David Dengg <email@hidden> said:
>Hello list,
>
>I have all the songs from iTunes as iTunesFileTracks (via Scripting Bridge)....
>
>Is there a preferred way to write tags back into the tracks? Should I use apple events directly?
You *are* "using apple events directly". (Sorry to post twice on the same question but I just noticed this.) A scriptable app like iTunes is utterly neutral and ignorant about who created and sent the apple event and how - there is no difference whatever between what it sees whether you do this with scripting bridge, with AppleScript, with Appscript, with a raw Apple event that you construct using Carbon calls, etc. etc. (as discussed in Appendix B of my AppleScript book).
Now, to be sure, an Apple event can be constructed well or badly, and scripting bridge *does* construct some Apple events badly, as I discovered the very first (and, not coincidentally, the last) time I tried using it:
http://lists.apple.com/archives/applescript-implementors/2007/Nov/msg00034.html
But it isn't getting *this* Apple event wrong.
m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden