• 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: "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

  • Follow-Ups:
    • Re: Basic Script Blues
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Basic Script Blues (From: ba95 <email@hidden>)

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