• 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: Making a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Question of the day: (.???) for Compiled AppleScript Files
  • Next by Date: Re: Is it possible to get owner name and use it to mount an volume
  • Previous by thread: Re: Making a list
  • Next by thread: newbie problem with lists
  • Index(es):
    • Date
    • Thread