Re: Making a list
Re: Making a list
- Subject: Re: Making a list
- From: Arthur J Knapp <email@hidden>
- Date: Thu, 06 Jun 2002 09:34:43 -0400
>
Subject: Making a list
>
From: email@hidden
>
Date: Thu, 6 Jun 2002 10:00:27 +0100
>
I am trying to construct a list of tab marks for use in XPress 4.11
>
set tabsBefore to {}
>
repeat with i from 1 to ColsReq
>
>
set end of tabsBefore to ((("Position:" & ((i-1)*icw)+(icw/2)) as
>
list) & "justification:centered") as list
>
This returns
>
{{"Position:1.1","justification:centered"},{"Position:
>
which XPress doesn't like because of the quotes. I need to return
>
{{Position:1.1,justification:centered},{Position:
There is a way to do this, though it is not really recommanded. Why
not simply work directly with a record:
set tabsBefore to {}
repeat with i from 1 to ColsReq
set p to ((i-1)*icw)+(icw/2)
set j to centered
set end of tabsBefore to {position:p, justification:j}
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.appleklub.cz/~koudelka/home.shtml>
on error number -128
end try
}
_______________________________________________
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.