Automatically moving new files on desktop to folder.

Discussion in 'Mac Basics and Help' started by antipuls3, Feb 22, 2010.

  1. antipuls3 macrumors newbie

    Joined:
    Feb 22, 2010
    #1
    Hey all! I've been using Macs for awhile, and am growing to love them for sure. I'm starting to dabble with Applescript, and things like that... just delving into the magic of Apple products, and I'm coming up with a few questions, one of which I'm posting here! Thanks for any and all responses!

    I'm interested in leaving three icons on the desktop at all times. My "Macintosh HD" icon, a "Lost&Found" folder and a alias to a server I use consistently. All other files I want moved into the Lost&Found Folder on a consistent basis, and I want to delete these files weekly, or bi-weekly. I'm unsure as to if I should make an Applescript for this, or if there's a utility out there to do this. I have looked around a bit already, and haven't found much.

    So if anyone could help, that'd be awesome! Thanks so much guys! :)
     
  2. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #2
    Sounds like you might be able to write a folder action for the purpose. Right-click on desktop -> Configure Folder Actions. I don't know too much about AppleScript, so that's about as far as I can get you. :p
     
  3. antipuls3 thread starter macrumors newbie

    Joined:
    Feb 22, 2010
    #3
    I fooled around with that a bit, found nothing, and then tried Automator, which looks promising. I have it set up to "Find Finder Items" on the Desktop, and then another action to move these files to a new folder called Lost&Found. Only thing is, how do I get it to, when "Finding Finder Items", exclude certain aliases and such and only take new files that are created?
     
  4. -aggie- macrumors P6

    -aggie-

    Joined:
    Jun 19, 2009
    Location:
    Where bunnies are welcome.
    #4
    You need to use if-then-else-end if statements.
     
  5. antipuls3 thread starter macrumors newbie

    Joined:
    Feb 22, 2010
    #5
    Ok... I found nothing in the help for automator, and nothing in the menus. I'm pretty new to this, could you please expound a bit? Thanks!
     
  6. JNB macrumors 604

    JNB

    Joined:
    Oct 7, 2004
    Location:
    In a Hell predominately of my own making
    #6
    You can add multiple conditional statements as shown below. Keep in mind they're "all/any", so if you wanted a condition that read something like "(A & B) OR (C & D)", there's some more work involved. The nice thing is Automator can be used to create Workflows, Applications, Services, or Folder Actions depending on what's most appropriate for the need.
     

    Attached Files:

  7. jlindley macrumors newbie

    Joined:
    Feb 11, 2010
  8. -aggie- macrumors P6

    -aggie-

    Joined:
    Jun 19, 2009
    Location:
    Where bunnies are welcome.
    #8
    I was talking about using ActionScript. What JNB says would work for you too.
     
  9. antipuls3 thread starter macrumors newbie

    Joined:
    Feb 22, 2010
    #9
    So... I want all files and folders besides "Macintosh HD, Lost&Found, FCE HD DVD Tutorial alias and NAS2"

    How would either exclude these and move everything else, or find all file other than these... and move those? I must be missing something.
     
  10. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #10
    I don't have Leopard Automator in front of me, but you should be able to select "None" in JNB's screenshot, then list all of the filenames you want to exclude.

    You don't need to name any of your hard drives/partitions, since they aren't actually located on your desktop.
     

Share This Page