Re: Applescript & Tex-Edit Plus
Re: Applescript & Tex-Edit Plus
- Subject: Re: Applescript & Tex-Edit Plus
- From: Michelle Steiner <email@hidden>
- Date: Fri, 24 Aug 2001 12:45:21 -0700
On 8/24/01 9:50 AM, Rachel <email@hidden> wrote:
>
Almost. I want the alphabetical characters to start at the same column
>
position so a later program can select only the text by character #.
>
I would need to insert a variable length space$ conditional on the length
>
of digit$. if it as any consolation, I have been working on this hours a day
>
and learning a lot.
This might help; it will need some modification, though. It doesn't do
exactly what you're trying to do; it right justifies a number, like this:
the text goes here 35
other text goes here 3
yet other text goes here 139
The text in this case is the path to a folder, hence the variable "the
folder name"
--Michelle
set theReport to theReport & thefolderName & my spacing(thefolderName,
itemCount) & itemCount & return
on spacing(foldername, theCount)
set spaces to " " --35 spaces
set padspaces to " " --5 spaces
set theSpaces to characters (length of foldername) thru (length of
spaces) of spaces
set thePadding to characters (length of (theCount as string)) thru
(length of padspaces) of padspaces
return theSpaces & thePadding
end spacing
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------