Re: Addressing List Items
Re: Addressing List Items
- Subject: Re: Addressing List Items
- From: Walter Bushell <email@hidden>
- Date: Wed, 04 May 2011 14:04:53 -0400
On May 4, 2011, at 11:25 AM, Michelle Steiner wrote:
> set my_list to {}
> copy "1" to end of my_list
> copy "apple" to end of my_list
> my_list
> --> {"1", "apple"}
You can also copy to the beginning of a list eg.
set EditArray to {"nothing"}
set item 1 of EditArray to "whatever"
log item 1 of EditArray
copy "Nous" to beginning of EditArray
copy "Gnosis" to end of EditArray
EditArray
-->(*whatever*)
Result:
{"Nous", "whatever", "Gnosis"}
--
I have noticed that riots tend to happen in places that have low bacon consumption.
_______________________________________________
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