• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TextCommands "check" results wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Can not get "item" from "position"
  • Next by Date: Re: Can not get "item" from "position"
  • Previous by thread: TextCommands "check" results wrong?
  • Next by thread: iTunes - Overcoming File Permission Error -54
  • Index(es):
    • Date
    • Thread