Simple question about moving files with applescript : Not finisched

I use this script now but the dubble files stays in folder A. I would like to delete the dubble files so the folder is empty after moving. With this script the dubble files keep is folder A.
tell application "Finder"
activate
set this_folder to ("MAC2:A")
set these_files to every file of folder this_folder
move these_files to ("MAC2:B") with replacing
end tell

Your script works fine on the same volume. If you are going to another volume (disk or server) a move become a duplicate by nature. You would have to delete the files after duplicate is complete.
After everthing is moved
tell application "Finder"
activate
set this_folder to ("PowerMac:Temp:")
set these_files to every file of folder this_folder
move these_files to ("Server:Backup:") with replacing
delete these_files
end tell
Delete each file as you go
tell application "Finder"
activate
set this_folder to ("PowerMac:Temp:")
set these_files to every file of folder this_folder
repeat with these_file in these_files
move these_file to ("Server:Backup:") with replacing
delete these_file
end repeat
end tell

Similar Messages

  • Important Question About Moving Files

    Aloha DW Community
    I need help/confirmation on this before i do it. I have
    inherrited the website from hell; that meaning the folders on my
    computer and on the server are very unorganized. There are images
    all over the place, in places they just should not be stored. i am
    getting ready to switch to a new service provider for the site so i
    want to start as fresh as possible. i have already downloaded the
    whole site from the server to my local computer. i have gone
    through and deleted all the old files that are no longer needed.
    now before i upload this site to the new server i want to collect
    all the images that are spread about and place them in the same
    folder. my question is this - if i gather all the images together
    and upload the site, will dreamweaver correct all the link paqths
    that have been switched around by me moving all the pictures? i
    know DW does this, but i am not sure if it will do it on such a
    large scale.
    if you know the answer, please let me know.
    thank you in advance
    all the best to you
    e~

    Do all of your organizational moves within DW's Files panel.
    You should be
    fine.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sinewave zero" <[email protected]> wrote in
    message
    news:fcf30e$s5h$[email protected]..
    > Aloha DW Community
    >
    > I need help/confirmation on this before i do it. I have
    inherrited the
    > website
    > from hell; that meaning the folders on my computer and
    on the server are
    > very
    > unorganized. There are images all over the place, in
    places they just
    > should
    > not be stored. i am getting ready to switch to a new
    service provider for
    > the
    > site so i want to start as fresh as possible. i have
    already downloaded
    > the
    > whole site from the server to my local computer. i have
    gone through and
    > deleted all the old files that are no longer needed. now
    before i upload
    > this
    > site to the new server i want to collect all the images
    that are spread
    > about
    > and place them in the same folder. my question is this -
    if i gather all
    > the
    > images together and upload the site, will dreamweaver
    correct all the link
    > paqths that have been switched around by me moving all
    the pictures? i
    > know DW
    > does this, but i am not sure if it will do it on such a
    large scale.
    >
    > if you know the answer, please let me know.
    >
    > thank you in advance
    >
    > all the best to you
    >
    > e~
    >

  • A simple question about wrong sorting with multiple sort columns in Excel 2010

    Hi, everyone! I have encountered a problem that I don't know how to explain.
    So I post it here because I don't know if there is another more relevant forum...
    I have a data sheet with the students' scores for the course. 
    All the data were generated with the randbetween function,
    and pasted with the values.
    To rank the students by their performance,
    I did the sort with the column "total score" as the first sort-column
    and "final term" as the second.
    The weird thing to me is that the order of the data seems problematic.
    That is, all the rows are sorted correctly with the first sort-column.
    But for the rows with the same values of the first sort-column,
    there are some rows whose values of the second sort-column are out of order.
    (please look at the data file at
    www_dot_kuaipan_dot_cn/file/id_67204268108546068_dot_htm
    Please change the "_dot_" to the real literal dot.
    Especially the rows with 56.7 as the first sort-column value
    and some other values near the tail of the list.)
    I tried to manually input and sort the same values of both columns
    in a near-by region. The result was correct.
    When some friend copied all the data to paste in Notepad,
    and reload them in excel. The problem disappears.
    Some friend also tried to wrap a round function at the values of the 1st sort-column,
    the sorting order became correct!
    But they could not explain why either.
    How confusing! I even tried to swap the first and secod sort-column;
    the output was right.
    All the data were generated by randbetween function and pasted with values.
    Where could all the special characters, if any, come?
    Can anyone give me an explanation? I would be very grateful.
    Thanks in advance!

    Re:  Sort is not in proper order
    Sounds as if the data includes spaces or hidden characters that are affecting the sort.
    That is indicated by the fact that manually entering the data resolves the problem.
    Note:  You can use a public file storage website to hold your file and add the link to it in your post.
    Jim Cone
    Portland, Oregon USA
    Special Sort excel add-in (30+ ways to sort) - 3 week no obligation trial
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Simple Question about Unused Files

    I ran the Unused Files report in RoboHelp and found a ton of
    images that are no longer being used in my help project. Can I just
    go into the folder where I work and delete those? Or is there a
    special way to delete them?
    Thanks!

    Hi there
    I'd suggest creating a folder and moving them into the folder
    for a week or two until you are certain.
    Do this using Windows Explorer.
    Cheers... Rick

  • Getting a new macbook, questions about transferring files with Time Machine

    I now plan to switch computers to one of the new Macbook pros. Since I now use Time Machine, I'm planning to just upload the backup to the new computer when I get it. the backups are able to be transferred to a new one for an upgrade right?
    Also, I had to switch hard drives once about 2 years ago, and when I did, the backup DVD I made for my iTunes didn't remember which of my ~2000 songs are checked and which aren't, leaving me to have to do it manually over the course of a few weeks. Will Time Machine do this for me?
    I'm also running Leopard atm, will there be any problems uploading all the info since the new computer will be running Snow Leopard, and the backup was made through Leopard?

    falkner09 wrote:
    I now plan to switch computers to one of the new Macbook pros. Since I now use Time Machine, I'm planning to just upload the backup to the new computer when I get it. the backups are able to be transferred to a new one for an upgrade right?
    Not via a full system restore. You want to use +Setup Assistant+ when the new Mac first starts up. You can transfer directly from the old Mac, or it's backups. See [Setting up a new Mac from an old one or its backups|http://web.me.com/pondini/AppleTips/Setup.html] (or use the link in *User Tips* at the top of the +Snow Leopard > Installation and Setup+ forum).
    Firewire from the old Mac will be fastest, by far. If you use your network, connect via Ethernet cable; wireless will take an eternity.
    Also, I had to switch hard drives once about 2 years ago, and when I did, the backup DVD I made for my iTunes didn't remember which of my ~2000 songs are checked and which aren't, leaving me to have to do it manually over the course of a few weeks. Will Time Machine do this for me?
    It should.
    I'm also running Leopard atm, will there be any problems uploading all the info since the new computer will be running Snow Leopard, and the backup was made through Leopard?
    That's what +Setup Assistant+ is all about; it transfers everything except the old version of OSX.

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • I have a question about DWG files.  Can I open them on my MacBook Pro with OX 10.9.5 system?What app do I need to view and print them?

    I have a question about DWG files.  What app will allow me to open DWG files to view them on my Macbook Pro?

    Perform this Google search: ".dwg files on mac." The results should provide answers for you.

  • Simple question about mount and delay script

    Hello, I have a simple question about mounting volumes on start up.
    My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs)
    I use this script (daily) for serveral connections with external volumes I always need the connect to. ( In the script I use this code 3 times for other locations) I do this on start up.
    set Uname to "XXX"
    set Pword to "XXX"
    set someVolume to "afp://XXX.XXX.XXX.XXX/XXX/XXX
    mount volume someVolume as user name Uname with password Pword
    (same code for 2 other locations)
    When i do this on start up sometimes the script says there is no connection possible. I guess it's because on start up the connection isn't there. And 1 minute later when computer is total ready the connection is ok. When I run the script then It works. Just sometimes ( In the morning) 'It' want to connect but the script stops. When i do it manually(I run the script again) it works just fine.
    Is it possible that I need a delay? Can someone explain this?
    How would I make a delay handler for this script? Is that the best solution?
    Thanks in advance. This is something small i'm wondering about.
    Colin

    BTW, If you saved the script as an application +(and not as an application bundle)+ you could drop the script on to *Drop Script Backgrounder* (freeware).
    Then the script would run in the background, so, you wouldn't see it running in the Finder.
    <http://www.macupdate.com/info.php/id/7922/drop-script-backgrounder-x>
    Tom

  • Another person asking about moving files in lightroom

    I have spent several hours today trying to sort out, what I thought was going to be an easy question. 
    Moving files from my internal hdd to an external one.
    Ok, I know it should be easy, a trillion posts say how to do this.
    Sys info (from LR itself):
    Lightroom version: 3.3 [711369]
    Operating system: Windows Vista Home Edition Service Pack 2 (Build 6002)
    Version: 6.0 [6002]
    Application architecture: x86
    System architecture: x86
    Physical processor count: 2
    Processor speed: 1.7 GHz
    Built-in memory: 3061.6 MB
    Real memory available to Lightroom: 716.8 MB
    Real memory used by Lightroom: 343.8 MB (47.9%)
    Virtual memory used by Lightroom: 318.7 MB
    Memory cache size: 0.0 MB
    System DPI setting: 96 DPI
    Desktop composition enabled: Yes
    Displays: 1) 1280x800
    My files and their backups were scattered across 3 drives, I reformatted (a complete format - not a quick format) then proceeded to move the larger part of my library onto it using lightroom, apply some metadata and allowing lightroom to put them in date specific folders.
    Phew that was a long job. 
    Now I wanted to take what was left of my library that currently resides on my C:/ drive in my laptop and move it onto the external 1tb drive.  It says they are already there. 
    Searching for them outside of windows says they are not there.  Trying to use the import dialog with the move function comes up with nothing to move.
    I could drag and drop but I get a dialog box saying I can't undo anything that has been done to these files before.  I want to keep and be able to edit/undo my edits.  Isn't that what LR3 is supposed to be? 
    Anyways; I'd love some help.  I have tried watching some of David Marx videos (from the lightroom lab site) and a large number of threads on this forum.  I'm stumped and I'm frustrated.
    Thanks for your time.

    Okay....
    I think I've answered my own question... sort of.
    I tried the drag and drop method of copying and that seems to work.  I don't understand the dialog box and why it makes it seem so final.
    So, I don't know why the import function didn't work, when the other night it did, but the drag and drop method worked where the import dialog failed and I'll have to change the folders and metadata manually.

  • How do I import old FCP projects that have mysteriously changed to Linux Executable files?  Is it as simple as renaming the files with the.fcp extension?

    I had some FCP projects on an old G3 tower that I finally want to finish. I was able to grab everything, media, etc. to my macbook pro but all of the Final Cut Pro actual movies/projects have turned into "linux executable files" that FCP X won't import.
    I tried googling this issue but didn't really see any good answers. Would it be as simple as renaming the files with the .fcp extension?  I can't recall if my old version (really old) of FCP saves projects as .mov or .fcp files, but I'm assuming I'm not the only person this has happened to.
    Thanks for your help!

    I had some FCP projects on an old G3 tower that I finally want to finish.
    What version of FCP was this? The project files can probably no longer be opened in the newer version of the OS. You could try adding the .fcp suffix, but I don't think it will help for this. Projects files are .fcp.
    Regardless of the version, no legacy FCP projects will import into FCPX.
    Media is a different matter. These are probably QuickTime .mov files. If these are appearing as Unix ececutables, they're probably not recoverable either.

  • Question about openning files using SDK 10.

    I have written a Plug-In for SDK 9 that works wonderfully. One of the functions is for the user to be able to page (Next/Previous) between PDF files on our server. This functionality now longer works without crashing Acrobat 10. All I am doing is creating the URL path to the next/previous PDF, creating a CustomFileSys with the path and calling AVDocOpenFromFile.
    Does this no longer work with Acrobat 10 SDK?
    Thanks!

    Should work fine, AFAIK.
    For this level of issue, I would open a formal support request with developer support.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 10 Oct 2011 08:51:08 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Question about openning files using SDK 10.
    Question about openning files using SDK 10.
    created by Greggars<http://forums.adobe.com/people/Greggars> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3963065#3963065

  • A simple question about combo box

    Dear All,
    Just got a simple question about combo box: I have one of these selectors with labels based on filtered rows from a table.
    Is it possible to have one more label that would select all options?
    Like:
    Product A
    Product B
    Product C
    All Product
    Many thanks for your help!
    Gilles

    Hi Gilles,
    The purpose of ComboBox itself to select single option out of many.
    For your purpose, you may have to use "List Builder" which can accomodate 1 or more  to select.
    Please revert for more clarification if you need.
    With best wishes
    BaaRaa.

  • A simple question about performance!

    Hi! I have a simple question about performance. Suppouse that you have a servlet or a class with DB access, and you need to use a value several times in that page. What is best, to assign the value from say, a resultset or a request.getParameter() to a variable or to call the resultset or the request every time you need to retrieve that value? Which option uses less memory, which is faster, etc.?
    Hoping the best fou u
    Raul

    If you need more values from a db, the best is to open some connections (connection pool) and use the for accessing the db.
    To get the data only once, open the connection, get the data, store the data whereever you want: variable (class), hidden control (if you want to send from one page to another by request) and close the connection as quicky as possible.
    The advantage of the first method is that the most time consuming activity (connections opening) is done only once.

  • Question about download file in OAS4

    Question about download file in OAS4:
    I use Oracle Application Server 4.0.7 on my Windows NT 4.0 SP6;
    I use PL/Sql Cartridge developer a document system; It's use the
    upload/download in PL/Sql Cartridge;
    I read the document , the Upload/download in Pl/Sql Base on the
    Oracle Application Server's Content Service. the Problem is when I
    download a document, If I upload a Html or MsWord file, It will store in a LongRaw column, when me download ; It's tell me can't
    find a application to open this file; I will select a application
    from list to open the download file;
    As normal, It will open MsWord Automatic when download a "doc" file ; also It will open a new window of Browser to view a Html file;
    I check the download process on client Browser; when download
    file, The content-type always return "application/octet-stream";
    Also the download File will lost the postfix of the file,
    So Browser don't open the File Automatic;
    I think If I set the correct Content-Type , Browser can know how open the file; So I use owa_content.set_content_type procedure
    set the Doc file to "application/msword" , but the WEb Server always
    return "application/octet-stream";
    I didn't know how to do this problem, Plese help me.
    null

    I have a Tecra M2 and rely on your email update to ensure I have the latest drivers on my machine.
    When I received a Toshiba support email on 14 April 2005 giving reference to a QFE from Microsoft I assumed it would be necessary for my Tecra.
    I was very confused when I found that this QFE and subsequent ones posted on the 16 April 2005 relate to Pre SP2 critical updates no9t required if one has already taken earlier advice of updating to Service Pack, at the very least your narrative should make mention of this. I find it very difficult to believe that your updates are two+ years out of date.

  • Questions about properties files

    Hello,
    I have two questions about properties files.
    1. Is it possible to import a properties file from another properties file?
    2. Is it possible to have variables in a properties file as described below in code snippet.
    Thanks in advance,
    Julien.
    Code snippet:
    var_one=foo
    var_two=$var_one bar
    The second line would then read "foo bar"

    Hello,
    I have two questions about properties files.
    1. Is it possible to import a properties file from
    another properties file?If you write your own code to parse whatever import statement you decide to put in the properties file, yes. But there's no provision to do so in the core APIs or in the standard usage of these files.
    2. Is it possible to have variables in a properties
    file as described below in code snippet.Same as the answer to your first question. Though this kind of thing is more common, so there might be a library at jakarta or sourceforge or mindprod or something that does this.

