Help sought in understanding scope, placement of references, globals, properties in Quark "do script" routines
Help sought in understanding scope, placement of references, globals, properties in Quark "do script" routines
- Subject: Help sought in understanding scope, placement of references, globals, properties in Quark "do script" routines
- From: email@hidden
- Date: Sun, 18 Aug 2002 15:37:37 EDT
Esteemed QuarkXPress scripters,
I would appreciate advice/tips/reference sources to help me make better
use of Quark's "do script" command, which I have found can greatly speed
execution of scripts, but which also has proved quite frustrating for me
too many times.
I have been unable to make the "do script" command work during revisions
to an old script of mine, and I am at my wit's end. I can construct the
script so it works fine _without_ the "do script" use, but I'd love to
get this to work. It _did_ work in the old version, and I know that every
time I have used this method, work-intensive scripts speed up remarkably.
One of the complications of working with the "do script" is that I can't
easily troubleshoot, since nothing inside the sub-script (the one called
in do script) is recorded to the log.
As I've worked with this, I've tried various placement of properties and
globals, and tried to think carefully about where object references might
need to be. It seems that properties _don't_ go inside the sub-script,
but my intuition tells me that any global NOT used by the portion OUTSIDE
the sub-script _must_ go inside the sub-script (right?).
And, is it OK to have handlers that are used by the sub-script that are
written outside the sub-script?
And what about object references? Is there any way to pass an object
reference to the sub-script?
TIA,
Dan Feather
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Dan at featherweightstuff dot com -=-=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
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.