AppleScript and External Harddrives

Discussion in 'Mac Apps and Mac App Store' started by Nicolasdec, Jul 28, 2007.

  1. Nicolasdec macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo
    #1
    i'd like to see if it is possible w/sample AppleScript to initiate a HD to USB HD file copy. e.g., as soon as the USB Harddrive drive is inserted and mounted, the AppleScript copies the entire Mac HD to the USB Harddrive.
     
  2. Nicolasdec thread starter macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo
  3. kolax macrumors G3

    Joined:
    Mar 20, 2007
    #3
    As in an automated backup kind of thing?

    I can think of the algorithm but have never coded in Apple Script so couldn't help you there. Also, there might be a problem with permissions to run the program as soon as you connect the hard drive...? Could be diagnosed as a potential trojan?

    Only way I can think of doing it is having to manually run the program when you connect your hard drive, or have the program running when you connect the hard drive.

    Found this for you - the guy here is doing the opposite but the call methods can be reversed to do what you are after.

    http://bbs.applescript.net/viewtopic.php?pid=80725
     
  4. Nicolasdec thread starter macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo
    #4

    Yes, all i need is when I run the Applescript it will copy my Macs HD to a Folder in my USB HD. It dosent even need to be as soon as a plug in the USB HD.
     
  5. Nicolasdec thread starter macrumors 65816

    Nicolasdec

    Joined:
    Dec 7, 2006
    Location:
    São Paulo

Share This Page