• 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: Basic Script Blues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Basic Script Blues
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Re: Basic Script Blues (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: More date/time stuff
  • Next by Date: Re: More date/time stuff
  • Previous by thread: Re: Basic Script Blues
  • Next by thread: Re: Basic Script Blues
  • Index(es):
    • Date
    • Thread