• 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
TextCommands "check" results wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextCommands "check" results wrong?


  • Subject: TextCommands "check" results wrong?
  • From: Tim Mansour <email@hidden>
  • Date: Thu, 5 Apr 2007 16:03:08 +1000

Hi all (and has in particular):

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".

My reading of the TextCommands dictionary is that "check" returns a boolean, but in fact if there's no match it seems that it's not returning a result at all, rather than returning "false".

--
Tim Mansour <email@hidden>

_______________________________________________
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: iTunes - Overcoming File Permission Error -54
  • Previous by thread: Can it be done?
  • Next by thread: Re: TextCommands "check" results wrong?
  • Index(es):
    • Date
    • Thread