Applescript: Automatically Move File Type

Discussion in 'Mac Programming' started by imthekuni, Jun 16, 2009.

  1. macrumors member

    Joined:
    Jun 6, 2009
    #1
    Hi, I was wondering if anyone knew how to automatically move a file type to a sub-folder once it is downloaded? I want all mp3 files to move to a sub-folder called Music once it is downloaded. Thanks!
     
  2. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
  3. thread starter macrumors member

    Joined:
    Jun 6, 2009
  4. mx7
    macrumors newbie

    Joined:
    May 9, 2009
    #4
    Did you get the script to work?
    I'm trying to write something similar that moves the all the torrent files in the Download folder to the Trash.
    Any help would be appreciated.
    Thanks
     
  5. macrumors newbie

    Joined:
    Feb 11, 2011
    #5
    Hello Guys,
    i am not familar with scripting and i have an issue to get this AS running to the end of the script in case that only one file i am searching for is missing.
    I know why, but i can´t figure it out!I tried also if i could use the nohup option but this was not the solution here too.
    Please help me out ;-) Thank you
    :confused:

    my script:
    try
    do shell script "mv /Users/user_xy/Downloads/*.pdf /Users/user_xy/Downloads/PDF/"
    do shell script "mv /Users/user_xy/Downloads/*.dmg /Users/user_xy/Downloads/install4mac/"
    do shell script "mv /Users/user_xy/Downloads/*.pkg /Users/user_xy/Downloads/install4mac/"
    do shell script "mv /Users/user_xy/Downloads/*.app /Users/user_xy/Downloads/install4mac/"
    do shell script "mv /Users/user_xy/Downloads/*.tbz /Users/user_xy/Downloads/Archiv/"
    end try
     
  6. macrumors newbie

    Joined:
    Oct 14, 2011
    #6
    Very new MAC user

    Hi, this is my very first post. I wondered if anyone could explain me how this works? And if there is an easy way of learning how to do it.

    Thanks for your patience.

    Best regards :)

    ----------

    Dear angelwatt, it seems like your article link does not work anymore. Maybe due to that it was removed. Can you tell me where to find a similar article?

    br

     
  7. macrumors newbie

    Joined:
    Oct 14, 2011
    #7
    MacBook Pro 13" DK-2011

    Before nobody begins to write me a novel.... I´m gonna tell ya, I searched a little bit my self. Now I´m programming, and 10 times more happy with my mac. :apple:

    Worth All the money!
    ;)
     

Share This Page