Hi Mike.  Thanks for checking into it!

I just checked and see now that CCK2 just pastes the contents of the "before" 
javascript files directly into the cck2.cfg.  If you find a way that Firefox 
can import a local javascript file from the Firefox install folder or any 
particular file path, let me know.  That would be useful.

BTW, I see that the CCK2 can write Windows registry keys too.  Does that mean 
it's possible that code can be written to also *read* registry keys?  If so, it 
seems like it would be possible to be able to read the HKLM:\Software\Policies 
section of the registry and therefore have a Firefox GPO template.  Is there 
anything that would break this idea?

--
Scott Copus, Lab Systems Engineer
Academic Technology | Western Kentucky University
http://www.wku.edu/it/labs

From: Kaply Consulting [mailto:consult...@kaply.com] 
Sent: Wednesday, May 03, 2017 2:04 PM
To: Copus, Scott <scott.co...@wku.edu>
Cc: James Pearson <jame...@moving-picture.com>; Enterprise@mozilla.org
Subject: Re: [Mozilla Enterprise] Firefox deployment/configuration/update 
guides?

> I was also able to create a variable *within* the cck2.cfg file and reference 
> it within the config {} object variable too and that works fine.  But I've 
> been unsuccessful in finding a way to import/load an external javascript file 
> in general from inside cck2.cfg.  I just get "Failed to read the 
> configuration file".  I've tried various permutations of 
> Components.utils.import() but since this is all new to me I don't really know 
> what I'm doing.  Hopefully Mr. Kaply sees this and can provide some tips.
You can use the mechanism in the CCK2 to import the file and I will just cut 
and paste the contents.
Components.utils.import wouldn't really work here because the imported file 
would get its own scope.
I'll see if I can figure out something.
Mike

On Wed, May 3, 2017 at 2:00 PM, Copus, Scott <scott.co...@wku.edu> wrote:
Hi James,

I was also able to create a variable *within* the cck2.cfg file and reference 
it within the config {} object variable too and that works fine.  But I've been 
unsuccessful in finding a way to import/load an external javascript file in 
general from inside cck2.cfg.  I just get "Failed to read the configuration 
file".  I've tried various permutations of Components.utils.import() but since 
this is all new to me I don't really know what I'm doing.  Hopefully Mr. Kaply 
sees this and can provide some tips.

--
Scott Copus, Lab Systems Engineer
Academic Technology | Western Kentucky University
http://www.wku.edu/it/labs
_______________________________________________
Enterprise mailing list
Enterprise@mozilla.org
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
enterprise-requ...@mozilla.org with a subject of "unsubscribe"

_______________________________________________
Enterprise mailing list
Enterprise@mozilla.org
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
enterprise-requ...@mozilla.org with a subject of "unsubscribe"

Reply via email to