From: John Joyce Date: 2007-12-08T09:36:36+09:00 Subject: Re: Identifying a volume as being an iPod >> Anyway, after digging deep enough, GUI scripting with Applescript >> will require the user to enable GUI scripting. > > I'm still not clear why you believe you have to use GUI Scripting, as > opposed to iTunes' own scripting interface, but unless you can say > exactly what it is your script needs to do I can't offer any more > specific advice on that front. Has, thanks again, So far, as far as I can tell, the iTunes AppleScript library doesn't include a way to do what I want to do. Of course I'm still getting a handle on AppleScript itself and making sense of each application's scripting library. They're always pretty thinly documented. I mean, they are terse. It's like they were written by credit card companies. Too short and hard to understand. Anyway, I'll figure out if I can actually use AppleScript or OSA (without GUI scripting) once I have enough time to learn AS and OSA more solidly. It's a work in progress in spare time. What I want to do is fundamentally this: move some audio files (non-DRM'd, the type you've taken off of CD's yourself, and which have already been converted to mp3 or aac formats) into the iTunes library. Ideally, I'd like to move them into the library through iTunes in order to have iTunes handle its own library xml files and such itself, and parse all the files for their internal metadata (id3 tags, etc...). Let iTunes do the hard part. If you already know a way to have iTunes rebuild or rescan its library for files, then that would be great help. Then I would just need to be able to ask iTunes where its library is and move the files to it, then have them added to the library's xml. The other option conceptually was, telling iTunes to call its import command and selecting the files from the directory they are in. If you know which hooks I need or how to easily do any of this, it would certainly save me some time and energy.