Re: without case sensitive
Re: without case sensitive
- Subject: Re: without case sensitive
- From: "Gary (Lists)" <email@hidden>
- Date: Mon, 05 Feb 2007 20:24:10 -0500
"Robert Poland" wrote:
> The Smile site seems to be broke again, so I'll try here.
Please report that to your contacts for Smile and Satimage software, not on
this list. It smacks of being inappropriate.
> The following doesn't seem to work as I would expect.
>
> on main(theChoice)
> tell application "Smile"
> activate
> open theChoice
> delay 1
> change "Title" into "Name" in window 1 with regexp without case sensitive
> set clipboard to (get contents of window 1)
> end tell
> end main
>
> This will change "Title" into "Name" but has no effect on "title".
>
> Am I missing something?
Yes, regular expressions.
You asked to find "Title" and so you did. If you want to find "title" or
"Title", then you'll need to read the Smile documentation (or other standard
regular expression engine documentation...I can't recall which specific
reg-exp format Smile uses, but it's the common one, whatever that is
(PCRE?))
If you really do not need to find other things (that is, only those two
"title" and "Title"), and you do not wish to learn regular expressions
(they're pretty easy, IMO...BBEdit is a good teacher of the principle), then
just repeat the process that you're comfortable with.
change "Title" into "Name" in window 1 with regexp without case sensitive
change "title" into "Name" in window 1 with regexp without case sensitive
There's probably no more efficiency in this instance by using regular
expressions rather than repeating the task. (Over the long-term, however, I
think learning reg exp would yield efficiencies. <shrug> on the quantitative
analysis of that, but you get my drift.)
--
Gary
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden