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

Re: referencing the list class?


  • Subject: Re: referencing the list class?
  • From: John Delacour <email@hidden>
  • Date: Thu, 10 Apr 2003 10:34:16 +0100
  • Mac-eudora-version: 6.0a14

At 11:09 am +1000 10/4/03, Malcolm Fitzgerald wrote:

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"}

What is happening here? Why is it that we can we can refer to the object? How can we get the object?

list, string, record, number, file specification etc. cannot be used this way. You can, on the other hand say

{1, 2} as string
--> "12"
"3" as list
--> {"3"}
{} as record
result & {a:4}
--> {a:4}
(path to me) as file specification
--> file "dx:Applications:Smile252:Smile.app:"

whereas to can say

file (path to me as string)
-- file "dx:Applications:Smile252:Smile.app:"

but not

(path to me as string) as file
--> "Can't make \"dx:Applications:Smile252:Smile.app:\" into a file."

The two kinds of thing are completely different.

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

References: 
 >referencing the list class? (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: referencing the list class?
  • Next by Date: Eudora - how to avoid format=flowed for scripting replies?
  • Previous by thread: Re: referencing the list class?
  • Next by thread: Eudora - how to avoid format=flowed for scripting replies?
  • Index(es):
    • Date
    • Thread