• 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: Requesting assistance with rtfd and attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting assistance with rtfd and attachments


  • Subject: Re: Requesting assistance with rtfd and attachments
  • From: Nigel Garvey <email@hidden>
  • Date: Thu, 27 Sep 2012 13:00:11 +0100

Brian Christmas wrote on Thu, 27 Sep 2012 18:55:35 +1000:

>tell application "TextEdit"
>  activate
>  tell document frontmost

That's fun! 'frontmost' is of course an application property, nothing to
do with document specifiers. But you can use 0 or 1, a boolean, or
anything which returns a boolean, and TextEdit will take it as the index
of the front document:

  tell application "TextEdit"
    activate
    tell document (my name is "Brian")
      display dialog (get its name)
    end tell
  end tell


NG


 _______________________________________________
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

  • Prev by Date: Re: Requesting assistance with rtfd and attachments
  • Next by Date: Re: Requesting assistance with rtfd and attachments
  • Previous by thread: Re: Requesting assistance with rtfd and attachments
  • Next by thread: Re: Weird message saving to desktop
  • Index(es):
    • Date
    • Thread