• 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: Filter barcode out of a string (with grep?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Filter barcode out of a string (with grep?)


  • Subject: RE: Filter barcode out of a string (with grep?)
  • From: email@hidden
  • Date: Wed, 18 Jul 2012 11:14:28 +0200

hi Bert,


Try this:


You will need the scripting addition Satimage.osax 


set TheVar to "one;two;0123456789123456;tuesday;green"

set BarcodeFinder to find text "[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]" in TheVar with regexp and string result

display dialog BarcodeFinder


Best regards,jan


_______________________________________________ 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


  • Follow-Ups:
    • Re: Filter barcode out of a string (with grep?)
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Filter barcode out of a string (with grep?)
  • Next by Date: Re: Display dialog to a remote machine via EPPC
  • Previous by thread: Filter barcode out of a string (with grep?)
  • Next by thread: Re: Filter barcode out of a string (with grep?)
  • Index(es):
    • Date
    • Thread