I have an applescript thats supposed to execute when I press a button. Then, the applescript is supposed to get all the songs from iTunes, and then load the songs into a table view inside a drawer (the button opens the drawer and executes the applescript).
Here's the applescript:
It does work. However, the table view doesn't load the tracks that the applescript gets. I've made a new file just for the drawer, and connected the table view's data source inside the drawer to an object that's the name of the file containing the code.
Here's the code:
The drawer shows up, and everything...it's just the songs that doesn't show up.
Thanks for any help!
Here's the applescript:
Code:
tell application "iTunes" to get names of tracks
It does work. However, the table view doesn't load the tracks that the applescript gets. I've made a new file just for the drawer, and connected the table view's data source inside the drawer to an object that's the name of the file containing the code.
Here's the code:
Code:
- (IBAction)makeDrawerVisible:(id)sender
{
[drawer setLeadingOffset:0];
[drawer setTrailingOffset:0];
[drawer openOnEdge:1];
[itunessongs initWithSource:@"/Users/ericlee/Desktop/Development/Xcode/Mac/StopWatch%20%5BWORK%20IN%20PROGRESS%5D/itunesmusic.scpt"];
NSLog(@"Getting iTunes songs");
[drawerTableView reloadData];
}
The drawer shows up, and everything...it's just the songs that doesn't show up.
Thanks for any help!