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: JollyRoger <email@hidden>
- Date: Sun, 22 Jul 2001 17:59:38 -0500
On 7/22/2001 2:25 PM, "monk" <email@hidden> wrote:
>
-- 7/22/01 01:28 pm: email@hidden said:
>
>
> 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>
Do the separate scripts compile OK before you combine them?
Obviously, what you posted isn't the entire script, so I can do very little
to help you figure out why you are getting the error.
>
i can e-mail you the whole shebang off list if you want to see it
Sure, feel free to send it to me directly.