• 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: John Delacour <email@hidden>
  • Date: Thu, 1 Aug 2002 00:27:30 +0100

At 2:49 pm -0700 31/7/02, Christopher Nebel wrote:

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

It's always been like that and I would NOT say that it's a bug. 'documents' is shorthand for 'every document' and the ae will be compiled accordingly. 'app' is an abbreviation for 'application' _in_certain_contexts_ but you use abbreviations at your peril because 'app file' means nothing, as you will see if you try to compile this

tell app "Finder" to app file id "ToyS'

The event viewer always logs the standard syntax and it is best for learners to stick to this and use the fancy or abbreviated syntax only when they are familiar with Apple Events.

JD
_______________________________________________
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.

  • Follow-Ups:
    • Re: Filter References and TextEdit
      • From: Christopher Nebel <email@hidden>
    • Re: Filter References and TextEdit
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Display dialog + compiled scripts
  • Next by Date: Re: Write to file??
  • Previous by thread: Re: get default browser?
  • Next by thread: Re: Filter References and TextEdit
  • Index(es):
    • Date
    • Thread