Trouble with variable persistance
Trouble with variable persistance
- Subject: Trouble with variable persistance
- From: "Romulus Barabas" <email@hidden>
- Date: Fri, 1 Jun 2001 04:56:37 -0400
I've got this scenario: I extract some data from a File Maker database into
some variables, a, b, c. I do some conversions and check-ups on them (using
subroutines), then I use these variables in QuarkXpress to arrange some
elements in a layout. To my understanding, I have to declare a, b, c as
global variables at the beginning of the script, otherwise subroutines won't
be able to do work on them and pass them on. When run from Script Editor,
this happens: the first time it works fine, the second time (without
recompilation) it doesn't pick-up data from File Maker - instead it goes
straight to QuarkXpress with the values inherited from the previous run. If
I try to force it by saying:
tell "File Maker"
copy cell "data" to MY a
it returns an error "Can not set a of <script> to 7.5. Operation not
allowed". The way I see it, I would need a reset of the variables, just like
the compilation does. Could somebody please show me the way out...
Thanks,
Romy