Moving Files in a Folder to Another Folder
Moving Files in a Folder to Another Folder
- Subject: Moving Files in a Folder to Another Folder
- From: dealTek <email@hidden>
- Date: Sat, 19 Jan 2013 22:54:53 -0800
Hi all,
I'm fooling with a folder actions script - sort of works but does not always trigger sometimes a few seconds sometimes longer and some items that meet criteria don't get moved.
often items will get added to the main folder sometimes 1 per second or sooner...
Q1: Is there a way to get this to always trigger properly?
Q2: also - I'd like to set this up without using folder actions - and just start a normal applescript that will repeat with each item in the folder and move it all at once - how would I go about making that script
--------------------------
folder actions script ........
on adding folder items to this_folder after receiving added_items
repeat with i in added_items
tell application "Finder" to if (name of i) contains ".htm" then move i to "drive1:folderstuff:f1"
tell application "Finder" to if (name of i) contains ".txt" then move i to "drive1:folderstuff:f2"
tell application "Finder" to if (name of i) contains ".jpg" then move i to "drive1:folderstuff:f3"
end repeat
end adding folder items to
-----------------------
--
Thanks,
Dave - DealTek
email@hidden
[db-3]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden