Re: Incrementing digits in a file name (was: writing multiple files)
Re: Incrementing digits in a file name (was: writing multiple files)
- Subject: Re: Incrementing digits in a file name (was: writing multiple files)
- From: monk <email@hidden>
- Date: Sun, 22 Jul 2001 15:25:38 -0400
-- 7/22/01 01:28 pm: email@hidden said:
>
On 7/22/2001 11:56 AM, "monk" <email@hidden> wrote:
>
>
> -- 7/22/01 05:58 am: email@hidden said:
>
>
>
>> -- 7/19/01 11:27 am: email@hidden said:
>
>>
>
>>> How about something like this?:
>
>
(snip)
>
>
>> whenever i get to 'on', i get an error, ' expected "else", etc., but found
>
>> "on".'
>
>>
>
>> what am i missing?
>
>
>
> i think this one was my bad syntax, i had an unended if in the larger
>
> framework, sorry!
>
>
>
> but, now i get an error 'expected error but found identifier.'
>
>
If you are retyping the script, then you are probably introducing typos into
>
the script. Instead of typing it by hand, try copying the code directly
>
from your emailer and pasting it into Script Editor.
no, i've been copying it into another scrript, and the identifier error
comes on 'IncrementFilename' after 'on' - i'm trying to change the variable
names to match up with the rest of my script, and get a range of no.s from a
user edit field between 1 & 99 for the total no. of files to process, here:
<script>
if text returned of (display dialog ,
"enter amount of files to generate from source (1-99)?" default
answer "" giving up after 12) is "1-99" then
set _juxtatext to open for access file (((path to desktop) as
string) & "juxtatext(s):juxtatext 01") with write permission
else
(display dialog "enter numerically the amount of files to generate
(1-99)" default answer "" giving up after 12)
set _juxtatext to open for access file (((path to desktop) as
string) & "juxtatext(s):juxtatext 01") with write permission
end if
<script>
i can e-mail you the whole shebang off list if you want to see it
thanks again
howie