forbidden characters in applescript
forbidden characters in applescript
- Subject: forbidden characters in applescript
- From: "Jan-Bultereys" <email@hidden>
- Date: Mon, 10 Jan 2005 14:58:03 +0100
- Thread-topic: forbidden characters in applescript
hi,
I am trying to isolate the problem with forbidden characters,
but I am not able to declare this in applescript
I know you can 'overwrite' a forbidden character with the && but I am not able to
compile the variable "forbidden"
The idea is to declare "FileName" (check all the forbidden characters) and when it DOES contain those forbidden characters,
replace it with an _ (underscore)
any idea's are much appreciated.
--set forbidden to "&&< > : " / \ | *?&&"
display dialog forbidden
repeat with temp_file in file_list
set FileName to name of temp_file
if FileName contains "/" or "(" or ")" or "&" then
display dialog "You are using forbidden character"
end if
end repeat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden