• 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
Javascript behaves differently, 10.5.8 vs. 10.6.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
      • From: Iceberg-Dev <email@hidden>
  • Prev by Date: Re: Logging from a plugin
  • Next by Date: Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
  • Previous by thread: Re: Logging from a plugin
  • Next by thread: Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
  • Index(es):
    • Date
    • Thread