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

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 &amp;&amp; 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

  • Prev by Date: Re: Sudden problem with "choice hierarchy" in Snow Leopard
  • Next by Date: RE: Access to /usr/local from installer plug-in
  • Previous by thread: Re: Javascript behaves differently, 10.5.8 vs. 10.6.2
  • Next by thread: Postflight Script
  • Index(es):
    • Date
    • Thread