开发者

Filling an array with selected items of another array

开发者 https://www.devze.com 2023-04-09 18:22 出处:网络
I\'m just getting to know AppleScriptObj-C and trying to create a simple application that would allow me to create playlists.

I'm just getting to know AppleScriptObj-C and trying to create a simple application that would allow me to create playlists.

The question is:开发者_如何学Go I have an array, containing all the music tracks from my iTunes library viewed through NSTableView. I make a selection and want these selected items to be copied to another array. How do I do it?

Thank you.


I'm not that familiar with AppleScriptObj-C, but I can give it to you in AppleScript...

tell application "iTunes" to set the array to the selection as list
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号