Copy new file when dropped in one folder to another

Hi!
I have two folders, FolderA and FolderB
When a file is dropped in FolderA I want it to be copied to FolderB.
FolderA will contain other items, I only want to copy new files as they are dropped in FolderA regardless of what else is in either Folder and without copying the entire contents of FolderA.
This seems such a simple request but I cannot fathom it out.
Any suggestions greatly received.
Thanks
Colin

make the following folder action attached to folder A. (I tested it and it works).
on adding folder items to this_folder after receiving added_items
tell application "Finder"
try
duplicate added_items to folder "B" of folder "Desktop" of folder "username" of folder "Users" of startup disk
end try
end tell
end adding folder items to
In place of "username" put the name of your home directory. Also the above script works if folder B sits on the desktop. If it's somewhere else, modify the path in the above script.
Hope this helps.

Similar Messages

  • Why doesn't the original document I'm dragging and dropping from one folder to another move?

    Why doesn't the original document I'm dragging and dropping from one folder to another move?
    What's happening is the computer is creating a duplicte of the document and placing it in the new location with a new creation date.  The original document I wanted to drag and drop into a new location remains where it started as the "original" document and the new copy has this little arrow protruding up from the lower left of its icon.
    At first I thought it was an alias, but it's a copy of the document I thought I was dragging and dropping.
    What gives here?
    Steve

    That arrow indicates it is a linik to the original, though. This happens if you wish to drag files, for which you do not have permissions to do this operation, e.g. from Library or System folder. I am pretty sure you do not accomplish this operation from/to folders like Desktop or Documents; if so, there is a problem with your system.

  • 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.

  • How to copy paste a office document from one folder to another using J2SE

    HI!
    How can i copy a document file(.rtf,.docx.pdf) from one folder to another folder by executing Java code?
    Help needed

    Hi! You can use my api com.gmail.ronilloang.util.FileUtil for copying files. You can download it at my homepage [RA (TM) i-Software|http://ang.ronillo.estares.googlepages.com/]

  • Automatically open files when dropped into a folder

    I have a folder which has a constant stream of images being dropped into it. Is it possible for Photoshop to automatically open recently added images of a certain folder, then save (as .psd) and close to a different location?
    It would be nice for Photoshop to do this overnight as new images are being dropped into the folder.

    As a start you could read this thread.
    http://www.ps-scripts.com/bb/viewtopic.php?t=1735&postdays=0&postorder=asc&start=0

  • 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

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • Error message when I try to copy new files (images, documents) to mac from flash drive/SD card

    I am recieving an error message when I try to copy new files (images, documents) to mac from flash drive/SD card. The message is saying "operation cannot be completed because an item already exists with that name." They are brand new therefore not the same name? I cannot even put them in a brand new folder...  How can I fix this?
    Please help me!

    You don't need to recover the system.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press the space bar:
    dot_clean -m
    Switch to the Finder and drag the icon of the flash drive into the Terminal window. Some text will appear after what you entered. Press return.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear. Then quit Terminal and try the copy again.

  • Automator/Applescript to Rename files when dropped in folder based on parent folder name

    When a file is dropped in a folder ( ParentFolder/Folder/File.pdf )
    I want to rename the file to ParentFolder_Folder_01.pdf
        --Get folder
        --Get ParentFolder
        --Check for next available number and use it.
        If ParentFolder_Folder_01.pdf exists, try _02
    I automator, I have chosen folder action
    Added 'Get selected finder items'
    I have attempted to modify another sript I found here to no avail.
    on run {input, parameters}
        tell application "Finder"
            set theFolder to input as string
            set theNameOfFolder to name of folder theFolder
            set theFiles to every file in folder theFolder
            set theFolders to every folder in folder theFolder
            my ProcessFiles(theNameOfFolder, theFiles)
            my ProcessFolders(theFolders)
        end tell
    end run
    to ProcessFolders(theFolders)
        tell application "Finder"
            repeat with thisFolder in theFolders
                set theNameOfFolder to name of thisFolder
                set theFiles to every file in thisFolder
                set theFolders to every folder in thisFolder
                my ProcessFiles(theNameOfFolder, theFiles)
                my ProcessFolders(thisFolder)
            end repeat
        end tell
    end ProcessFolders
    to ProcessFiles(NameOfOuterFolder, theFiles)
        tell application "Finder"
            repeat with thisFile in theFiles
                set theSuffix to my grabSuffixOfFile(name of thisFile)
                set name of thisFile to NameOfOuterFolder & "_" & theSuffix
            end repeat
        end tell
    end ProcessFiles
    to grabSuffixOfFile(theFile)
        set text item delimiters to "_"
        return (text item 2 of theFile)
        set text item delimiters to ""
    end grabSuffixOfFile

    Normally it is a bad idea to do things with items that are in the attached folder (earlier OS versions will retrigger folder actions when an item is renamed, for example), and you don't need to use a Get Selected Finder Items action since the dropped items are already passed to your workflow (also note that the input items will be a list).
    It looks like you are trying to use multiple passes to add on the folder names, but you will have less of a headache if you build the base name and just deal with the number suffix.  If I understood your naming scheme correctly, the following script should do the trick - it isn't very fast, but should be OK for a few items at a time.
    on run {input, parameters} -- rename input Finder items (aliases) to name of containing folders
      set divider to "_" -- the divider character between name pieces
      set output to {} -- the result to pass on to the next action
      set counter to "01" -- start suffix at one
      repeat with anItem in the input -- step through each item in the input
      set anItem to contents of anItem -- dereference
      tell application "Finder" to if class of item anItem is document file then -- don't mess with folders or applications
      set {itemParent, itemExtension} to {container, name extension} of anItem
      if itemExtension is not "" then set itemExtension to "." & itemExtension
      set grandParentName to name of container of itemParent
      set parentName to name of itemParent
      set newName to grandParentName & divider & parentName & divider & counter
      set documentNames to my getExistingNames(itemParent)
      repeat while newName is in documentNames -- increment counter suffix as needed
                                            set counter to text -2 thru -1 of ("0" & (counter + 1))
      set newName to grandParentName & divider & parentName & divider & counter
      end repeat
      set name of anItem to (newName & itemExtension)
      set end of output to anItem -- alias still refers to the same file even after renaming
      end if
      end repeat
      return the output
    end run
    to getExistingNames(someFolder) -- get base document names (no extensions) from a folder
      set nameList to {}
      tell application "Finder" to repeat with aFile in (get document files of someFolder)
      set {fileName, fileExtension} to {name, name extension} of aFile
      if fileExtension is not "" then set fileExtension to "." & fileExtension
      set fileName to text 1 thru -((count fileExtension) + 1) of fileName -- just the name part
      set end of nameList to fileName
      end repeat
      return nameList
    end getExistingNames

  • In finder cannot easily change files from one folder to another. Drag and drop does not work. There should a cut and paste feachure.

    In finder I cannto easily change files from one folder to another.  There should de a cut and paste for this.  Not drag and drop. thanks P.

    paulfromqueretaro wrote:
    In finder I cannto easily change files from one folder to another.  There should de a cut and paste for this.  Not drag and drop. thanks P.
    OS X is all about keyboard shortcuts.
    To cut       cmd+x
    To copy     cmd+c
    To paste    cmd+v
    With the Mouse, hold command and drag to your destination.

  • PSE12 Organizer - can you copy photo from one folder to another and import copy into Organizer and still have original in other folder

    I have been using folders to organize all my pictures and I will copy photos from folder to folder, often having them in 2 or 3 folders based on use.  I tried to copy a photo in Organizer PSE12 from one folder to another and you can only move it, that means I can only have one copy of the photo.  That is fine if I am using tags and want to search for it, but I want to have mult copies in mult folders. Organizer will recognize that it is there but it won't import it into the new folder. Until I move it, it stays in the original folder.  I can drag it out of Organizer and drop (copy) it into a new folder fine, but it won't show in organizer in the new folder.  Is there any way to copy and have multiple copies show up in multiple folders?

    Hi,
    The organizer works on the principle of not having multiple copies of the same photo.
    If you have multiple copies spread in different folders, then making changes to one doesn't affect the others. The use of tags and albums are there to give different views of your photos.
    You can't have multiple copies with exactly the same name even if they are in different folders. You could select a photo and duplicate it (File -> Duplicate) and then move the copy into a different folder but the name will be different.
    If you want different folders for a specific reason, it is possible to use albums to collect the group of photos and then export them to a new folder outside of the organizer. You can also rename on export which is useful if you want to arrange the photos in a specific order.
    Hope that helps a bit.
    Brian

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • I am concerned about the health of my current computer but have not yet made the commitment to a new one, but: 1) How can I transfer my iTunes account to a new computer when I get one... and 2) What can I do if my current computer suddenly implodes and I

    I am a bit of a computer/Internet/iTunes dummy....
    I am concerned about the health of my current computer but have not yet made the commitment to a new one, but:
    1) How can I transfer my iTunes account to a new computer when I get one...
    and
    2) What can I do if my current computer suddenly implodes and I have not yet 'copied/'saved'/otherwise protected my account, as is? -- I have already had my computer crash once and had one of your people help me restore all of the paid for songs (none of the uploaded from my own collection of CD songs, of course, so I had to spend a long time rebuilding that) -- and I believe I was told you could only help me recover that material one or two times altogether, no?
    WithOUT purchasing a Mach or iCloud (I actually think I have one of the later, but rarely have checked it) account, is there anything I can do to responsibly protect my account?
    Thanks for any time taken on this!!!

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • 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

