Re: Basic Script Blues
Re: Basic Script Blues
- Subject: Re: Basic Script Blues
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 19 Nov 2009 22:04:11 +0100
On Nov 19, 2009, at 8:42 PM, Stockly, Ed wrote:
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 / ?
(Ed means: a backslash \ rather than a slash /)
A slash is an appleScript escape character and may be causing
problems.
(Ed means: backslash is an applescript escape character)
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 (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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