Re: applescript-users digest, Vol 3 #2030 - 15 msgs
Re: applescript-users digest, Vol 3 #2030 - 15 msgs
- Subject: Re: applescript-users digest, Vol 3 #2030 - 15 msgs
- From: Rich Carroll <email@hidden>
- Date: Fri, 26 Sep 2003 09:31:02 -0500
Kai you beautiful Applescript madman.
This works perfect. I didn't know that Applescript would finish any earlier
iterations. This is part of a much larger script, so that's why it may look
disconnected. I appreciate all your "picky" comments. I obviously am not a
pro at this, so those points help me to understand the language a bit
better.
Thanks again to you and Michelle Steiner and everyone else.
Rich
On 9/25/03 6:01 PM, "email@hidden"
<email@hidden> wrote:
property validChars :
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"
on run
set folderDescript to validateFolderDescript()
-- do something with folderDescript
end run
on validateFolderDescript()
repeat
set txt to text returned of (display dialog "Enter main folder
description. Maximum of 24 alphanumeric characters." default answer
"myJobFolder")
try
if (count txt) is greater than 24 then error "Maximum of 24 characters"
repeat with i in txt
if i is not in validChars then error "\"" & i & "\"" & " is a bad
character. You may only use numbers or letters."
end repeat
exit repeat
on error e
display dialog e
end try
end repeat
"_" & txt
end validateFolderDescript
--
Richard McCormick-Carroll
Application Specialist
Capps Digital Development Group
email@hidden
email@hidden
312.220.1679 @ Desk
312.520.1679 @ Cell
www.cappsdigital.com
_______________________________________________
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.