Hi there, I am trying to create a folder action so that when i move files to a specific folder each file is sent to another folder depending on their filename.
Now for some reason the script halts at the IF check but i can't figure out why!
Any help would be greatly appreciated!
Code:
on adding folder items to this_folder after receiving these_items
display dialog "start"
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
display dialog "yay"
if name of this_item starts with "Drawn" then
display dialog "trueee"
-- enter move code here
else
display dialog "faaalse"
end if
end repeat
display dialog "end"
end adding folder items to
Now for some reason the script halts at the IF check but i can't figure out why!
Any help would be greatly appreciated!