• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help sought in understanding scope, placement of references, globals, properties in Quark "do script" routines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: OS 10.2 & Mail scripting has introduced a new wrinkle
  • Next by Date: excel script does not work
  • Previous by thread: Re: automatic saving to JPEG from Appleworks 6
  • Next by thread: excel script does not work
  • Index(es):
    • Date
    • Thread