Problem with Launch Command
preid at reidit.co.uk
Thu Feb 21 08:51:01 EST 2002
>On 21/2/02 9:40 am, "Peter Reid" <preid at reidit.co.uk> scribed:
>> Whilst Ben's idea looks good, it only provides a Mac solution, not a
>> Windows one, so I put this to one side for now until I've exhausted
>> any dual platform solutions. Also, I have a slight concern about
>> using AppleScript as to whether I can absolutely rely on the Mac
>> users' system having the full AppleScript support installed?
>The concern is only the same as having to wonder whether Quicktime is
>installed before playing a movie. But to check it is easy:
> if "AppleScript" is not in the alternateLanguages then
> answer "Applescript needs to be installed for this program to function."
> end if
OK Ian, I agree the AppleScript worry is not a big issue! However,
it still leaves Windows!!
The ext_appsOpen() function in the current Externals collection for
Mac OS Classic & X lists all open programs. So it should be possible
to detect whether some form of Acrobat viewer is already open on the
Mac. Once again, this leaves Windows to be solved!
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: preid at reidit.co.uk
More information about the Use-livecode