Re: Writing one script for two versions of an application
Re: Writing one script for two versions of an application
- Subject: Re: Writing one script for two versions of an application
- From: email@hidden
- Date: Thu, 23 May 2002 18:42:30 EDT
>
>In a message dated 5/23/02 David Wadson said:
>
>Using Acrobat 4.x and 5.x, for example, different terms are used in each
version for things like a page in a document. Rather than writing two
scripts, one for each particular version, is it possible to have a script
that executes different code depending on which application the user has?
The problem that I'm expecting is that if the program is written on a
computer that has only Acrobat 5.x, for instance, the script commands that
are Acrobat 4.x specific will return an error when Script Editor checks the
syntax of the script. Is there some way around this or is this even a
problem? I'm just using Acrobat as an example - I'd be interested in doing
this for QuarkXPress, the OS, etc... >>
David... Just thinking out loud here, but why not write your two Acrobat
snippets as separate scripts, then write an applet that detects which version
of Acrobat is in play and loads the appropriate script object?
Robert Kyle
Star Tribune
Minneapolis
_______________________________________________
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.