Re: Basic Script Blues
Re: Basic Script Blues
- Subject: Re: Basic Script Blues
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 19 Nov 2009 11:42:45 -0800
- Thread-topic: Basic Script Blues
> I often encounter the following OCR mistake: "equi/ibration" instead of
"equilibration".
> The following line does not work ("equi/ibration" is not found)
> set TheText to my SearchReplace(TheText, "equi/ibration", "equilibration")
There's nothing about this handler call that would cause it to fail, so the
problem may be in the handler itself. Can you post the SearchReplace handler
that generates the error?
Unless, is it possible that your OCR is returning a slash \ rather than a
backslash / ?
A slash is an appleScript escape character and may be causing problems.
Either way, I don't think we can help without looking at the handler.
> Any suggestion ?
>
> ~> 2- Can a script recognize the user of the mac ?
set myInfo to system info
set myInfo to {short user name, long user name, user ID} of myInfo
HTH,
ES
_______________________________________________
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