• 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: Thanks for help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thanks for help


  • Subject: Re: Thanks for help
  • From: Kai Edwards <email@hidden>
  • Date: Thu, 02 Jan 2003 09:24:56 +0000

on Wed, 01 Jan 2003 13:29:55 -0800, Nelson Byrne <email@hidden> wrote:

> I couldn't find its in the AppleScript Language Guide...

Not easy to search for a reference to such a common word, Nelson, but it's
in there. (The term 'its' is simply an alternative syntax to 'of it' - as
in, say, 'its item 1', instead of 'item 1 of it'.)

Check out Chapter 7 of the ASLG (Control Statements / Characteristics of
Control Statements / Tell Statements / page 186):

==================================

AppleScript defines two variables, 'it' and 'me' that you can use in Tell
statements.

The variable 'it' is the default target. The value of 'it' is a reference,
as in:

----------------------------------
tell document "Introduction" of application "Scriptable Text Editor"
get name of it
end tell
----------------------------------

The value of the variable 'it' is document "Introduction" of application
"Scriptable Text Editor". The result of the Get command is the string
"Introduction".

The variable 'me' refers to the current script, as in:

----------------------------------
property name : "Script"
tell document "Introduction" of application "Scriptable Text Editor"
get name of me
end tell
--result: "Script"
----------------------------------

The reference name of 'me' refers to the name property of the current
script. The result of the Get command is the string "Script".

==================================

HTH

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

  • Prev by Date: Re: Sending parameters to a remote applescript
  • Next by Date: Re: Getting raw AE codes
  • Previous by thread: Thanks for help
  • Next by thread: Re: Getting raw AE codes
  • Index(es):
    • Date
    • Thread