RE: Filename (Short) Variable

2011-03-05 Thread Rick Quatro
Hi K'Chebe,

 

There is no way to do this with stock FrameMaker, but it could be done with
FrameScript. Here is how it might work. You would specify a user variable
for the script to use; this could be specified in an INI. For example,

 

[Settings]

FileNameVariable=ShortFileName

 

Now when you open or print the document or book, the script will
automatically run and set the value of the ShortFileName variable to the
name of the FrameMaker document without the path or extension. Since the
script is setting the value of a user variable, you are free to use this
variable anywhere you want, or not use it at all. And, because the script
runs automatically, you won't have to think about it once you create the
variable and put it where you want it.

 

If you are interested in a script like this, please contact me off list.
Please let me know if you have any questions or comments. Thank you very
much.

 

Rick Quatro

Carmen Publishing Inc.

585-659-8267

r...@frameexpert.com

 

*** Frame Automation blog at http://frameautomation.com

 

 

From: framers-boun...@lists.frameusers.com
[mailto:framers-boun...@lists.frameusers.com] On Behalf Of KGrace
Sent: Saturday, March 05, 2011 12:36 PM
To: framers@lists.FrameUsers.com
Subject: Filename (Short) Variable

 

I would like to be able to incorporate the framemaker file name into the
title of my document.  If I make use of the variable Filename (Short) I am
able to get the results that I want with the exception of the .fm that
comes along for the ride.  Does anyone know of an alternate method of
getting the filename returned WITHOUT the .fm extension.  

 

K. Grace

___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to framers@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.


Re: Filename (Short) Variable

2011-03-05 Thread Shlomo Perets

K. Grace wrote:


I would like to be able to incorporate the framemaker file name into
the title of my document.  If I make use of the variable Filename
(Short) I am able to get the results that I want with the exception
of the .fm that comes along for the ride.  Does anyone know of an
alternate method of getting the filename returned WITHOUT the .fm
extension.



This option is not available natively in FrameMaker.

A workaround is available in the context of FM-PDF or FM-PS workflows: as 
part of a one-time setup, you can place the filename variable in a text 
frame, add short PostScript code fragments before and after it, and tag the 
text frame as PS code. The PS fragments will remove the extension and 
control the formatting of the filename.


If this approach is applicable, I can send you (or anyone else interested) 
a .fm file demonstrating the workaround.



Shlomo Perets

MicroType, http://www.microtype.com
FrameMaker/TCS training  consulting * FM-to-Acrobat TimeSavers/Assistants


Free webinar March 14 (10am PDT), Walkthrough: From static PDF to rich 
interactive PDF



___


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to framers@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.