Re: AppleScript and shell scripting
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