• 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: AppleScript and shell scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript and shell scripting


  • Subject: Re: AppleScript and shell scripting
  • From: has <email@hidden>
  • Date: Wed, 25 Jul 2007 21:59:25 +0100

On 25 Jul 2007, at 21:39, Mark J. Reed wrote:

I hate to interrupt the philosophical debate with a technical question, but something niggled at me about has's solution:

         if check fileName matches "l325010[a-z].*" then

May I infer from the above that TextCommands "matches" patterns are automatically anchored (that is, required to match the entire string)?

The 'check' command's 'matches' parameter compares the entire string. If you're just checking for a substring, you can use the 'contains' parameter instead. (It's not the most elegantly designed command with various overlapping bits of functionality having been added over time, but it does the job.)


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
References: 
 >Re: AppleScript and shell scripting (From: has <email@hidden>)
 >Re: AppleScript and shell scripting (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: AppleScript and shell scripting
  • Next by Date: Re: AppleScript-Users Digest, Vol 4, Issue 340
  • Previous by thread: Re: AppleScript and shell scripting
  • Next by thread: Re: AppleScript and shell scripting
  • Index(es):
    • Date
    • Thread