Re: TextCommands "check" results wrong?
Re: TextCommands "check" results wrong?
- Subject: Re: TextCommands "check" results wrong?
- From: has <email@hidden>
- Date: Thu, 5 Apr 2007 12:26:59 +0100
Tim Mansour wrote:
Using TextCommands to check whether a string might be a valid 13-
digit ISBN...
if check searchISBN matches "^978[0-9]{10}$" then
set searchField to "ISBN13"
end if
... is returning an error: "No result was returned from some part
of this expression".
Apologies, it's a bug. I accidentally left out a Boolean cast, so
'check' sometimes returns None (typeNull) instead of False which
AppleScript then interprets as 'no value'. Oops.
I submitted an update (TextCommands 1.1.2) to osaxen.com a couple
weeks back, but it doesn't seem to have been posted yet so I'll need
to follow that up. If you want a copy sent over, just mail me off-list.
HTH
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden