• 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
referencing the list class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

referencing the list class?


  • Subject: referencing the list class?
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Thu, 10 Apr 2003 11:09:57 +1000

I'm running this in Smile 1.8.8 under OS9.2

Can anyone tell me what is happening when I use the class name in these examples?

{"a", "b", "c"}
--> {"a", "b", "c"}
list {"a", "b", "c"}
--> ERROR: Can't get list {"a", "b", "c"}

set the second_item to a reference to the second item of {"a", "b", "c"}
--> item 2 of {"a", "b", "c"}
set the second_list_item to a reference to the second item of list {"a", "b", "c"}
--> item 2 of list {"a", "b", "c"} of +script;
-- This result is different to the previous one


set the second_item to the second item of {"a", "b", "c"}
--> "b"
set the second_list_item to the second item of list {"a", "b", "c"}
--> ERROR: Can't get item 2 of list {"a", "b", "c"}
-- We can refer to it but we can't get it

What is happening here? Why is it that we can we can refer to the object? How can we get the object?
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors

phone: 02 9318 0877 fax: 02 9318 0530
http://www.asauthors.org mailto:email@hidden
_______________________________________________
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: referencing the list class?
      • From: John Delacour <email@hidden>
    • Re: referencing the list class?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: can't get it to work
  • Next by Date: Re: referencing the list class?
  • Previous by thread: UI Scripting menu items
  • Next by thread: Re: referencing the list class?
  • Index(es):
    • Date
    • Thread