Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ESTK System Variable Question

New Here ,
Mar 08, 2024 Mar 08, 2024
I'm trying to write my first script and I ran into a problem. I don't understand how to save the real value of a system variable to a variable. I only get the building blocks, not the value.
I'm sorry, I understand that this is a very stupid question.
170
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2024 Mar 08, 2024

Please post your code.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2024 Mar 08, 2024

var book = app.ActiveBook;
var shortBookName = new File (book.Name).name;
var comp = book.FirstComponentInBook;
var i = '';
while (comp.ObjectValid())
{
var compName = comp.Name;
Open (comp.Name, GetOpenDefaultParams(), new PropVals());
var doc = app.ActiveDoc;
var shortName = new File (doc.Name).name;
var page = doc.LastBodyPageInDoc.PageNumString;
i += shortName +" last page " + page + "\n";
doc.Close (1);
comp = comp.NextBookComponentInDFSOrder;
}
var doc = SimpleNewDoc ("C:\\Program Files (x86)\\Adobe\\Adobe FrameMaker 2019 (32 Bit)\\SHELLNEW\\FrameMaker2015.fm", false);
var mainflow = doc.MainFlowInDoc;
var tframe = mainflow.FirstTextFrameInFlow;
var pgf = tframe.FirstPgf;
var tLoc= new TextLoc();
tLoc.obj = pgf;
tLoc.offset = 0;
doc.AddText (tLoc, shortBookName + "\n" + i);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2024 Mar 08, 2024

Я пыталась получить короткое имя файла, но пока смогла сделать только так.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2024 Mar 08, 2024

I tried to get a short file name, but so far I've only been able to do this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2024 Mar 08, 2024
LATEST

Even after looking at your code, it's not clear to me what you are trying to do.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines