[skip if not interested in newbie intros]
Hi all! Well, I finally made it to start playing with AS Studio apps! I’m trying to improve a script I made with AS and give it some interface. So far I got how to address a few things and how to handle most of them, but I really got stuck with combo boxes and/or pop up buttons.
[/skip if not interested in newbie intros]
The basic idea is to set a Playlist in iTunes, tell iTunes to start playing and when it stops, put the computer to sleep or shut down. I have a set of playlists in iTunes with the keyword “Sleepy” in their names. The script uses choose from list SleepyList (with items “Sleepy x”, where x is I, II, III, IV… and “Random Sleepy”, which if selected the script then asks for the number of songs to play and creates a new playlist selecting the amount of songs from a source playlist “The good guys”).
Now to my app… I would like to add a pop up button to it that, when clicked, displays the same list as my AS script. The thing is it has to be dinamic, since I might add/remove lists as I get new music or whatever. The pop up button in my .nib file is called “sleepylist” (placed in window “main”) and links to my XCode .applescript file. Basically, I have no idea how to comunicate with it after that… :D.
and what is the use of: ??? It might help if you could see the interface I’m using.
And since it will certainly be an issue for me… after I get this thing to work, and iTunes starts playing… can I still use the ‘on idle’ handler to ask if iTunes is still playing? And if not tell me to quit. Would that be the same? For now, when I close the “main” window the app quits, but once I get it to do what it really has to, once I pressed to “GO” button that window should close and just be a ‘stay open’ app that waits (and displays a dialog allowing to cancel when clicked on) as my AS script does.
Well, thanks if you read this far… hehe!!
PS: Anyone who reads all this would say I got it pretty much figured out to work in AS, so why bother to use XCode. Well, exactly because I got it in AS, I’m using that to try and learn the how to’s of AS Studio… in case your wondering…