checking for characters
checking for characters
- Subject: checking for characters
- From: Tait Sanders <email@hidden>
- Date: Wed, 10 Sep 2003 08:59:59 +1000
I'm wanting to write a script that when an item is added to a folder,
after it is added - it checks the name of the folder to see if it has
'*.*'. - meaning for example 'firstname.lastname'. What I'm wanting to
check for is that there are characters and then a '.' followed by more
characters. I don't care how many characters before or after but there
has to be at least 1 one either side.
I've tried:
on adding folder items to this_folder after receiving added_items
set stanchar to B,
"a" or "b" or "c" or "d" or "e" or "f" or "g" or "h" or "i" or "j" or
"k" or "l" or "m" or "n" or "o" or "p" or "q" or "r" or "s" or "t" or
"u" or "v" or "w" or "x" or "y" or "z"
if name of folder b stanchar & "." & stanchar then
delete folder
end if
end adding folder items to
I've also tried:
on adding folder items to this_folder after receiving added_items
do script "find /Users/trc/Desktop/Transfer/"*.*"
set x to result
delete x
end adding folder items to
neither of these work.
can anyone help??
ta
tait
tait sanders
technical officer (trc)
fass unsw
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.