Copy link to clipboard
Copied
去年までフレームメーカ2015を使用していましたが、今年からフレームメーカ2020を使用しています。
FM2015では取り込んだグラフィックのファイル名を「オブジェクトの属性」で確認することができましたが、FM2020では、取り込んだグラフィックのパスまでしか確認することができなくなってしまい、業務で大変苦慮しています。
どなたかFM2020で取り込んだグラフィックファイル名を簡単に確認する方法がございましたらご教授いただきたくよろしくお願いいたします
Copy link to clipboard
Copied
Hi,
You can check the path in the object properties. There is the path and the file name.
I do not remember, how this worked in FrameMaker 2015.
Question: Why did you not upgrade to FrameMaker 2022, but FrameMaker 2020?
Best regards, Winfried
Copy link to clipboard
Copied
ご回答ありがとうございます。
オブジェクトプロパティでパスやファイル名は確認できますが、文字数の制限があるようで、パスが長いと途中で切れて確認することができないので質問をさせていただきました。
パネルの「Insets」でファイル名を確認できることを教えていただきました。
また、FM2020を使用する理由は、取引先企業から指定されたバージョンだからです。
Copy link to clipboard
Copied
Yes, the Insets panel shows the path and file name. Also, the column size of the panel can be adjusted like a spreadsheet.
Copy link to clipboard
Copied
In the object properties in "Referenced File" the path and the file name is often cut off. However, you can just click in this field and press the arrow keys to move to the left or right to see the whole path.
When you click Browse, you can also see the path and the file name. There it's the same. When the file name is not fully displayed, just click in the file name and move to the left.
Copy link to clipboard
Copied
The translation showed "Object Attributes"--are you working with Structured FrameMaker or do you mean properties?
I find the Insets panel is the easiest way to view file names, but the Object Properties will work too. This is true in "regular" FrameMaker or Structured.
IF you are actually referring to Structured attributes, you can create a string for the file name but as far as I know, the name has to be filled in manually (key words are "as far as I know").
Copy link to clipboard
Copied
ご回答ありがとうございます
オブジェクトのプロパティでパスやファイル名は確認できますが、文字数の制限があるようで、パスが長い場合に途中で切れて確認することができない状態となっていました。
パネルの「Inset」は知りませんでした。今後使用したいです。
お忙しい中、ありがとうございました。とても参考になりました
Copy link to clipboard
Copied
グラフィックをクリックするだけで簡単にファイル名を確認できる常駐スクリプトを作りました。
長いパスは折り返し表示されるので、必要に応じてパレットサイズを変更してください。
FM10以降のどのバージョンでも動作すると思います。
不要になりましたら、OFFボタンをクリックしてからFMを再起動してください。
#target framemaker
//パレットを作る
function f_createWindow (){
var w = new Window ('palette', 'obj_prop', undefined, {resizeable: true});
var myText = w.add ("edittext", undefined, "", {multiline: true, name: "filePath"});
myText.alignment = ["fill", "fill"];
myText.minimumSize = [100, 20];
var myButtonGroup = w.add ("group");
myButtonGroup.alignment = ['center', 'bottom'];
var on_button = myButtonGroup.add ("button", undefined, "ON");
var off_button = myButtonGroup.add ("button", undefined, "OFF");
on_button.onClick = function () {Notification (Constants.FA_Note_BackToUser, true);}
off_button.onClick = function () {Notification (Constants.FA_Note_BackToUser, false);}
w.onResizing = w.onResize = function () {this.layout.resize ();}
return w;
}
//パレットの表示内容を更新する
function f_updateTools(){
var w = Window.find ('palette', 'obj_prop');
if (w === null) return;
if (w.visible){
if (!app.ActiveDoc.ObjectValid ()) return;
var obj = app.ActiveDoc.FirstSelectedGraphicInDoc;
if (obj.ObjectValid ()){
if(obj.type == Constants.FO_Inset){
w.findElement("filePath").text = obj.InsetFile;
}
}
}
}
//通知のコールバック
function Notify (note, object, sparam, iparam){
switch (note){
case Constants.FA_Note_BackToUser:
f_updateTools ();
break;
default:
break;
}
}
//パレットの有無を確認して、パレットを表示する
var w = Window.find ('palette', 'obj_prop');
if (w === null){
w = f_createWindow ();
}
w.show();
f_updateTools();
//通知の登録
Notification (Constants.FA_Note_BackToUser, true);
Copy link to clipboard
Copied
ヤタニさん
まさに求めていたものをご提供いただきありがとうございます。
大変に助かりました。
ありがとうございました