Moving Stack from one folder to another?

Is there a way to keep a stack together while moving it from one folder to another. When I grab the stack and drop it to a folder, I view the folder and the images are no longer in a stack. It would save me a lot of time if they would stay stacked. Am I missing something?
Thank you.

Well your code is unreadable because you didn't post it properly, but I'd guess you've fallen into the old multiple-delete trap in a new way. It's like this:
To start with you have messages numbered 0, 1, and 2, let's say. So you write a loop that lets i run from 0 to 2 and delete message number i in the loop. What really happens? The first time through the loop you delete message number 0, after which you are left with messages numbered 0 and 1. The second time through the loop you delete message number 1, after which you are left with message 0 only. The third time through the loop you delete message 2, which isn't there and you get that message.
That's just a guess, I didn't have the patience to read that ugly unformatted code. There are two ways to do the multiple delete properly, if that's actually your problem: (1) run the loop upwards from 0 and always delete message 0; (2) run the loop downwards from N-1 to 0 and delete message i.

Similar Messages

  • Getting error Can't read from the source or disk when moving documents from one folder to another folder in the library

    Hi,
    When we try to move documents from one folder to another folder in the document library using "Open with explorer" getting beloe error.
         Can read from the source file or disk.
        The user having below permission for the Library as well as site.
    Fullcontrol,Limited access--->Given directly
    Read,Limited access--->Givin through the all Test grp
    Contribute,Limited Access-->given through test members grp
    Read,Limited access---> givin through The group grp
    Could you please help me anyone....
    Thanks

    Hi Reddy,
    If you are moving files in two libraries in different sites, then the error will occur and it is by design that there are limitations on the DAV move commands that the DAV client is respecting.
    https://social.msdn.microsoft.com/Forums/en-US/6245f332-c609-4a7b-8e00-c8b5e46f7759/cant-move-files-using-windows-explorer-cant-read-from-source?forum=sharepointgeneral
    If you are moving files in the same library, I recommend you to use Wireshark to reveal the error message and enable IIS
    Trace Logging for Failed Requests to examine the IIS log file for troubleshooting.
    https://social.msdn.microsoft.com/Forums/en-US/47cd569d-98f2-4cca-b78e-fd178c097285/cant-read-from-the-source-file-or-disk?forum=sharepointgeneralprevious
    To narrow down the issue scope, I recommend you to test with another library and see if the copy in explorer can work.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Moving messages from one folder to another.

    hi there,
    I am trying to move messages from one folder to another. It works perfectly when i try to move one message at a time. However when i try to move more than 1 message(for e.g 2 messages) only the first message is being move to the destinated folder and while attempting to move the 2nd message it is throwing IndexOutOfBounds exception.
    This is how i am attempting to move the message.
    String destFolder = request.getParameter("fold");
    String srcFolder = request.getParameter("originalFolder");
    Store store = (Store)session.getAttribute("store");
    Folder sourceF = store.getFolder(srcFolder);
    sourceF.open(Folder.READ_WRITE);
    if(!(destFolder.equals("null")))
    String[] msgs = request.getParameterValues("list");
    System.out.println(msgs.length);
    Folder destinationF = store.getFolder(destFolder);
    destinationF.open(Folder.READ_WRITE);
    if(msgs != null)
    for(int i=0; i<msgs.length; i++)
         int msgNbr = Integer.parseInt((String)msgs);
         int[] msg_id = {msgNbr+1};
         Message[] msg = sourceF.getMessages(msg_id);
         sourceF.copyMessages(msg,destinationF);
         sourceF.setFlags(msg, new Flags(Flags.Flag.DELETED), true);
         sourceF.expunge();
         destinationF.expunge();
    session.setAttribute("mails", sourceF);
    try
    response.sendRedirect("../Inbox.jsp");
    catch(IOException ex)
    ex.printStackTrace();
    This is how i am trying to do it... Please help me i really need this urgently. Kindly help me ASAP.
    Help is very much appreciated.
    Thank you.
    Renuka.

    Well your code is unreadable because you didn't post it properly, but I'd guess you've fallen into the old multiple-delete trap in a new way. It's like this:
    To start with you have messages numbered 0, 1, and 2, let's say. So you write a loop that lets i run from 0 to 2 and delete message number i in the loop. What really happens? The first time through the loop you delete message number 0, after which you are left with messages numbered 0 and 1. The second time through the loop you delete message number 1, after which you are left with message 0 only. The third time through the loop you delete message 2, which isn't there and you get that message.
    That's just a guess, I didn't have the patience to read that ugly unformatted code. There are two ways to do the multiple delete properly, if that's actually your problem: (1) run the loop upwards from 0 and always delete message 0; (2) run the loop downwards from N-1 to 0 and delete message i.

  • Moving files from one folder to another caused freeze

    I now have a list of files stuck in the center of my screen.
    I'm sure a reboot will fix this (I hope!) but I thought it was a bug worth reporting.
    All I did was move a copy a collection of files from one folder to another folder.  It made the "move" sound, and the files have been copied, but something clearly went wrong

    Have java.io.File objects pointing to the three folders. Get the list of all the files in the folder. Start a loop and check if the filename ends with Data.dat. If it is so then copy file to the final folder.
    To Copy file you can use any of the two approaches.
    1. You can read that file as byte stream (java.io.FileInputStream) and write it to the other folder as bytes (java.io.FileOutputStream).
    2. You can use shell commands to do this. (java.lang.Runtime.exe() method)
    Ali Ahsan

  • Moving topics from one folder to another

    Can anybody please help me on this issue. Is there any way i
    can move topic from one folder to another without disturbing the
    link and all that. I am afraid to move topic from one folder to
    another because i feel that it might disrupt something behind the
    scene.

    As Peter said, it all should work fine. If it doesn't your
    projwect either suffers from a corrupt CPD-file or there already
    exists a file of the same name in the destination folder.
    If such a file has been copied there from outside of RH,
    you'll have to remove the offending file using Windows Explorer.
    If there is no such file, close your project, delete the file
    named <projectname>.cpd and open the project again.
    Regards
    ----Dirk Bock

  • Moving contents from one folder to another... what am I doing wrong?

    I'm trying to move files and folders between folders. Can someone tell me where I'm going wrong?
    The sourceFolder is hard coded using full path because the script is built on the fly and the path can be one of several folders that are constructed within a master application. The destination is user chosen. If I make the souce user chosen this script works so it must be something in the source path that is not right.
    set sourceFolder to "Mac HD/Users/devbox/Desktop/Projects/"
    set targetFolder to (choose folder)
    tell application "Finder"
    move entire contents of sourceFolder to targetFolder with replacing
    end tell

    Finder uses a different mac colon file path system than the unix slash delim.
    set sourceFolder to "Macintosh HD:Users:devbox:Desktop:Projects:"
    You can also use POSIX path to coerce them from one to the other.
    set sourceFolder to POSIX file "/Users/devbox/Desktop/Projects/"
    edit: I reviewed the script and added the word "folder" to help the finder tell statement as well. Also could set the initial sourceFolder variable to an alias if you weren't ever going to use it as text.
    set sourceFolder to POSIX file "/Users/devbox/Desktop/Projects/"
    set targetFolder to (choose folder)
    tell application "Finder"
    move entire contents of folder sourceFolder to targetFolder with replacing
    end tell
    Message was edited by: taylor.henderson

  • Moving music from one folder to another.

    Okay so here is the deal, I was stupid when I first started using iTunes and I didn't know what i was doing, long story short I have three different folders on my computer that have iTunes music. I want to move all of that music into the one generic My Documents/My music/iTunes folder. I know i can individually drag each song and then locate it, however that isn't practical for 200 songs. Is there any other, faster, more efficient way of doing this?
    Thanks

    Welcome to AD!
    Use the itunes menu > File > Library > COnsolidate Library command.
    If your itunes preferences > Advanced tab > itunes music folder is set to the generic location
    My Documents/My music/iTunes folder
    and
    the copy files preference is checked, they will get copied over without itunes losing their new path.
    Make sure songs still play before delting hte old folders.

  • Moving files from one folder to another using workflows

    Hi everyone,
    I need help creating a workflow. Within my Shared Documents Library, there is a folder, within which there are other sub-folders.
    Shared Documents--> Resumes --> Approved
    Shared Documents--> Resumes --> Rejected
    I want to create a workflow so that the resumes are uploaded to the Resumes folder and based on whether the user approves or rejects them, they are moved into either the Approved or Rejected folders. Any help would be highly appreciated
    Thank you.

    Why to make it more complex when we already have facility to group them by status option? Create a view and select group by “status” or create a separate web part page and add Shared Document library web part 2 times on the same page. For the first web part
    select filter option which only displays files with “Approved” status and for the other web part select it for “Rejected”
    Though you can refer below link if you wish to involve workflow into this
    http://captechconsulting.com/blog/dee-gavlick/moving-documents-restricted-subfolder-sharepoint-designer-workflow-sharepoint-2010
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Inherit metadata not working when content is moved from one folder to another

    Hi All,
    I have a unique situation for which i would like to know if there is any solution.
    We have WebCenter Content 11.1.1.8.0 installed with Framework folders, Accounts and RoleEntityACL (Access Control List-ACL) enabled.
    We are not using Accounts, but are using ACL since we want the end users to be able to modify the content access permissions.
    Now as per documentation - Managing Content Repositories section 11.2.3.2.1 What You Should Know About Item Level Security
    The following occurs in Oracle Content Server on setting custom permissions for a file or folder from the Item Level Security dialog:
    The account is changed to account WCILS/original_account.
    All users are by default granted RWDA on account WCILS. Changing the account to WCILS/original_account ensures that only the custom permissions determine the security on the content.
    The ACL content metadata fields, xClbraUserList and xClbraRoleList are updated with the custom permissions.
    The content metadata field, xInhibitUpdate is set to true, to prevent ILS from overwriting an item's own custom security with a parent folder's custom permissions.
    Now when i am copying or moving any item from one folder to another folder, it does not inherits the Roles Access Control Lists, User Access Lists of the destination folder in which i am copy the content. It does not inherit the other metadata values like comments and a few more custom metadata value.
    I understand that this is due to the xInhibitUpdate metadata field, mentioned above.
    Is there any way to override the xIhibitUpdate metadata field and set it to false?
    Does anyone know what event is fired when we perform the copy or move of a content item?
    Thank in advance
    Amit

    Any response will be helpful

  • How to mass moving iviews from one folder hierachy to another within PCD?

    Hi,SDN fellows.
    I found that it is really not user-friendly to move iviews from one folder to another within PCD>
    I tried to use Multiple Property Replacement to move some iviews in one folder to different folder hierachy in PCD, but I don't really know how to do so.
    Do you mass moving iviews in PCD before? How do you able to do it more efficiently.
    Thanks for help.
    Kent

    Kyle, the PCD Inspector seems able to faster my process a lot.
    What if I want to mass edit some properties. (I thought Multiple Property Replacement would able to do some, but it couldn't)
    Said I need to change the Id of a set of iviews:
    my_iview_a
    my_iview_b
    my_iview_c
    my_iview_d
    to
    iview_a
    iview_b
    iview_c
    iview_d
    but the MPR doesn't able to use the asterisk (*) operation.
    Thanks.
    Kent
    Thanks.

  • ML Automatically sorts files by name when moving from one folder to another.

    Hello, i usually used to move a bunch of files like images or mp3s from one folder to another and in Lion, when moving like 20+ files to another folder, they was being placed where you clicked.
    Seems that in ML when i move the same amount of same files, rather than placing them at the cursor, it just moves them and sorts by name. How to avoid this?

    Anonymous User,
    Links just request pages. Maybe the requested page could run the procedure in a before/after header process.
    Scott
    P.S. If you like, you can show your name in this forum instead of a numeric ID not only by signing your posts, but also by clicking on 'Forum Settings' and setting 'Name visible to others' to Yes. Unsigned, anonymous posts do not always elicit the most thoughtful or immediate responses from volunteer contributors to the forum.

  • Moving pictures from one folder/album to another

    I have recently updated to Yosemite and that updated to Photos.  I would like to move photos from one folder to another.  In iPhoto, my folders were in a left hand menu and I could drag photos to a new folder.  How do I do this in Photos?

    I figured it out.  If you click on view, you have the option to show the sidebar.

  • How do I move pictures from one folder to another folder?

    How are photos moved from one folder to another?  Second question:  How can a folder be renamed?

    In PSE11 Organizer, your managed folders(folders from which you have imported your media) are shown in your left panel under "My Folders". There is a small icon next to this label 'My folders" which on mouse hover says: "Show folder hierarchy". Click on this one to see the folder tree. Now expand teh tree to a folder from where you want to move files from. Also expand the folder tree such that your destinatio folder is also visible. Just click on source folder so that you see the media to be moved. Select and drag them to the destination folder icon.
    Also if you want to move your media to an unmanged folder(which does not have any media imported into EO yet), you need to right click teh parent folder and select "show all sub folders" to view that folder. And then you can move your media in the same way.
    Hope that helps!
    Regards,
    vaishali

  • Is there a way to automatically move mail from one folder to another?

    Is there a way to periodically, automatically, move mail from one folder to another?
    For example, I'd like to move mail from one of my IMAP/Archives folders to my MyMac/Archive folder and I'd like this to happen without intervention.
    Can this be done?

    I'll try to be more specific.
    When I'm done with an email, I archive it.
    Because I have multiple email accounts, this results in emails in multiple Archive folders (one per account). 
    I'd like to have these automatically all moved into one (on my Mac).

  • Move files from one folder to another javascript?

    I am running a 3-action droplet automatically using windows task scheduler.  Here are the 3 steps:
    1.    Batch file to move files from hot folder to processing folder
    2.    Run IPP (dr brown's image processor pro) using preloaded settings to make several sizes copies of the files.
    3.    Bat file to move the files from processing folder to archive folder.
    The problem I am observing is that Step 1 works and IPP begins to run.  It only processes the first few images, and then moves on to the 3rd step where the bat file is ran to move all files from processing folder to archive folder.   The trouble is, only a few images were processes (about 10 or so), yet all of the images get moved to the archive without being processed.  Is there a way to make sure that step 2 (IPP) doesn’t begin until all files have successfully been moved from the hot folder to the processing folder?  IPP starts right away and files are still being transferred to the processing folder.
    Does anyone have a script that will move files from one folder to another? 

    I'm sure I have see a way to close down Photoshop in a Photoshop script.  I never had the need to.  It may be a simple statement like app.close(); I don't know javascript and only hack Photoshop script mostly by looking at others code.  app.close(); is a guess on my part. Let me try it. I was wrong its photoshop.quit();
    So make your MoveToArchive.jsx look something like this
    try{
       var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");
       BAT.open("w");
       BAT.writeln('Copy /Y "c:\\Process\\*.jpg" "c:\\Archive\\*.*"');
       BAT.writeln('Del "c:\Process\\*.jpg"');
       BAT.close();
       BAT.execute();   // execute the temp bat file
    }catch(e){
    alert("Bat MoveFilesToArchive  failed to execute.");
    photoshop.quit();

Maybe you are looking for