• 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
set offsetGrif to offset of keyword in webText
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set offsetGrif to offset of keyword in webText


  • Subject: set offsetGrif to offset of keyword in webText
  • From: Greg <email@hidden>
  • Date: Fri, 12 Aug 2005 12:19:56 -0700

This seems fairly simple, both keywordHand and webText are identified as class string. KeywordHand is a single word and webText is the contents of a web page. It works fine if I put in a few paragraphs manually in place of webText (between quotes). offsetGrif comes back 0.

set offsetGrif to offset of keywordHand in webText


For debugging I tried:

display dialog (words 1 thru 3 of webText)

I get:

AppleScript Error
 Can't get words 1 thru 3 of "
".

and the event log shows:

    "Can't get words 1 thru 3 of \"
\"."

Thanks for any suggestions.

Greg


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: set offsetGrif to offset of keyword in webText
      • From: Adam Wuellner <email@hidden>
  • Prev by Date: Powerpoint 2004 Search and replace
  • Next by Date: Re: POSIX and lists question
  • Previous by thread: Re: Powerpoint 2004 Search and replace
  • Next by thread: Re: set offsetGrif to offset of keyword in webText
  • Index(es):
    • Date
    • Thread