Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: character testing



it doesn't work...
any suggestions?

Any reasons not to drop this test into perl? Or you could use OmniGroup's regular expression handler in obj-C. What I am getting at is that since you are in AppleScript Studio (presumably) there are a lot of tools available to you that can do the job better than AppleScript.

Karl Kuehn
email@hidden


On Monday, August 18, 2003, at 06:45 PM, Tait Sanders wrote:

a student creates a folder that is supposed to be named
'firstname.lastname' within another folder.
I want to write a script that makes sure that the name of the folder
follows that convention.

I've tried this:

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
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >character testing (From: Tait Sanders <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.