Manually Sort a Collection

I would like to manually sort a Collection, and then save that sort when I save the Collection.
In Bridge 1.0.4 (CS2), WinXP, manual sort seems to work only for a real folder.
When I try to move a thumbnail in a Collection (result of a find operation), I get the international "NO" symbol (circle with a diagonal line). No manual sort seems to be allowed in Bridge CS2!
Is it allowed in CS3?

ejp is right.
If you are talking about several unrelated sorts, you
need a comparator per sort order.Just to get the full story: You could build a generic comparator and configure it according to the next sorting you want to do:
Collection.sort(list, new GenericEmployeeCompare(SortOrders.SortByName));I very much doubt you'll want to, though. It will get overly complicated, and I don't see what you gain.
If all sorting (all calls to Collections.sort()) happen from within one class, you can make your Comparator classes local to that class, so as to keep things together still.

Similar Messages

  • Saving a Custom (Manual) Sort

    I searched and searched through Bridge and found NO way to save a custom sort (manual) with a name (or a collection if you prefer). I created a manual custom sort in a folder and ran a PS action to reduce the size of each photo and put them into a new folder. When I opened the new folder the sort was alpha, not like the old folder. I now have to manually sort over 300 photos in new folder.
    Is there a way to do this and if not, can a script be written for it. I create slide shows and no of hundreds of examples of how I would use this. It is really labor intensive to put the photos in a special order and then have no way to save it for future use.
    Any suggestions or help would be appreciated. If I have to pay someone to do this, I will. thanks.

    I am using Bridge (Version 1.0.4) and CS2 on WinXP, SP2. I am extremely disappointment in a limitation in Bridge that seems to be related to JamesAGrover's challenge to save a manual sort that he has created in a collection.
    A review of topics related to manual sorting in these Adobe forums indicate that there is a general limitation to sorting a collection. This limitation seems to exist in any of the Adobe products for Mac or PC that offer the ability to view "collections" of images, for example, Lightroom and Bridge.
    A "collection" seems to be a set of file names that are handled independently of the real files themselves. The magic resides in the user's experience of handling the "collection" of filenames as if they were the actual files themselves.
    Of course, there is no "magic"; the collection is working with some kind of pointer to the actual files, where ever they may truly reside.
    There are many powerful reasons for offering functionality of this kind. The one that primarily interests me is that by working with pointers to the same file from different collections, I can create different subsets of images and unique sort orders without copying the original files. I avoid filling my harddrive with copies, but I can burn thousands of CDs and DVDs each with different selections and sorts.
    But unfortunately, inside a "collection", I am unable to execute a manual sort at all. The problem exists if my collection includes files from a single directory or from several different directories (folders). Since this seems to contradict the basic promise of a "collection" of filenames, I keep thinking that I misunderstand the user's interface.
    I have set the "View - Sort" menu with every permutation of checks and unchecks for "Ascending Order" and "Manually" with no luck.
    I have discovered a workaround to my problem: I have been able to manually sort, and save, a direct view of a real file system directory from the Bridge interface. But that has forced me to create copies of my images in one unique new directory for every selection and sort that I need.
    To tie this back to the first post in this topic, I must observe that for me, after creating and manually sorting a collection, I will want to save the collection with its unique and idiosyncratic, manual sort. I don't want to copy the original files umpteen times! It seems that I will encounter the problem described by JamesAGrover.
    I wonder if any forum member, or any one at Adobe, has a comment. Specifically I wonder about two things:
    1) Am I misunderstanding the user's interface? Is there a setting that I have not discovered?
    2) Is there a basic limitation with "collections" that has been removed in CS3?

  • Problems sorting LR collections

    This is a slightly long story but necessary to explain the help I need and why! I have some 18000 photos which have been collected over several years and which in some cases have come from different cameras (metadata capture dates and file numbers in different formats) and from slides which have been digitized but now think they were taken (captured) on the date they were digitized. After a lot of effort I have grouped the photos into chronological LR  collections and have rated them so that I now have about 1500 photos "of interest" contained in these collections. The leading characters of the collection names are  in the format "year/month" (eg 1998/03) followed by a short text description. These now reside in about 50 different LR collections. The number of photos in each collection varies between 1 and 43.
    What I want to do is condense these 50 collections into a single master collection but keep them in the same chronological order Once I have done this I can use LR to apply an "indexing" number to all 1500 photos. I can then export the photos to a catalog and use the index for future sorting as I further refine the photos before printing. I will not need to worry about differing file names and inaccurate capture dates.
    I found a tutorial showing how to condense groups of catalogs into a master catalog but there seems no similar option to group collections which I find hard to believe. I have the latest LR5.7.1 version.

    To build on Modesto's comments: While collections allow you to provide a custom (manual) sort order, collection sets do not.  You can see that by clicking on the Sort: dropdown in the toolbar at the bottom of Library grid mode when you have a collection set selected in the Collections panel:
    So when you select a collect set, it will be ordered by Capture Time or some other criteria, but not by manual orders you imposed on each of its collections.
    Rather than making a collection set, you could make another collection called "Master" and then add all of the pics in each of your other collections to Master in turn.  Master will retain the order of the pics in which you added them.  To make that go fast, right-click Master in the Collections panel and do Set As Target Collection.  Then in chronological order, select each source collection in the collections panel.  Do Edit > Select All to select all the pics in the collection, then right-click the pics and do Add To Target Collection ("B" is the keyboard shortcut).
    Of course, if you update one of the individual collections, you'll have to manually update Master, which probably isn't what you want.
    Stepping back, you're trying to use collections for something for which they're not designed.  You want to set and maintain the chronological ordering of pics, and digital-asset-management tools like Lightroom provide a number of tools to let you use the "capture date" metadata field to do precisely that.  You set the capture date of each pic, and then the tools will let you sort, slice, and dice by date very easily.
    Digital cameras make this nearly painless, since they automatically set the capture date of pics.  But the rub you've encountered is that you've got a large number of scans, and scanner software doesn't set the capture date for you (how could it? -- it doesn't know what the date should be).   So you need to set the capture date of your pics.   Unfortunately, LR was explicitly designed primarily for manipulating pics from digital cameras, and while many of us use LR to also manage scans, LR itself doesn't make it that easy, starting with its clunky Edit Capture Date command.
    When I scan a group of slides, they're typically grouped by time (e.g. in numeric order, or from the same year, or whatever).  I import the scans into LR, and then use a temporary collection to put them in proper chronological order, using the date and slide number printed on the slide.   Typically, I know the year and month but not the day or time of a group, so I'd like to set all the pics in the group to have capture dates, say, of 1961/2/1 12:00:01, 1961/2/1 12:00:02, 1961/2/1 12:00:03, etc.  The clunky LR Edit Capture Command would make that exceedingly painful, but luckily, there are a couple of plugins, such as ExifMeta and Capture Time To Exif, that make it very easy.
    While this is a little more work than dragging each photo manually into a collection, as you've been doing, it's really not that much more work, and you're left with your pics assigned capture dates that any software tool can use to display and organize.  
    You've already got your collections organized by year and month, so using ExifMeta to assign capture dates to your scans shouldn't be that hard.

  • Losing manual sort in Bridge collections

    I installed the latest version of Bridge CC and created several collections. Each collection contains between 10 and 60 images which are all taken from the same Windows directory. The directory contains less than 300 image files. I did this in two sessions. In the first, I created 3 collections and in the second, I created 5 more. Each collection was manually sorted after all the images were added. No additional images were added after the manual sort.
    After restarting Windows and opening Bridge CC again, some collections were still manually sorted and some were sorted by filename. All the collections are still showing as manual sort. Can't figure out why some are OK but others are in filename order even though it shows manual sort.
    I'm running on Window 8 Pro and have InDesign installed as well. Bridge is not set to start at login.
    Now, the only thing I can think of is that when I updated InDesign in Adobe CC this morning, that something may have affected Bridge. But then I would have expected all the collections to revert to filename order and not just some.
    Is there a secret to keeping the manual sort in Bridge collections intact? It's not much use to me if it won't. I sort images in the order I want to insert them in book pages.
    I checked other threads on this subject but it doesn't look like anything was resolved.
    Thanks

    DUUUUUUUDE! IT'S WORKING NOW!!!!
    When you originally asked, "What happens if you click on an image and move it to another folder?", I didn't really understand what you were talking about because I almost never have my workspace set up in a way that the folders are showing. I always hide them. So I didn't really understand what you were saying. Just a few minutes ago, I realized that that is what you were asking so I opened up the folder area and tried dragging thumbs into different folders and saw that it does work.
    So then, because of you mentioning that blue line and me know that I did see the blue line on occasion. I went back over into the thumbnails to find out if I always got the blue line or if it was a hit or miss thing. I couldn't believe my eyes when all of the sudden I saw that I no longer was getting that circle with the line through it, and low and behold, the thumbnail dropped right into position like it is supposed to!!!!
    The thing is, I don't know what I've learned from this. I thought, "well, what is different?" The only thing that I can think of is that I now have the folders showing in my workspace so I wondered if that was the secret but I just now hid the folders again like I usually do and the drag and drop into position is STILL WORKING!!!
    All I can figure is that somehow, dragging and dropping a thumbnail into a folder like that for the first time, triggered something so that I can now drag and drop among the thumbnail positions? Not sure. All I know is that for some reason, IT'S WORKING NOW!
    Now, for the second important part, I wonder if I drag and drop everything into the order that I want and then select all of the files and drag them into a new folder, will they stay in that order? I need to go experiment with that.
    If you hadn't kept at it and in turn had me keep trying stuff, it would have never happened because I had pretty much given up.
    Thanks Curt!
    You da man!!!

  • How do I export my "manual sorting" of files to my new Adobe Bridge CC installation?

    Hi all,
    I'll try to explain my situation:
    I have Adobe Bridge CC installed on my computer. I use the "manual sorting" to view and manage my files (mostly .eps/.psd).
    I'm moving to Win8.1 and I don't want to loose my manual sorting. How do I save/export my manual sorting in order to import it on a new Bridge installation?
    Thank you all in advance,
    Francesco

    I'm moving to Win8.1 and I don't want to loose my manual sorting.
    Manual sorting is not meant for a permanent sort order nor is it designed to do so, when switching to a new window or other sort order you will loose the previous sort order. However there is a way to retrieve the last sort order used with a script Paul Riggott once wrote. But I'm not sure you can transport this sorting to a new system version because when you install a system from scratch you also need to recache the files for the Bridge Cache library. It might be possible to also copy the hidden file with the last sort order but that would mean a trial and error procedure.     
    Check this post, at the bottom is also a link for the site where you can get the script and how to install and use it:
    http://forums.adobe.com/message/4748987#4748987
    Personal I would use batch rename to keep the sort order safe. You can select all files in the content window and add a sequence number in front (with enough digits to match your number of files) of your existing filename. In this way you can easily resort your collection when your manual sorting is lost for whatever reason and also the files will have the correct sort order on your system folder also.

  • Manual sort of images

    How do I manually sort images in the grid mode?

    You grab the image part of the thumbnail, not the grey surround, then drag to new position. Also, note that you can only manually sort from within the folder containing the images or Collection.

  • Any way to Restore Last Manual Sort Order or Prevent from being Overwritten accidentally?

         Help!
         I'm constantly accidentally overwriting painstakingly created manual sort ordering (sometimes hours but more often months of accumulated work) in folders with files numbering up to 1,000, when i, however breifly, switch to another sort ordering (size, date modified etc) to check something, immediately forget that i'm in another sort order, and, unthinkingly (actually i guess i'm thinking of a lot of other things) drag a file to another position, this immediately destroys any past manual sorting i've established, overwriting it with this new inadvertent manual ordering.
         I've tried CommandZ (edit undo) but that only undoes my last rating or labeling, i've rushed to force quit Bridge through the activity montior hoping i will catch it before its overwritten, but obviously i am not as fast as a computer, and i don't think this has ever worked.
    Is there any way or any script someone has written to formally save a manual sort order? Is there anything i've missed to attempt restoring it? Has anyone, repeatedly foiled by this, written something that would give a warning and require confirmation say for instance, if i tried to drag or move a file while in another sort ordering (this seems like something that should have existed the minute the opportunity was given to create manual organization). Would anyone be willing to?
         Seriously, me forgetting almost every time isn't going to change and, more vexingly, it's even happened when i didn't mean to move anything but fumbled momentarily while in another sort order. I think most people might forget because (in the context of computing) we are conditioned to expect a warning if something we have just created is about to be written over or discarded, and since there is no option to formally save a manual ordering we have just created.
         Also, if this was in the real world, moving a single file would not reshuffle everything on your desk. If i had the option to formally save a manual organization i would NOT forget to do this and would use it, as i've wished for one every time spent a while rearranging files. Knowing how easily all the hours (much less months and years of cumulative work) of organizational work can be accidentally lost makes working within Bridge unpleasantly anxious.
          I'm literally willing to do anything including installing some sketchy 3rd-part scripts (though honestly i have no idea what that means or how to do it). I extentively use and rely heavily upon this function so this is a fairly serious Achille's heel. It's like watching your incredibly important meticulously constructed house of cards collapse with a careless but innocent sigh, or like having the equivelent of a not even charming cat dance across your keyboard during a live concert, etc etc....
         Also it is not usually appropriate, given the context, to batch rename everything to preserve a manual ordering w sequence numbers, etc. Often the filenames are considerably (but necessarily, to connote important differences) long already, and when i have to rearrange things in the future would have to do that each time, etc, etc, making for even more unwieldly filenames that didn't have any substantive information at the beginning. I'm looking for a way to make this function (manual sort ordering), well, more functional, secure and stable, the workarounds i've considered cause too many additonal problems.
         Thank you in advance for any help you may be able to offer, and as this is my first attempt to use the forums as i live on a boat with no regular net access, would appreciate any forum etiquette corrections, and advance apologies for any misspellings, dyslexic and spellcheck does not seem to work in this interface. next time will edit in external wordprocessing program beforehand,
              li'l mc szpf
         PS i'm on a 27" mac w CS4 Design Premium, w up to the minute OS (10.6.8) and Adobe software updates installed recently (i do not often move the monster but this week was housesitting w net access, so she has had all recommended shots and vaccinations....)
         PPS I know most of y'all might be running the newest and the latest of everything, but, i'm fairly certain this is still a problem in recent versions as this has happened to me at school where all the macs are running cs5. Though if it's been addressed somehow in cs6 would update entire suite just to fix this one problem in Bridge. I've tried many searches and found nothing relevant or wouldn't bother the considerable expertise and resources of an official forum, was extremely hesitant to ask (feared getting snapped at for unwittingly broaching forum etiquette) but it is truly the bane of my considerable Bridge existence, so was willing to risk the imaginary censure and opprobrium....
    Message was edited by: PECourtejoie

    That is a good question, to do this requires two functions and a restart of Bridge all done automagically
    Copy and paste the script into ExtendScript Toolkit
    This gets installed with Photoshop and can be found:-
    PC: C:\Program Files\Adobe\Adobe Utilities
    MAC: <hard drive>/Applications/Utilities/Adobe Utilities
    Start Bridge
    PC: Edit - Preferences - Startup Scripts
    Mac: Adobe Bridge menu - Preferences - Startup Scripts
    At the bottom click the "Reveal Button" this will open the folder where the script should be saved.
    Close and restart Bridge.
    Accept the new script.
    To use:
    Tools - Backup Manual Sort
    This will backup the hidden manual sort file .BridgeSort to .BridgeSortSave
    Tools - Restore Manual Sort
    This will copy the .BridgeSortSave back to .BridgeSort and will close and restart Bridge so that the manual sort is restored.
    if( BridgeTalk.appName == "bridge" ) { 
    var backUpManSort = new MenuElement( "command","Backup Manual Sort", "at the end of Tools" , "backupms" );
    var RestoreManSort = new MenuElement( "command","Restore Manual Sort", "at the end of Tools" , "restorems" );
    backUpManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(fileSave.exists) fileSave.remove();
    fileSort.copy(fileSave);
    fileSave.hidden=true;
    RestoreManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(!fileSave.exists){
    alert("No backup file exists");
    return;
    app.document.sorts = [{ type:"string",name:"document-kind", reverse:false }];
    if(fileSort.exists) fileSort.remove();
    fileSave.copy(fileSort);
    fileSort.hidden=true;
    app.document.chooseMenuItem("mondo/command/new");
    app.documents[0].close();
    app.document.sorts = [{ name:"user",type:"date", reverse:false }];
    Hope this works for you.

  • Batch of files manually sorted in Bridge - Can I run a PS Action in that manual order?

    For some jobs my workflow ideally involves manually sorting the order of a batch of RAW files in Bridge (the RAW file names are as assigned by the camera) and then using a PS Action from Bridge to convert, save, and rename the batch of files. I want to end up with my image files sequentially numbered in the manually sorted order.
    However, my PS Action automatically processes the files in ascending order of their RAW file names and therefore my manually assigned file order in Bridge is lost.
    Is there a script (or other method) which will allow me to run a PS action from Bridge on a batch of files while keeping the manually sorted order for the purposes of the numbering sequence of the renamed output files?
    My current workaround is to Batch Rename in Bridge a copied set of RAW files as an intermediate step to running my PS Action on the renamed RAW file copies. It's not a bad workaround but if there is an easier way, I would much appreciate knowing about it!
    Geoff

    Geoff, here is an example that works for me. When I test ran the sample script based on some stuff that I do the files are process in the order of the manual sort and only the files in my selection are processed folders etc are ignored… I have NO idea how much people charge for this sort of thing I only do it for the learning process. If you can let me know what the Photoshop process is and your OS I 'may' be able to help but I make NO promises as Im still very much the learner with this stuff…
    You can give this a test if you like…
    #target bridge
    with (app.document) {
         if (sorts[0].type == 'user') {
              if (selections.length == 0) {
                   selectAll();
                   var userSel = selections;
                   deselectAll();
              } else {
                   var userSel = selections;
              for (var i = 0; i < userSel.length; i++) {
                   if (userSel[i].type == 'file') psProcess(userSel[i].spec);
         } else {
               alert('This window is NOT a manual sort?')
    function psProcess(filePath) {
         var psScript = 'while (app.documents.length) app.activeDocument.close(SaveOptions.PROMPTTOSAVECHANGES);' + '\n';
         psScript += 'var userDialogs = app.displayDialogs; \n';
         psScript += 'var userRulerUnits = app.preferences.rulerUnits; \n';
         psScript += 'app.diaplayDialogs = DialogModes.NO; \n';
         psScript += 'app.preferences.rulerUnits = Units.PIXELS; \n';
         psScript += 'app.bringToFront(); \n';
         // Pass File Object as toSource
         psScript += 'var thisFile = ' + filePath.toSource() + '; \n';
         psScript += 'var docRef = app.open(thisFile); \n';
         psScript += 'var baseName = docRef.name.slice(0, -4); \n';
         // Edit the document
         psScript += 'if (docRef.bitsPerChannel == BitsPerChannelType.SIXTEEN) docRef.bitsPerChannel = BitsPerChannelType.EIGHT; \n';
         psScript += 'if (docRef.mode != DocumentMode.RGB) docRef.changeMode(ChangeMode.RGB); \n';
         psScript += 'if (docRef.colorProfileName != "sRGB IEC61966-2.1") docRef.convertProfile("sRGB IEC61966-2.1", Intent.RELATIVECOLORIMETRIC); \n';
         psScript += 'docRef.flatten(); \n';
         // Call some functions
         psScript += 'processChannels(docRef); \n';
         psScript += 'processPaths(docRef); \n';
         psScript += 'if (docRef.pathItems.length >= 1) processSelection(docRef, 0); \n';
         psScript += 'fitImage(docRef, 880, 72); \n';     
         psScript += 'docRef.resizeCanvas(900, 900, AnchorPosition.MIDDLECENTER); \n';
         // set up new file path to save document
         psScript += 'var newFilePath = new File("~/Desktop/" + baseName + ".jpg"); \n';
         psScript += 'saveFileasJPEG(newFilePath, 9); \n';
         //      Close doc & put back prefs
         psScript += 'app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); \n';
         psScript += 'app.diaplayDialogs = userDialogs; \n';
         psScript += 'app.preferences.rulerUnits = userRulerUnits; \n';     
         // Use eval & toSource for Photoshop functions
         psScript += 'eval' + processChannels.toSource(); + '; \n';
         psScript += 'eval' + processPaths.toSource(); + '; \n';
         psScript += 'eval' + processSelection.toSource(); + '; \n';
         psScript += 'eval' + fitImage.toSource(); + '; \n';
         //psScript += 'eval' + imageArea.toSource(); + '; \n';
         //psScript += 'eval' + saveFileasTIFF.toSource(); + '; \n';
         psScript += 'eval' + saveFileasJPEG.toSource(); + '; \n';
         // Send script to Photoshop
         btMessaging('photoshop', psScript);
    General Functions
    function btMessaging(targetApp, script) {
         var bt = new BridgeTalk();
         bt.target = targetApp;
         bt.body = script;
         bt.send();
    function createFolder(folderPath) {
         var thisFolder = new Folder(folderPath);
         if (!thisFolder.exists) thisFolder.create();
    Photoshop Functions
    function processChannels(docRef) {
         for (var i = docRef.channels.length-1; i >= 0; i--) {
              if (docRef.channels[i].kind == ChannelType.MASKEDAREA) {
                   docRef.channels[i].remove();
                   continue;
              if (docRef.channels[i].kind == ChannelType.SELECTEDAREA) {
                   docRef.channels[i].remove();
                   continue;
              if (docRef.channels[i].kind == ChannelType.SPOTCOLOR) {
                   docRef.channels[i].merge();
    function processPaths(docRef) {
         if (docRef.pathItems.length >= 2) {
              for (var i = 0; i < docRef.pathItems.length; i++) {
                   if (docRef.pathItems[i].kind == PathKind.CLIPPINGPATH) {
                        docRef.pathItems[i].makeClippingPath(0.5);
                        docRef.pathItems[i].makeSelection(0, true, SelectionType.REPLACE);
                        docRef.pathItems[i].deselect();
      if (docRef.pathItems.length == 1) {
              if      (docRef.pathItems[0].kind == PathKind.WORKPATH) docRef.pathItems[0].name = 'Clipping Path'
              docRef.pathItems[0].makeClippingPath(0.5);
              docRef.pathItems[0].makeSelection(0, true, SelectionType.REPLACE);
              docRef.pathItems[0].deselect();
    function processSelection(docRef, offSet) {
         if (docRef.layers[0].isBackgroundLayer) docRef.layers[0].isBackgroundLayer = false;
         docRef.selection.expand(offSet);
         docRef.selection.invert();
         docRef.activeLayer = docRef.layers[0];
         docRef.selection.clear();
         docRef.selection.deselect();
         docRef.trim(TrimType.TRANSPARENT, true, true, true, true);
         docRef.flatten();
    function fitImage(docRef, newSize, newRes) {
      if (docRef.width >= docRef.height) {
         docRef.resizeImage(newSize, undefined, newRes, ResampleMethod.BICUBICSMOOTHER);
      else {
         docRef.resizeImage(undefined, newSize, newRes, ResampleMethod.BICUBICSMOOTHER);
    function imageArea(docRef, newArea, newRes) {
      var originalArea = docRef.width * docRef.height;
      if (originalArea > newArea) {
         var newWidth = Math.sqrt(docRef.width * newArea / docRef.height);
         var newHeight = (docRef.height * newWidth / docRef.width);
         docRef.resizeImage(newWidth, newHeight, newRes, ResampleMethod.BICUBICSMOOTHER);
      else {
         docRef.resizeImage(undefined, undefined, newRes, ResampleMethod.NONE);
    function bitmapOptions(res) {
      bitOptions = new BitmapConversionOptions();
         bitOptions.method = BitmapConversionType.HALFTHRESHOLD;
         bitOptions.resolution = res;
         bitOptions.shape = BitmapHalfToneType.SQUARE;
         return bitOptions;
    Photoshop Save As Functions
    function saveFileasTIFF(saveFile, aC, iC, la, sC, tr) {
         tiffSaveOptions = new TiffSaveOptions();
         tiffSaveOptions.alphaChannels = aC;
         tiffSaveOptions.byteOrder = ByteOrder.MACOS;
         tiffSaveOptions.embedColorProfile = true;
         tiffSaveOptions.imageCompression = iC;
         tiffSaveOptions.layers = la;
         tiffSaveOptions.spotColors = sC;
         tiffSaveOptions.transparency = tr;
         activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);
    function saveFileasJPEG(saveFile, qL) {
         jpgSaveOptions = new JPEGSaveOptions();
         jpgSaveOptions.embedColorProfile = true;
         jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
         jpgSaveOptions.matte = MatteType.NONE;
         jpgSaveOptions.quality = qL;
         activeDocument.saveAs(saveFile, jpgSaveOptions, true, Extension.LOWERCASE);

  • How to sort a collection based on their date?

    how do i sort a collection based on their respective dates which are in Calendar format?

    this is my codes
    /** This class is use to sort the call list base on their date
    import java.util.*;
    public class a implements Comparator
         /** compare the objects base on their types
         *     @obj1 the first object to be compared
         *     @obj2 the second object to compare with the first object
         public int compare(Object obj1, Object obj2)
         if (obj1 == obj2)
              return 0;
         if (obj1 == null || obj2 == null)
              return 0;
         if (!(obj1 instanceof Call) || !(obj2 instanceof Call))
              return 0;
         Call lhs = (Call) obj1;
         Call rhs = (Call) obj2;
         int s = lhs.getDate().compareTo(rhs.getDate());
         if (s != 0)     
              return s;
         return 1;
    this is the error
    a.java:21: cannot resolve symbol
    symbol : method compareTo (java.util.Calendar)
    location: class java.util.Calendar
         int s = lhs.getDate().compareTo(rhs.getDate());

  • How can I sort a collection of array with different object types in it ?

    Hi all,
    I have a collection of ArrayList; each array contains, at the first position, the same object type.
    I'd like sorting the collection by the name contained in the object at the first position of each array.
    Any suggestion ?
    Cheers.
    Stefano

    so you have a collection of a collection?
    My guess is that:
    You could subclass the arraylist and override it's compareTo method (I think that it implements comparable already but if not, go ahead and implement that interface).
    Or you could wrap your arraylist in another class that implements comparable.
    The key in my mind is correctly coding your compareTo method to look at the name in the first item of the arraylists. This should be doable and not too difficult.
    Correction: after reviewing the ArrayList api, I see that it doesn't implement the Comparable interface. You will have to make any class that either inherits arraylist or contains arraylist implement the comparable interface.
    One last thing: This question would probably have been better off in the java forum and not the Swing forum since it doesn't really involve Swing.
    Good luck!
    Edited by: petes1234 on Nov 19, 2007 6:17 AM

  • Sorting within iPhoto albums:  eliminate carryover from prior manual sorts?

    I am working with a large series of photos from a recent vacation, arranging the images for captioning and sharing as slideshows.  I've pulled the images over to new albums, one per day, and would ideally sort them once by date, then change to manual sort and adjust a few images' position in the queue.  But when I switch from date sort to manual sort, the images immediately revert to a relatively random-looking order that I think must be the order in which they were edited and then pulled into the finishing album.  Since some of these albums include several hundred photos, the idea of starting over with completely manual sort of all of the images is VERY painful.  Sorting them by date and then copying and dragging the sorted images to a new album, and then resetting to manual sort, reverts them to the same order they had in the previous album.
    Any suggestions for how to fix the date sort some way, then do a fresh manual sort that leaves the date sort as my starting point?
    (and is the question clear?)

    Another thank you. 
    I could not figure out how to manually movie my photos & videos.  "Manually" & "Reset manual" were greyed out in Smart Albums.  So I deleted Smart Albums and just made an "Album."   "Manually & "Reset manual" magically appeared un-greyed.
    Took me awhile to figure out that you can only manually move the last picture or video.

  • IPhoto album slideshow will not play in the manually sorted order.

    iPhoto Album slideshow will not play in the manually sorted order.

    Use a regular slideshow created by "File > New Slideshow".  These will play manually sorted. The instant slideshows cannot be played in a manual sort order.

  • Why is manual sort order disabled in album view

    I created an album and added pictures. By default, the photos are displayed in sort order by date. I'd like to manually order them. However, when I select the sort order drop down box, the option to manually order the photos is disabled. How can I enable it or why is it disabled.

    It is not available because you have yet to create a manual sort for that Album, and so there is no "Manual Sort" available. Create a manual sort manually (re-arrange the photos). Then the "Manual Sort" menu choice should become available.
    The menu switches between the existing sorts.
    I didn't design it. This makes sense to engineers, but not so much to users. Any time you manually re-arrange your images, the sort is automatically changed to "Manual". Aperture remembers the last manual sort; it is always available via the sort selector.

  • Trying to make a book - iPhoto changing the order of my manually sorted album.  Help?

    I'm trying to make a book from an album. 
    I have manually sorted the photos in the album and wanted autoflow to fill the book in.
    However, when I create a new book from the album, iPhoto seems to re-order the photos by one of the other options (eg: by date.)  If I change that sort option under view - sort, and switch it to manual, it wants me to manually re-sort based on the previous setting.  I have already done my sorting in the album.  Is there a configuration I can do that will get iPhoto to recognise that manual album order?
    (iphoto 11 v9.2.1)

    The only solution I've seen reported is to change the dates of the photos using the batch change command with a increment so the date sort will be the same as your manual sort - you can search the forum for one of these posts - and I do not remember how they proposed to undo the date change
    LN

  • Slideshow under Albums start at the end when manually sorted

    Mavericks and iPhoto 9.5.1. Slideshow under Albums start at the end when photos are manually sorted, this was not in the earlier version. When sorted by date the slideshow starts with the first photo.

    This is a know problem with iPhoto  9.5.1.  Report you problem to Apple via http://www.apple.com/feedback/iphoto.html.
    Currently the only workaround is to create the slideshow in the iPhoto slideshow mode and not directly from an album or event.
    OT

Maybe you are looking for

  • How to take Auto backup from External Network Drive to Mac pro internal Dri

    Hi, I have a External Network Drive (Buffalo 1TB) which i use as a server, now i need to take auto backup from that external drive to the Mac i am working on, which has 2TB Internal hard Disk. Please could anyone help me on this..... Thanks in advanc

  • Can I check whole DB for logical and physical consistency?

    Assume I get somehow the impression that a part of a DB is somehow corrupted. E.g. due to hard disc sector errors or logical reference errors/changed foreign key values. How can I tell Oracle DB to check itself resp. to verify all the content inside

  • How to delete Archive log files in ASM?

    Hi, Env: Sun Solaris 10.2.0.2.0 RAC with 2 node cluster using ASM I noticed that there are directories for ARCHIVELOG for every day. for example: 2007_01_13/ 2007_01_29/ ASMCMD> pwd +DG01/<<INSTANCENAME>>/ARCHIVELOG a) How to purge these files/direct

  • Taglibs in oc4j

    Hello, I'm trying to build a small webapplication in JSP that is showing a table in a browser. I'm using a tag from the Business Components Data Tags library. So in the JSP-page I have: <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %> <jbo:Appli

  • How to set the default tree node in JTree?

    I want to set a default tree node in JTree when start the program, what is the method or the function to call? Thanks~