• 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: Can not get "item" from "position"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can not get "item" from "position"


  • Subject: Re: Can not get "item" from "position"
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 5 Apr 2007 12:32:18 -0700

On Apr 5, 2007, at 12:17 PM, Emmanuel wrote:

And sometimes they do well. Implementing sophisticated AppleScript handling has some limits. Like Gödel could say, you can forge AppleScript propositions that are undecidable: the fact that they aren't true does not imply that their contrary is false. An obvious example is:

every window whose first paragraph begins with "Quomodo is a cool site, you should use it"

If a window is empty, then it won't be returned by the statement above, but neither by:

every window whose first paragraph does not begin with "Quomodo is a cool site, you should use it"

I tried it with TextEdit (but had to change "window" to "document" in the script to get it to run); it works as it should with text whose first paragraph begins with that text, with text whose first paragraph doesn't begin with that text, and with empty windows.


However, I think it should not return an empty window because empty windows do not have any paragraphs, so they don't have a first paragraph.

-- Michelle

--
Sex is a lot like bridge. If you don't have a good partner, then you'd better have a good hand.



_______________________________________________ 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
References: 
 >Re: Can not get "item" from "position" (From: has <email@hidden>)
 >Re: Can not get "item" from "position" (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Adding a leading zero
  • Next by Date: Re: Address book & Groups
  • Previous by thread: Re: Can not get "item" from "position"
  • Next by thread: finding group name in addressbook
  • Index(es):
    • Date
    • Thread