• 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 References and TextEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filter References and TextEdit


  • Subject: Re: Filter References and TextEdit
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 31 Jul 2002 14:49:25 -0700

On Wednesday, July 31, 2002, at 01:23 PM, email@hidden wrote:

I'm having trouble with filter references.

Specifically, what I want to do is:
tell application "TextEdit"
set foo to document whose path contains "Disk/Folder/File"
end tell

what I get is an error stating that:
can't get document whose <<class ppth>> of it contains
"Disk/Folder/File".

why is that? I'm new at all of this, but I can't seem to get this to work right.

The problem is that you're using a singular class name, not a plural. Change "document" to "documents" or "every document" and you'll get a list of documents that match. (This has got to be a bug, but I'm not sure whether it's a problem with TextEdit or AppleScript.)


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Filter References and TextEdit (From: email@hidden)

  • Prev by Date: Re: QXP5 image offset
  • Next by Date: RE: Dose anyone know.... Attrix Mac P&L
  • Previous by thread: Filter References and TextEdit
  • Next by thread: TextEdit and Text Item Delimiters
  • Index(es):
    • Date
    • Thread