Re: Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
Re: Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
- Subject: Re: Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
- From: Steve Swanson <email@hidden>
- Date: Wed, 9 Dec 2009 17:05:55 -0800
>
> Code fragment:
>
> system.log("Check Premiere/AME ");
> pproHandle = system.applications.fromIdentifier
> ('com.adobe.AdobePremierePro')
Isn't pproHandle supposed to be an array?
It is. Thanks. Somehow, in the _javascript_ running in the 10.5.8 Installer, pproHandle.pid is equated with pproHandle[0].pid.
My new code appears below and works on both systems:
pproList = system.applications.fromIdentifier('com.adobe.AdobePremierePro');
if (pproList != null && pproList.length > 0)
pproRunning = true;
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden