Re: Filter References and TextEdit
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.