The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
How would one checkthe value of apreference setting with ACL? I assume there is some kind of prefix required.
For example, I want to know whether peservices is on or off and
message peservices
doesn't work.
Thanks, guys. Just what I wanted.
I have the following in my custom/init folder: (5.4)
response(option('peservices'))
if ( option('peservices') == "off" ) {
set peservices=on
}
response(option('peservices'))
set peserverurl=http://.../e3/servlet/e3
Regardless of whether peservices is on or off, I get first response "off" and second "on". However, if I manually turn off peservices via either the command line or the preferences dialog, peservices is still off when I restart AE, even though I get the second "on" message. The url is always correct (I have a similar file in the custom/init folder for 6.0)
If I source the acl file from the command line, it works as expected. I assume because all the PE stuff is already loaded. It didn't fire when placed in theeditinit folder or the doctype folder.
Does anyone know if I can turn on peservices automatically at startup?
Hi Paul,
No, it doesn't matter when peservices is turned on, as long as it's on when AE is finished loading. My problem is if someone turns it off manually and forgets to turn it back on, the script in the init folder doesn't turn it back on when AE restarts.
If you have the time, could you turn off peservices and restart AE to see if your script turns it back on? I would be grateful.
Thanks, Paul and Lynn!
Instance.acl seems to work, when put in the doctype folder.
I use a "belt and suspenders" approach to keeping users' desired preferences set.
if (doc_type()=='chapter'||doc_type()=='section') {
_docload::chapter_menus();
} else if ...
from the command line to check them.
lou.argyres@ceb.ucla.edu | ceb.com
UNIVERSITY OF CALIFORNIA • STATE BAR OF CALIFORNIA
In Reply to Caroline Leccese:
Thanks, Paul and Lynn!
Instance.acl seems to work, when put in the doctype folder.
There's a further level of preferences related to dialogs that I unfortunately *cannot* access, even though they cry out.
<property>
<name>com.ptc.arbortext.changetracking.highlightchange</name>
<value><string>1</string></value>
</property>
http://communities.ptc.com/ideas/3348
Lou Argyres
CEB / Continuing Education of the Bar
lou.argyres@ceb.ucla.edu | ceb.com
UNIVERSITY OF CALIFORNIA • STATE BAR OF CALIFORNIA