Maybe you are looking for

  • GNOME power management doesn't notice my laptop battery discharge

    I can use my laptop for an hour (AC unplugged), and the battery is still at 98% or so, according to the GNOME battery applet. It's a Toshiba U400-124, with 4 cell (I think) battery, so only lasts about 2-2.5 hours anyway. The power stats program in G

  • IBook G3 won't connect to wifi

    So I tried to connect to the wifi at my work yesterday using my iBook G3 and it wouldn't connect. We entered the passcode in correctly but it said that the passcode was incorrect. I can connect to other networks just fine. People at my work could con

  • Ask the Experts: Introduction to Cisco Trustsec Solution and Configuration (from Webcast)

    This is an opportunity to learn and ask more questions about Cisco Trustsec solution. The Trustsec solution is designed to flatten the network regardless of the access method but still provide fully distributed and differentiated access control no ma

  • How to design a CDN ?

    hi all ! I need documents which guide us to design a Content Network, speacially How to choose CE ? thanks.

  • ABAP Runtime Error "ITAB_DUPLICATE_KEY"

    Hi all, I am getting Abap runtime dump "ITAB_DUPLICATE_KEY" There is already a line with the same key. details are.......... Program............. "SAPLRMPU " Error analysis You wanted to add an entry to table "\PROG=RMPU_SEL_SCREEN\DATA=REP_SR-PKHDIX