This content has been marked as final.
Show 6 replies
-
1. Re: Delete all image collections
Muppet Mark Jul 10, 2014 3:05 AM (in response to ojodegato)Are you wanting to remove just the collections or all the associated files too…?
-
2. Re: Delete all image collections
ojodegato Jul 10, 2014 6:47 AM (in response to Muppet Mark)I need to keep the original files. I just need to delete the Br image collections associated with the original files.
-
3. Re: Re: Delete all image collections
Muppet Mark Jul 10, 2014 6:58 AM (in response to ojodegato)#target bridge app.bringToFront(); removeAllCollections(); function removeAllCollections() { var collects = app.getCollections(); for ( var i = collects.length-1; i >= 0; i-- ) { app.deleteCollection( collects[i] ); }; };This should remove all the Non Smart collections… You will need a way to run this. You can do so from the ESTK else you need to add something to Bridge.
A menu and item or a contextual menu option…?
-
4. Re: Re: Delete all image collections
ojodegato Jul 10, 2014 7:13 AM (in response to Muppet Mark)Thank you!
I know how put the script in the BR startup folder. However, I am not sure how to call this Br script once the application is open?
-
5. Re: Re: Re: Delete all image collections
Muppet Mark Jul 10, 2014 7:20 AM (in response to ojodegato)#target bridge #engine main app.bringToFront(); if ( BridgeTalk.appName == 'bridge' ) { var toolMenu = MenuElement.find( 'Tools' ), ojo = new MenuElement( 'command', 'Remove All Collections', '-at the end of toolMenu', 'ojodegato001'); }; ojo.onSelect = function () { removeAllCollections(); } function removeAllCollections() { var collects = app.getCollections(); for ( var i = collects.length-1; i >= 0; i-- ) { app.deleteCollection( collects[i] ); }; };OK if you add this one to you user scripts folder… It should give you a NEW custom option at the end of the tools menu… Click n run there…
-
6. Re: Re: Re: Delete all image collections
ojodegato Jul 10, 2014 7:31 AM (in response to Muppet Mark)got it! thanks again!

