-
1. Re: documentpreferences.masterTextFrame is not working (may be a bug)
csm_phil Mar 22, 2012 3:08 AM (in response to Green4ever)Hi Green,
Can you please try the below modified JS code its working fine.
var content_Doc = app.documents.add(true); with(content_Doc.documentPreferences){ facingPages=true; pagesPerDocument=5, masterTextFrame =true; } alert(content_Doc.documentPreferences.masterTextFrame);thx
csm_phil
-
2. Re: documentpreferences.masterTextFrame is not working (may be a bug)
Marc Autret Mar 22, 2012 3:25 AM (in response to Green4ever)Hi Green,
It sounds like a bug to me—and we can notice that there is a similar known issue with presetting margins prefs during document construction.
A workaround is to temporarily adjust the root app.documentPreferences:
var docPrefs = app.documentPreferences, backup = docPrefs.properties; docPrefs.properties = { masterTextFrame: true, pagesPerDocument: 5 }; var doc = app.documents.add(); docPrefs.properties = backup;@+
Marc
-
3. Re: documentpreferences.masterTextFrame is not working (may be a bug)
Green4ever Mar 22, 2012 3:54 AM (in response to Marc Autret)Hi Marc,
Thanks for confirming that this looks like a bug.
I tried your solution and it is working good. It is indeed a needy one.
Hi csm_phil,
Thanks for your suggestion. Have you tested that in your system? It is not working. Please check it.
----------------
Green4ever
-
4. Re: documentpreferences.masterTextFrame is not working (may be a bug)
csm_phil Mar 22, 2012 4:00 AM (in response to Green4ever)Hello Green,
I have tested my modified JS code (MAC 10.4) its working fine, then only i have posted to forum.
thx
csm_phil
-
5. Re: documentpreferences.masterTextFrame is not working (may be a bug)
Green4ever Mar 22, 2012 4:05 AM (in response to csm_phil)Hi csm_phil,
Here I'm working in CS5 win xp SP3. Here I don't have a chance to try it in either mac or cs4. If you have one, can you please check it. May be it is a CS5 problem only.
thx,
Green4ever
-
6. Re: documentpreferences.masterTextFrame is not working (may be a bug)
[Jongware] Mar 22, 2012 4:07 AM (in response to csm_phil)CSM_Phil, the problem is that even though the alert says 'true', if you check your master page, you will see it does not contain a text frame.
(I was puzzled as well because I also thought it worked correctly to begin with.)
((Windows 7 and CS4, by the way.))
-
7. Re: documentpreferences.masterTextFrame is not working (may be a bug)
Green4ever Mar 22, 2012 4:14 AM (in response to [Jongware])Hi Jongware,
It fails to create a master text frame. But in alert message it gives "true".
Yes you are right, It was clearly said in my initial question.
-------------
Green4ever





