Nothing like diving right into a new dev environment, framework, and language at the same time to reveal the inadequacies of said documentation. It took a bit longer than I thought (info.plist and nib file documentation was rather sparse both in conceptual and technical reference), but I have an improved version of the iTunes Opener I wrote last year which fixes iTunes M3U handling. By going through XCode, I was able to give it a signature code so it should work better for default app assignment now:
iTunes Opener v1.1 – this is a simple application which will prevent iTunes from inserting playlists willy nilly into the Library and instead will create a timestamped playlist for each M3U that it opens. This is incredibly useful if you stream much music.
To install, just move it into your Applications folder (or wherever) and associate it with your M3U files (click on an M3U file, and in the Get Info inspector, change the opening application, and change all).
Some reference:
- Re: AppleScript Studio -> idle handler – I went through large chunks of the 442 page AppleScript Studio Terminology Reference, the 240 page AppleScript Studio Programming Guide, and the 62 page Objective-C Tutorial, and numerous examples, but I didn’t figure out what I was doing wrong until I found this message (should this be all blinky at the very top of one of these?):
Don’t forget to check the “idle” switch in Interface Builder !
Open your MainMenu.nib project file in Interface Builder, click the “File’s Owner” icon, and then in the AppleScript info pane, check Application/idle, applied to your main script.Apparently, when I swapped script files, it unassociated the nib event handlers from my script. Ha ha, how obvious! *slit* *slit*
- Re: Running straight through, like a normal Applescript – ahh, see, now it makes sense
- AppleScript Studio Terminology Reference: Events – ahh, see now this is useful
- Re: Newbie: How to quit out of AppleScript Studio app (Solved!) – not quite related, but useful
- Apple Mailing Lists Search – once you have the terminology down, this is the most useful docs that Apple provides. You’ll eventually find a noob question where someone might actually explain why things are working like you think they should
- Apple AppleScript Language Guide – so not useful
- Client-side M3U generation – a handy bookmarklet
- Beginning AppleScript Studio – didn’t help me learn about how to associate my nibs properly, but a decent (very brief) intro
- Using Subversion with XCode – this was trivial to do, this doc is a nice write-up though
I’m not going to get started on the plists…