Javascript behaves differently, 10.5.8 vs. 10.6.2
Javascript behaves differently, 10.5.8 vs. 10.6.2
- Subject: Javascript behaves differently, 10.5.8 vs. 10.6.2
- From: Steve Swanson <email@hidden>
- Date: Tue, 8 Dec 2009 17:02:08 -0800
This is not an urgent problem, but it is frustrating. Is there a way to debug installer _javascript_ besides trial and error?
The feature is to detect whether Premiere Pro is running, and if it is, post a warning message (because the plugin we install won't be visible until PPro restarts).
The detection code is merged into distribution.dist after the package is built (using sed). I build my .mpkg on Snow Leopard w/ XCode 3.2. The installer works fine on 10.5.8 but fails on 10.6.2.
Code fragment:
system.log("Check Premiere/AME ");
pproHandle = system.applications.fromIdentifier('com.adobe.AdobePremierePro');
pproRunning = false;
if (pproHandle != null)
{
system.log("pproHandle is not null");
if (pproHandle.pid != null)
{
system.log("pproHandle.pid is not null");
pproRunning = true;
}
}
if( pproRunning )
{
system.log("Put it up!");
Running on 10.5.8:
JS: Check Premiere/AME
JS: pproHandle is not null
JS: pproHandle.pid is not null
JS: Put it up!
Running on 10.6.2:
JS: Check Premiere/AME
JS: pproHandle is not null
I have no other clues. I appreciate any advice you might provide.
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