Maybe you are looking for

  • Intel(R) Embedded Server RAID Technology II and Oracle VM Server

    Hi There This is a head's up for anyone installing on a beast with the above mentioned on-board raid controller. You have to use the Intel Setup CD to configure the raid. When you use the raid's bios to setup raid, the bios assign a name to the raid

  • Corrency Conversion

    Hi All, I have currency conversion problem. COuld you please suggest me the best way to do it. From Currency: KRW From Factor: 100 To currency: USD To Factor: 1 Exchange Rate: 0.15555 There are table TCURR and TCURX. How to use these. I tried using a

  • Preference for not using middle names from address book in emails

    I have quite a few contacts that I have their middle names in my address book. When I type their name in a new email, their full name is displayed in the "To" field. I don't want the middle name to show up in my outgoing emails. I also don't want to

  • Can we get a character limit for the subject line?

    Some of the more annoying posts place the entire story in the subject line. (e.g. http://forums.ni.com/ni/board/message?board.id=170​&thread.id=334536&jump=true) The problem is that the edit window when replying blows the margins, making it wider tha

  • Need help opening really old FreeHand files

    I have some very old FreeHand files, I'm not sure what version but probably around v.5 or so. I have all the source files and fonts and I'd like to reconstruct FreeHand files in version 10 or even 9 if possible. Problem is I can't open the old FreeHa