• 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: Filter reference form question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filter reference form question


  • Subject: Re: Filter reference form question
  • From: Brennan <email@hidden>
  • Date: Thu, 18 Dec 2003 11:07:30 +0100

OK, let's take this a little further we've established that filter
reference forms should be able to accept

every obj whose propA is its propB

(and of course, the boolean should support any comparison operator -
equality, inequalities, contains, begins with etc.)

BTW, I have established that Safari 1.0.1 seems to handle this correctly!

tell application "Safari"
every document whose source contains its URL
-- try "http://brennan.young.net"; for a positive result
end tell

Amazing! But we fall down with the likes of

tell application "Safari"
tell document 1
every word of its text whose character 1 is (its character -1)
end tell
end tell

And the following seems to be really stretching it, but then again...

tell application "Safari"
tell document 1
every word of its text whose ((characters 1 thru 2) as string) is (its
(characters -2 thru end) as string)
end tell
end tell

(These latter two simply return 'every word').

So what are the reasonable limits?

Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: How to prevent Classic from starting?
  • Next by Date: Re: Filter reference form question
  • Previous by thread: Re: Filter reference form question
  • Next by thread: Re: Filter reference form question
  • Index(es):
    • Date
    • Thread