Ability to restrict NSService's text content to numeric value?

Is there a way to restrict a NSService's text content to a numeric value? For example, only show the service if the text content is a number?


Only documented entries for NSTextContent are:


  • URL
  • Date
  • Address
  • Email
  • FilePath


Was hoping there'd be a way to specify 'Number'. Anyone know of a potential way to achieve this? I could have the service appear for all text content and just show an error if the string sent isn't a number, but I'd rather not clutter the user's Services menu.