PDA

View Full Version : Applescript: Automatically Move File Type




imthekuni
Jun 16, 2009, 09:26 PM
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!



angelwatt
Jun 16, 2009, 10:01 PM
See this thread (http://forums.macrumors.com/showthread.php?t=379911), which makes use of folder actions. Here's an article on it (http://www.bradrice.com/wposx/archives/68) as well.

imthekuni
Jun 17, 2009, 02:35 AM
thanks! just what i needed

mx7
Dec 4, 2009, 02:05 PM
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

hanopsun
Feb 11, 2011, 03:33 PM
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 cant 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

nohiding
Oct 14, 2011, 02:27 PM
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

See this thread (http://forums.macrumors.com/showthread.php?t=379911), which makes use of folder actions. Here's an article on it (http://www.bradrice.com/wposx/archives/68) as well.

nohiding
Oct 14, 2011, 06:20 PM
Before nobody begins to write me a novel.... Im gonna tell ya, I searched a little bit my self. Now Im programming, and 10 times more happy with my mac. :apple:

Worth All the money!
;)