RE: iTunes programming question
RE: iTunes programming question
- Subject: RE: iTunes programming question
- From: Jon Pugh <email@hidden>
- Date: Tue, 11 Jul 2006 14:45:54 -0700
At 5:30 PM -0400 7/11/06, Philip Lukidis wrote:
>Thanks, I've already found those scripts which Apple released and have started to play around a bit with them. I've used the NSAppleScript class to compile and execute a trimmed Apple supplied script from a cocoa test program. This script simply gets some basic information for each track in the main iTunes library (~3200), but it nevertheless takes 38 seconds to execute on a dual G5 with 1 GB of RAM. I'm not sure if sending AE messages would trim this down. We'll see.
Don't forget, you are compiling this every time. You'll need to keep the compiled script object in memory and run it over and over instead of compiling it over and over in order to speed up execution. I don't know what services Cocoa provides, but apparently this is fairly common since some unix geeks seem to think scripts should always be stored as text.
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden