Page 1 of 1

Get all media item names in array

PostPosted: Fri Jun 18, 2010 10:22 pm
by Karel Broer
Hi, I like the ability to get an array of all the item names that exist in the media library.
Something like this would be perfect. :)
Code: Select all
var vMediaArray = application.getAllMediaNames()

Re: Get all media item names in array

PostPosted: Fri Jun 18, 2010 10:47 pm
by ptalbot
Hi Karel,
What's wrong with solutionModel.getMediaList() ?

Re: Get all media item names in array

PostPosted: Fri Jun 18, 2010 11:00 pm
by Karel Broer
ptalbot wrote:Hi Karel,
What's wrong with solutionModel.getMediaList() ?

Nothing. Except that I didn't knew it existed :oops: .
Thanks for the tip, Patrick!
(This request can be deleted).

Re: Get all media item names in array

PostPosted: Sat Jun 19, 2010 6:56 am
by ptalbot
Yes Karel, I agree that it can be confusing sometimes to find a method between the design time/runtime/solution models.
There are some overlaps and some methods don't always seem to be at the right place.
Some refactoring to organize for v6 brush up perhaps?
Just a thought.