Filename variable w/out filename extension

Hi,
Is there a less kludgy way to create a variable that returns the filename without the filename extension, than putting a small, filled white box on top of it?
Thanks,
Mats Broberg

I had this problem a year or two ago and Shlomo of Microtype.com came up with a PostScript snippet that I embedded in the file and it erased the extension for me.
You may want to ping him through his site and see it he'd be willing to share, or if you know a PostScript programmer, they could fix you up. I will look around and see if I can find the snippet, but I haven't used it for a while....
Art

Similar Messages

  • Filename variable without .fm extension?

    I would like to create a filename variable, but without the .fm suffix. Could those of you more experienced than I let me know if this is possible?
    Any help would be really appreciated.

    Initial guesses:
    don't use an extension on the actual file
    hand-typed variable
    FDK
    Interestingly, using a link ("shortcut" on Windows) that lacks and extension, still ends up with the full original file name expressed by the system vars.

  • Framemaker uses $filename for short file name, can we edit this to change appearance? We do not want the short file name of long filename to include the .fm extension can this be removed or modified to make this happen?

    Framemaker uses <$filename> for short file name, can we edit this to change appearance? We do not want the short file name of long filename to include the .fm extension can this be removed or modified to make this happen? In compiling our books it would be helpful to not have this extension appear as it then requires us to create extra files without them.

    See: System Variables

  • Variable that keeps filename - LSMW

    Hello!
    I'm trying to see which variable keeps the filename uploaded to LSMW in the specify files step.
    Does anyone knows the name of the variable?
    Thanks
       RT

    Hi,
    In the LSMW steps screen you have 'User menu' in application tool bar.
    in that select the check box 'Display Read program'.
    Put a break point at perform read_frontend_file and execute the read data step.
    you can easily find which variable is holding the file name.
    at the same time the flat file data from presentation server will be written on apllication server. the field g_filename will hold that path.
    Thanks,
    Rajinikanth

  • Command DML in variables IN/OUT from in functions/procedures

    I Use function variables IN/OUT.
    Is possible command DML in variables IN/OUT?
    Example:
    Create Function status (v1 out number, v2 out char, v3 in number) return is varchar2
    begin
    select col1, col2 into v1, v2 from table where col3=v3;
    return 'Sucess'
    exception
    when others then
    return 'ERROR';
    end;
    is command:
    select v1, v2 from table(cast(status(v1,v2,2)));
    Tanks!!

    CREATE OR REPLACE TYPE debito_typ IS OBJECT
    (cod_status_debito number(3),
    dat_situacao date,
    log_saldo_zero char(1)
    CREATE OR REPLACE TYPE debito_tabletyp AS TABLE OF debito_typ;
    FUNCTION status_atual2 (p_seq_debito IN sisarr.debito.seq_debito%TYPE)
    RETURN debito_tabletyp PIPELINED IS
    BEGIN
    begin
    FOR rec IN (select his.cod_status_debito
    ,his.dat_situacao
    ,sta.log_saldo_zero
    from sisarr.historico_debito his
    ,sisarr.status_debito sta
    where his.cod_status_debito = sta.cod_status_debito
    and seq_debito = p_seq_debito
    and seq_historico_debito = (select max(seq_historico_debito)
    from sisarr.status_debito s
    ,sisarr.historico_debito h
    where h.seq_debito = p_seq_debito
    and (h.sit_cancelado = 'N'
    and h.seq_historico_finalizacao is null)
    and h.cod_status_debito = s.cod_status_debito
    and s.log_altera_status_debito ='S')) LOOP
    PIPE ROW(debito_typ(
    rec.cod_status_debito,
    rec.dat_situacao,
    rec.log_saldo_zero));
    END LOOP;
    return;
    exception
    when no_data_found then
    dbms_output.put_line('Dados não encontrados');
    when Others then
    dbms_output.put_line('ERRO: '|| SQLERRM);
    end;
    END status_atual2;
    select * from table(sisarr.pk_visao_debito.status_atual2(12))
    This Solution!!
    Tanks!!

  • Split full filename in path und filename

    Hi,
    is there any FM or method to split an full filename into
    path and filename?
    example:
    full Name = 'C:\TEMP\TMP\TEST.XLS'
    Path shell be 'C:\TEMP\TMP'
    File   shell be 'TEST.XLS'.
    Thanks for help.
    regards, Dieter

    Hello,
    Use this FM,
      DATA: LV_CHECK TYPE PCFILE-PATH.
      DATA: LV_FILE TYPE PCFILE-PATH.
      CLEAR: G_F_FLAG.
      LV_FILE = P_FILE.
      CALL FUNCTION <b>'PC_SPLIT_COMPLETE_FILENAME'</b>
        EXPORTING
          COMPLETE_FILENAME = LV_FILE
        IMPORTING
          PATH              = LV_CHECK
        EXCEPTIONS
          INVALID_DRIVE     = 1
          INVALID_EXTENSION = 2
          INVALID_NAME      = 3
          INVALID_PATH      = 4
          OTHERS            = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      REPLACE ALL OCCURRENCES OF '\' IN LV_CHECK WITH '/'.
    If useful reward.
    Vasanth

  • The variable $filename and the the *.fm extension

    When you need the title of the document importing into a document, you can use the variable <$filename>.
    This is useful as you can have a template that changes its name with the name of the file.
    However, the variable always writes the document name with the file extension (for example help.fm) making the variable useless.

    Gareth,
    Please also enter a feature request using the official request route via Bugbase & Wishlist and provide some use cases.

  • Searching for Automator variable for the Filename?

    Hi!
    I just started to use Automator and im unsing it quite well now.
    While creating a new service, id like to insert the filename of the selected file
    into the "Subject:" field of a new opened Mail.
    Everything works fine, i only cant find a way to have the filename of the selected file
    being inserted to the "Subject" area in my Mail?
    Perhaps i only need to know how to create this variable or du you know a different way to solve this?
    Regards
    DaNylz

    You can get the name and place it into a variable using the *Set Value of Variable* action where it will be available for use in the *New Mail Message* action. There isn't a default action to get just the name of a Finder item, so you will need to use something like the *Run AppleScript* action and do it yourself or find a third party action. Speaking of third party actions, it just so happens that I have a *Get Names of Finder Items* action - you can download it here. Using my action, an example using variables would be something like
    0) -- selected items are automatically passed to the service workflow
    1) *Set Value of Variable* { Variable: _Original Item_ }
    2) *Get Names of Finder Items* { Name: file name and extension }
    3) *Set Value of Variable* { Variable: Name }
    4) *Get Value of Variable* { Variable: _Original Item_ } ( *Ignore Input* )
    5) *New Mail Message* -- drag Name variable into the subject field

  • Inserting variable text - partial filename

    Our filenames are in this format:
    12345_Something_Something.indd
    InDesign can insert the entire filename as a text variable.
    What we want is for it to only insert the first 5 numbers – everything before the underscore — as a text variable. It would need to change every time the template is saved with a new filename. I’m thinking it’s possible to write a Javascript extension to do this in InDesign. I just don’t know Javascript at all.
    1) Is this even possible?
    2) What resources are available to help me get this accomplished?
    3) What is considered reasonable compensation for this project?
    Thanks for your help!

    Sychronization works by redefining same-named styles, variables, etc. to all use the same definition as the source document, so for example you might have a variable named <header> which in one file was a running header (character style) type, in another a running header (character style), but based on a different character style, and in yet another document is would be based on last on page instead of first on page, or a similar situation. Synching would cause the variable to look for the same information across all docs.
    That said, it sounds like this might be useful for adding a book file name, but there is a subtle difference. In the case of a normal variable, the information it picks up must be in the document where the variable is located. A running header variable ont he first page of a file in a book, for example, cannot pick up the information from the last page of the previous file in the book. Variables are self-contained within the files.
    You COULD define a custom text variable, perhaps with the book filename, and add it to all the documents, but it will not automatically update if you change the name of the book file.

  • Process variable string into filename at Save service

    Hello,
    Does anyone know how to put a string into the Pathname Pattern (Template) property of a Save service (FileUtilsService - Write Document) ?
    What I'm trying to do is strip the /'s out of a date string and put that date into a filename. For example, 042208_Greg.pdf
    Instead I get d:\WMS\C0419\04\22\08\_Greg.pdf
    I want: d:\WMS\C0419\042208_Greg.pdf
    I have a Set Value service putting a form submit date (MM/DD/YY format) into a process variable called @stringDate. I am stripping /'s out of the date and setting @stringDate like so: /process_data/@stringDate <--- concat(substring(/process_data/xfaform/object/data/xdp/datasets/data/C0419/Approvers/Init iator/Date,1,2),substring(/process_data/xfaform/object/data/xdp/datasets/data/C0419/Approv ers/Initiator/Date,4,5),substring(/process_data/xfaform/object/data/xdp/datasets/data/C041 9/Approvers/Initiator/Date,7,8))
    At the Save file service, I am using @stringDate in my Pathname Pattern (Template) to create the filename: d:\WMS\C0419\{/process_data/@stringDate}_{$/process_data/xfaform/object/data/xdp/datasets /data/C0419/Approvers/Initiator/CompletedBy/Name$}.pdf
    Thanks,
    Greg
    Needham, MA

    Hi Greg
    You've done a great job getting this done with xpath.
    It looks to me like you've done everything right - what's not working - are you getting an exception, or is the file being saved with the wrong name?
    There is a nice little DateFormatter component here, that might make things a little easier/flexible.
    http://avoka.dnsalias.com/confluence/display/Public/Formatter+DSC
    Howard

  • Acces dynamic configuration variable (e.g. filename) in ABAP mapping class

    Hi experts
    I am searching for a possibility to acces a dynamic configuration variable (DCV) in an ABAP mapping class. Since I could not find a solution in SDN and other sources, I hope somebody in this forum can help me.
    What I already found is the following code which can be used to set a DCV, but what I would be interested in is how to read a DCV.
    Any help is appreciated.
    Markus
    METHOD if_mapping~execute.
    DATA l_record type mpp_dynamic.
    * copy payload
    result = source.
    * add an adapter specific attribute
    l_record-namespace = 'http://sap.com/xi/XI/System/File'.
    l_record-name = 'FileName'.
    l_record-value = 'test.xml'.
    dynamic_configuration->add_record( l_record ).
    ENDMETHOD.

    Hi Markus,
    you can find everything in my blogs
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    Regards,
    michal

  • Consolidating MSP Files using a variable as the filename

    Hi All
    I am trying to consolidate a number of MSP Files without having to hardcode the filenames.  Here is what I have so far and it is falling over on the Application.ConsolidateProjects..... line.  Any help/advice would be appreciated:
    Sub ImportWorkstreamPlans()
    Dim objFSO As Object
    Dim objFolder As Object
    Dim objFile As Object
    Dim i As Integer
    Dim Path As String
    Application.DisplayAlerts = False
    'Create an instance of the FileSystemObject
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Get the folder object
    Set objFolder = objFSO.GetFolder("D:\Delivery Assurance\CPP Build")
    i = 1
    'loops through each file in the directory and prints their names and path
    For Each objFile In objFolder.Files
    'FName = objFile
    Application.ConsolidateProjects Filenames:=objFile, NewWindow:=False, AttachToSources:=False, HideSubtasks:=True
    ViewApply Name:="CPP View"
    GroupApply Name:="No Group"
    SelectRow Row:=1, RowRelative:=False
    Next objFile
    FilterApply Name:="All Tasks"
    OutlineShowAllTasks
    SetAutoFilter FieldName:="Flag3", FilterType:=pjAutoFilterIn, Criteria1:="Yes"
    GroupApply Name:="Sub Project"
    Application.DisplayAlerts = True
    End Sub
    Thanks in anticipation.
    Tony
    TKHussar

    Tony,
    I think you made a typo when you say your individual plans are stored in "D:\CPP Build Template\CPP Plans" because your code is looking for the files in "D:|CPP Build Template\CPP
    Build Plans". Maybe that's your runtime error right there.
    However, I have to take back something I said previously. The FileName parameter of the ConsolidateProjects Method can, and should in this case, be a full path. I did a little further testing to simulate your configuration. I have a "Y" drive with
    a desktop folder. I created a blank Project 2010 template file and a simple test file and placed both of those on the "Y" drive desktop. I am running Project 2010 on the "C" drive of Windows 7 on a virtual PC. The macro code below is in
    the Global file. I open the template file and then run the macro. Everything works fine until it attempts to invoke the autofilter. Then it fails and I didn't have time to figure it out so I use a normal custom filter instead.
    Sub ImportWorkstreamPlans()
    Dim objFSO As Object
    Dim objFolder As Object
    Dim objFile As Object
    Dim i As Integer
    Dim Path As String
    Dim FName As String
    Application.DisplayAlerts = False
    'Create an instance of the FileSystemObject
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Get the folder object
    Set objFolder = objFSO.GetFolder("Y:\Desktop")
    i = 1
    'loops through each file in the directory, determines if they are a project file, and then inserts them into a static master
    For Each objFile In objFolder.Files
        If InStr(1, objFile.Path, ".mpp") > 0 Then
            FName = objFile.Path
            Application.ConsolidateProjects Filenames:=FName, NewWindow:=False, AttachToSources:=False, HideSubtasks:=True
            ViewApply Name:="Gantt Chart"
            GroupApply Name:="No Group"
            SelectRow Row:=1, RowRelative:=False
        End If
    Next objFile
        OutlineShowAllTasks
        FilterApply Name:="All Tasks"
        FilterEdit Name:="TKH", taskfilter:=True, create:=True, overwriteexisting:=True, _
            FieldName:="Flag3", test:="equals", Value:="yes", ShowInMenu:=False, showsummarytasks:=True
        FilterApply Name:="TKH"
        'SetAutoFilter FieldName:="Flag3", FilterType:=pjAutoFilterFlagYes
        GroupApply Name:="Sub Project"
    Application.DisplayAlerts = True
    End Sub
    John

  • IBOT - can we put the Repository Variable in the filename

    Hi,
    In an IBOT i use the Advanced - custom script option to export the extract to a server. instead of altering the javascript, i was hoping to add the timestamp to the filname by including a Repository dynamic variable in the 'Other Parameters' fields when contructing the name, is this possible
    e.g. can anything like this work... file_@{biServer.VARIABLES['sTodayDate']}.xls
    thanks
    Edited by: SQhell on Jan 16, 2013 11:15 AM

    I'm not sure about your approach but going with batch file or shell script is more easy. Look for the file created with system date then change the filename as needed.

  • Variable to increase filename

    In SignalExpress (great product!) we use the "save as next available filename" extensively,
    but sometimes (most of the time in our case) it would be useful to be able to adjust the number
    that SE uses to increase the filenamenumber, EG:
    if we save say motor.1000 and we make a next measurement at 1100 rpm it would be nice to
    be able to adjust the increment say for example 100, so the next measurement would be at 1100, then
    at 1200, 1300 and so on.
    Could this be achieved?
    Also, maybe better, say we take the rms value of the speed (we could measure that signal) then
    automaticaly take a measurement on a calculated value, i believe there is a possibility to do something
    event related, but they all function on a signal I beleive and not on a calculated value of a signal.
    Is there a dedicated suggestion board for suggesting some "customer wishes" to SignalExpress or is
    this the best way to do it?
    O and one little thing, we can choose to display a result as different ways, charts, gauges, meters, table,
    and even "large display" but it would be useful to be able to just display as an textvalue, so
    I could wirte in the documentation "the rms value is :  VALUE " (tip for version2.1 :-) )
    I am sure SE will be a success, it is a very productive tool!

    Hi,
    Thank you so much for your feedback. There is an official way for you to make suggestions through the Product Suggestion Center. Although this is a also a fine place to make product suggestions, for the reason that someone else may have already found a suitable way to do what you want, and share that with you.
    I don't believe that there is currently a way to increment the file name as you asked by providing the step with a "start filename value" and "increment", but this is an excellent suggestion!
    For your last suggestion of having a viewer which just displays the text value, the only workaround that I was able to do in the meantime (and forgive me if it sounds silly), was to:
    1. show the RMS value in the documentation tab,
    2) place your cursor in front of the displayed value and under the Documentation top-menu option select "Set Object Size...",
    3) set the size to be something like width=5, height=0.5 inches.
    4) rename the RMS signal to "The rms value is".
    If you make the Object Size small enough, the text should appear on a single line and appear how you wanted it. Problem is that you now have an output called "The rms value is"...
    Thank you again for your excellent suggestions and feedback.
    Phil

  • Reading out filenames of a folder?

    Hello out there,
    does anyone know how I can read out the filenames of a special folder on my operating system with ABAP?
    I don't want to read the content of the files. I only need the names of all the files in that folder.
    The operating system is Solaris9 (Unix-Filesystem).
    Thanx
    Joschi

    I am not sure about Application Server, but in Presentation , you can use CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
    or check other methods, which might be helpful.
    REgards,
    Subramanian V.

Maybe you are looking for