Additional words added to file name

For certain forms, when the user submits the form the file name, as expected, is the name that I gave the form. But additionally, Adobe Acrobat Pro.pdf is added after the file name. See figure. Is there a way to keep the "Adobe Acrobat Pro.pdf" from being added?
Thanks,
MDawn

I have a submit button that "clicks" a hidden button. The hidden button has script that verifies that all
required fields are filled in. Script on that button "clicks" another invisible button which opens email where
the user selects the email recipients.
I put the script you suggested in the PreSubmit event of the form, and then each of the Submit buttons and none of these worked.
Thanks,
MDawn

Similar Messages

  • Unwanted prefix of "Copy of " added to file name of opened Excel attachments

    How can I stop the prefix of "Copy of " from being added to the file name when I save an Excel file that was mailed as an attachment?  
    It is very annoying to have to keep deleting that unwanted addition to my filenames.  

    1) Don't open attachments - save them first and then open them.
    2) You can use this code in the ThisWorkbook object of your Personal.xls:
    Private WithEvents App As Application
    Private Sub App_WorkbookBeforeSave(ByVal Wb As Workbook, ByVal SaveAsUI As Boolean, Cancel As Boolean)
        If InStr(1, Wb.Name, "Copy of ") = 1 Then
            Application.EnableEvents = False
            Cancel = True
            Wb.SaveAs Replace(Wb.FullName, "Copy of ", "")
            Application.EnableEvents = True
        End If
    End Sub
    Private Sub Workbook_Open()
        Set App = Application
    End Sub
    HTH, Bernie

  • Adding the file name to each page of a pdf

    I need to find a script that will allow me to add the file name of a pdf to each page within the pdf. I need the file name to appear in one of the corners of the pdf.
    for example if the file name is 001.pdf then I need to somehow attach that so it appears in one of the corners of ach page within the pdf
    I have to do this for 20,000 pdf files so any help would be massively appreciated.
    thanks
    Jim

    I assume you have Acrobat Pro for editing, although you don't say.
    This should get you started by showing how to extract the name of one file (that you have selected) in the Finder and then to pass this to a JavaScript that is executed by Acrobat:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;">
    tell application "Finder"
    set theFile to selection as alias
    set theTitle to name of theFile
    end tell
    tell application "Adobe Acrobat Pro"
    open theFile
    --now add theTitle to the bottom/centre of all pages
    do script "this.addWatermarkFromText({ cText: \"" & theTitle & "\", nFontSize: 12, nHorizAlign: app.constants.align.center, nVertAlign: app.constants.align.bottom, nVertValue: 12});"
    --uncomment one of these options
    --close document 1 saving no
    --close document 1 saving yes
    end tell </pre>
    I just noticed that you want the name in a corner - just change the word 'center' to 'left' or 'right'
    Message was edited by: Bernard Harte

  • How to auto save output with date added to file name, and email the results?

    Hi,
    We found a script to capture disk space usage, that automatically places the results into an Excel file. We would like the script to autosave this file to a specific directroy with the date ran as part of teh file name. We would then like these results to
    be emailed to us if possible. (also if possible to highlight cell in red that is 5% OR less available disk space would be great)
    Here is what we have:
    $erroractionpreference = “SilentlyContinue”
    $a = New-Object -comobject Excel.Application
    $a.visible = $True
    $b = $a.Workbooks.Add()
    $c = $b.Worksheets.Item(1)
    $c.Cells.Item(1,1) = “Machine Name”
    $c.Cells.Item(1,2) = “Drive”
    $c.Cells.Item(1,3) = “Total size (GB)”
    $c.Cells.Item(1,4) = “Free Space (GB)”
    $c.Cells.Item(1,5) = “Free Space (%)”
    $c.cells.item(1,6) = "Name "
    $d = $c.UsedRange
    $d.Interior.ColorIndex = 19
    $d.Font.ColorIndex = 11
    $d.Font.Bold = $True
    $d.EntireColumn.AutoFit()
    $intRow = 2
    $colComputers = get-content "C:\Servers.txt"
    foreach ($strComputer in $colComputers)
    $colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
    foreach ($objdisk in $colDisks)
    $c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
    $c.Cells.Item($intRow, 2) = $objDisk.DeviceID
    $c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
    $c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
    $c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
    $c.cells.item($introw, 6) = $objdisk.volumename
    $intRow = $intRow + 1
    $d.EntireColumn.AutoFit()
    cls
    Thank You

    Hi Phorbin1128,
    The script below amy be helpful for you to save the Excel file with date in filename, and send email with the attachment of the excel report.
    $erroractionpreference = “SilentlyContinue”
    $a = New-Object -comobject Excel.Application
    $a.visible = $True
    $b = $a.Workbooks.Add()
    $c = $b.Worksheets.Item(1)
    $c.Cells.Item(1,1) = “Machine Name”
    $c.Cells.Item(1,2) = “Drive”
    $c.Cells.Item(1,3) = “Total size (GB)”
    $c.Cells.Item(1,4) = “Free Space (GB)”
    $c.Cells.Item(1,5) = “Free Space (%)”
    $c.cells.item(1,6) = "Name "
    $d = $c.UsedRange
    $d.Interior.ColorIndex = 19
    $d.Font.ColorIndex = 11
    $d.Font.Bold = $True
    $d.EntireColumn.AutoFit()
    $intRow = 2
    $colComputers = get-content "C:\Servers.txt"
    foreach ($strComputer in $colComputers)
    $colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
    foreach ($objdisk in $colDisks)
    $c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
    $c.Cells.Item($intRow, 2) = $objDisk.DeviceID
    $c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
    $c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
    $c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
    $c.cells.item($introw, 6) = $objdisk.volumename
    $intRow = $intRow + 1
    $d.EntireColumn.AutoFit()
    $date=Get-Date -f yyyy-MM-dd
    $filename = "D:\test\"+$date+".xlsx"
    $b.SaveAs($filename)
    $a.Quit()
    Send-MailMessage -SmtpServer xxxxxxxxxx -To [email protected] -From [email protected] -Subject "test mail" -Body "file name is: $new_file" -attachment $filename
    For more detailed information about the cmdlet Send-MailMessage, please refer to this article:
    Send-MailMessage
    I hope this helps.

  • Adding the file name and path to a document

    Is there a way to automatically generate the file name and path (i.e. 'P:\ARF530\BACKGROUND\diagram.ai') to a document without having to copy and paste from the explorer window?

    Hi,
    So to select the directory, in the WHNE-BUTTON-PRESSED trigger write,
         :<block_name>.<path_item_name> := GET_FILE_NAME(' ', NULL, NULL, 'Choose any directory.', OPEN_FILE, FALSE);
         IF SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) != '/' AND SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) != '\' THEN
              :<block_name>.<path_item_name> := :<block_name>.<path_item_name> || '\';
         END IF;and to open the file, write,
    DECLARE
      FT_File  TEXT_IO.FILE_TYPE;
    BEGIN
      IF SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) = '/' OR SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) = '\' OR :<block_name>.<path_item_name> IS NULL THEN
           MESSAGE('Please Enter file name before continue');
           MESSAGE('Please Enter file name before continue');
           RAISE FORM_TRIGGER_FAILURE;
      END IF;
      FT_File := TEXT_IO.FOPEN(:<block_name>.<path_item_name>, 'w');
    END;Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Adding image file name and logo to image

    Can you do batch processing of images to automatically insert the image file name, say at the bottom along with a logo, in black font. The logo stays constant but the image deatils will change with each image?
    Can this be done in Lightroom or then the full Photoshop?
    Thanks!

    I've taken the script mentioned above and modified it to the best of my abilities.  Still getting the same error, unfortunately:
    function main(){
    var suffix ="cropped";
    var docPath =Folder("~/Desktop");
    if(!docPath.exists){
       alert(docPath + " does not exist!\n Please create it!");
       return;
    var fileName =activeDocument.name.match(/(.*)\.[^\.]+$/)[1];
    var fileExt =activeDocument.name.toLowerCase().match(/[^\.]+$/).toString();
    var saveFile = new File(docPath +"/"+fileName+suffix+'.'+fileExt);
    switch (fileExt){
       case 'jpeg' : SaveJPEG(saveFile); break;
       default : alert("Unknown filetype please use manual save!"); break;
    if(documents.length) main();
    function SaveJPEG(saveFile, jpegQuality){
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality; //1-12
    activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);

  • Tilde (~) added to file name?

    The other day, iBooks Author began creating duplicate files on save with a  tilde (~) character at the end of file name. Anyone know what's going on here and how to make it stop?
    I'm wondering if it has anything to do with Lion 10.7.3, which I updated to the other day, right around the same time this started happening.
    Maria
    Maria Langer, Author
    iBooks Author: Publishing Your First Book

    K T wrote:
    I believe that is a 'version' of your original file that only contains changes at a given point in time.
    See Lion's Help on: versions
    KT you are correct.
    To see this in action place the file you are working on you desktop. Then make a few changes in iBooks Author and see the 'phantom file' appear too on your desktop.
    Save a version of all your work and see the tilded version disapear since it is no longer needed.
    Neat! and it is defintely a feature of LION.
    I read through some more posts and noted you updated to include correctly this appears with other Apple files on Mac. I work with all kinds of documents on the desktop and then clean up after the day is done by moving them elsewhere. TexEdit and other programs, even Preview at times produces this tilde version for a few minutes. It is data not commited yet.

  • Meaning of additional info to .dv file name

    I'm fairly new to imovie as well as to using a Mac. (already sold on it though and will never switch back to PC)
    When I export to a file in .dv format and view the file in finder there is a number under the file name, e.g. 63.56.20. What is the meaning of this number? I have exported the same clip with slightly different settings and get a totally different number.
    Thanks / Peter

    Matt,
    Thanks, I now know more than I did before but it still makes me curious what these numbers stand for. I actually exported exactly the same clip, first with highest quality and then with expert settings, best possible dv settings. The first dv-file has the number 19.10.54 the second one 63.56.20. I have checked in file info and found nothing that would relate to these numbers. The clip is 26 minutes, 16 seconds and 17 frames.
    I guess I have to accept this as one of life's small mysteries unless someone out there happens to know more.
    Peter

  • Extra words added to sheet names on Numbers files when I open them at work, why?

    Everytime I email a Numbers Spreadsheet as an Excel file to myself, when I open it on my work computer, EVERY ONE of the sheets at the bottom adds "Table 1" to it.  For example, the sheet may say, "May 2011".  When I email it to myself and open it, it then says, "May 2011 Table 1" .  If I email it again from my iPad2 then it would say "May 2011 Table 1 Table 1".  Obviously I have to keep going back and renaming each sheet b/c it gets so insanely long after a few emails. 
    Any help on either of these questions would be greatly apprecatied!  Thanks!
    Kevin

    When exporting to Excel, the Excel worksheets are named with the Numbers sheet and table names.  So, if you have a Numbers document with a sheet called May 2011 and that sheet has a single table called Table 1, the resulting Excel worksheet becomes May 2011 - Table 1.
    When importing an Excel Spreadsheet into Numbers, Numbers creates a sheet from the Excel worksheet and creates a table (Table 1) for the data. So an Excel worksheet called May 2011 - Table 1 will result in a Numbers sheet called May 2011 - Table 1 and in that sheet will be a Table 1.
    That's what you are seeing and there is no workaround.  Numbers and Excel are not structured the same. Import and export are not one-to-one processes.  Importing and exporting back and forth is not recommended for any proprietary format, be it spreadsheets, word processing documents, CAD files, or whatever.  It is better to use an application that natively supports the chosen format. In other words, use Numbers exclusively or use Excel and/or its clones exclusively.

  • File name trouble when exporting

    Sometimes FCP is adding three characters (like for example #DD2) to the file name when exporting (cmd+e). I have never had trouble with this before. What can be the reason for this?

    I don't know what's causing your problem. The only time I've seen additional characters added to file names is if the target drive is formatted as FAT16/32 and the file has to be broken into 2/4 GB chunks or if you are using compressor and you've set it up to append the preset name to the output name.
    Is there anything unique about material source, processes, settings, etc when it happens vs when it doesn't?
    Good luck,
    x

  • Changing the setting name in the file name

    How do I change en masse the file name in a compressor batch?. Say, instead of having the default codec name, IE "Apple Pro Res," I could choose something unique for myself.
    Or how do I just get rid of it the setting tag without using a custom destination?
    Studio X wrote:
    "You can permanently solve the issue by making a simple change in the Preset.
    Click on your preset to load it into the Inspector in Compressor
    Click on the "actions" icon underneath the Names & Descriptions fields.
    Go down to Default Destinations and set it to " Source w:o additional names"
    Save the preset.
    Now every time you apply the preset you'll get the file placed back into the source folder without the additional info in the file name.
    One caveat - make sure that your new file name does not exactly match (including the suffix) the original file. If it does, you'll overwrite the original.
    x"
    However I did not find this "w:o additional names" option.
    I am running Compressor V 3.5.3 - is that the reason?
    Cheers,
    Edwin

    Could be a version thing.
    In 3.5.3 it works like this:
    You first need to create a new Destination:
    In compressor select the Destination Tab (1), then press the PLUS sign (2).
    Select Local (if it's going to be on your computer) or Remote (if it's on a network)
    Compressor will ask you which folder. In this example I created a new folder, called 'testingfolder' (3).
    In the Inspector then you can choose the naming options. Which is now right by default (4). So you don't have to alter that.
    Now do all steps as Studio X described, but a slightly different:
    "You can permanently solve the issue by making a simple change in the Preset.
    Click on your preset to load it into the Inspector in Compressor
    Click on the "actions" icon underneath the Names & Descriptions fields.
    Go down to Default Destinations and set it to " Source w:o additional names"
    ...set it to 'testingfolder'
    Save the preset.
    Now every time you apply the preset you'll get the file placed back into the source folder without the additional info in the file name.
    One caveat - make sure that your new file name does not exactly match (including the suffix) the original file. If it does, you'll overwrite the original.
    [The latter is only true if the destination folder is the same as the source folder, which I'd strongly advise not to do.]
    Rienk

  • Add file name script

    I have a script for adding the file name as a text layer in PS. This script called "AddFileName02.js" worked by placing the file in the scripts folder on the hard drive. This script worked for PS CS2 (and I think PS CS3). This script could then be accessed by <file><automate><scripts>
    Now that I have PS CS5 I have tried to place this script into the same place in PS CS5, but it does not appear. (I restarted PS) As I see it there could be two possible problems.
    1 The script has a .js extension and all other scripts in PS CS5 have a .jsx extention. So a newer version may be needed.
    2 I have placed the script in the wrong folder.
    Can anyone help?

    Just rename ist with the jsx-suffix and place it in the Presets > Scripts-folder.
    If that does not work you could try the Photoshop Scripting Forum, though some of the regulars also do drop by in this Forum.

  • Inserting a constant after a file name

    Hello all,
    I have been working on a Javascript for Acrobat Pro 9, which I want to pull the first page of a PDF file & move it to another folder, I have managed to achieve this, however it would also be useful to insert an additional part to the file name...
    /* Extract Cover Page Only As PDF */
    // regular expression acquire the base name of file
    var re = /.*\/|\.pdf$/ig;
    var filename = this.path.replace(re,"");
    try {
    i=0;
    this.extractPages(
    nStart: i,
    cPath: "/C/Documents and Settings/JBushfield/Desktop/Output/"+filename+".pdf"
    } catch (e) {
    console.println("Aborted: "+e)
    I can get the script to insert a prefix to the file name but when I try to move it to after the filename ie just before the .pdf it won't play ball. I talked a colleage, who suggested that maybe as the filename is (to Adobe) variable (it's actually always 13 digits as it is an ISBN), that maybe there is someway to include this, as in place text in name after the 13 digits but I am not sure.
    PS The text I want to include after the ISBN is "_Outside_Front_Cover"
    Any help on the matter would be greatly appreciated,
    Many Thanks
    Joe

    Hey Try67,
    Thanks so much for helping me out here, your solution works! In actual fact I hadn't tried that, I'd closed it off ..._cover with " before the .pdf, I guess that was it, you've really helped me here! Thanks for the support, I'm pretty new to Javascripting and you've given me that extra bit of motivation.
    Thanks
    Joe

  • Problem launching Firefox from Windows with file path that contains space characters in the html file's file name

    We have a software application that programmatically launches the default web browser using the Windows shell execute function ("ShellExecuteA" in the "shell32.dll" library of the Windows API) along with a file path for a saved local html file that is to be displayed. In the case that FireFox is the default browser and the file path for the html file contains any space characters in the html file's file name, Firefox (in this case v7.01) will display an error message "File not Found..." and then will also proceed to open tabs for each of the individual words in the file name, launching as the URL path, each individual word appended to ".com".
    In the following example, the path "C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm" when launched programmatically, resulted in the error message "File not Found...Firefox can't find the file at /C:/KSSecOfState/Forms/Kansas." and opened up browser windows for "http://www.secretary.com/", "http://www.of.com/", "http://www.state.com/", "http://www.and.com/", and attempted to launch "http://forms.htm". If the same file (renamed) is launched using the path string "C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm" the file opens up correctly in Firefox. Clearly the presence of spaces in the file name is causing the problem.
    I should also note that either path (with or without space characters) works properly if pasted directly into the Firefox URL path menu bar for a live instance of Firefox. The test path strings I used were:
    C:\KSSecOfState\Forms\KansasSecretaryOfState-FilingsAndForms.htm
    C:\KSSecOfState\Forms\Kansas Secretary of State - Filings and Forms.htm
    Does anyone know anything about this problem or how to work around it (other than the obvious answer of taking the spaces out of the file name which is not possible for this application). It seems the problem is specific to Firefox. IE works properly if launched programmatically with spaces in the file name passed to it. I haven't tested other browsers yet.
    Thanks!

    If starting from ShellExecute works the same as starting from the command line then there are two options:<br>
    Put everything inside double quotes<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''"c:\test\svg test.htm"'''<br>
    Convert to a valid url with file:// protocol and percentage-escaping the space<br>
    '''C:\Program Files\Mozilla Firefox\>'''firefox.exe '''file://c:\test\svg%20test.htm'''<br>

  • Acrobat Professional 8.0 Truncating PDF File Names

    Recently did a full install of Professional 8.0. Existing PDF files open OK, but 'blue bar' at top of screen identifying file name shows only the 'Acrobat' logo and the first letter (not word) of the file name. Upon closing the file, the 'blue bar' continues to show only the 'Acrobat' logo and the letter 'A' (presumably the first letter of the words 'Adobe Acrobat Professional', which normally appears in the blue bar when Adobe Acrobat Professional 8.0 is running, but no files are open. Thoughts? Suggestions? Thanks.

    thanks...
    http://www.economycard.net
    http://www.5579021.com
    http://www.kurtoglunakliyat.com

Maybe you are looking for

  • Use 11g portlet in Oracle Portal or WSRP1 in WebCenter application fails

    Hi, I build a portlet as in the example at http://download.oracle.com/otndocs/tech/webcenter/files/owc_r11_portlet_bridge_demo.html and try to consume it from Oracle Portal. This is failing with a connection to the server failed error in the browser.

  • Error Category      XI_J2EE_ADAPTER_XI_HANDLER

    Hi A couple of days we had problem in our Xi production server & we were unable to login into the server. During that time the messages which got picked up from FTP went into Adapter Engine System Error. Our Scenario is File to Idoc. When I try to re

  • Access shared calendars on exchange 2007

    I'm trying to access shared Exchange calendars on my iphone and I cant see how to do this. Does anyone know how to do this?  If i require a 3rd party app to do this, can anyone recomend one please? I can see the shared calendars on outlook 2010 and I

  • Java type extensions in WSDL

    Hi, I would really appreciate if someone could share an example of how java types can be used in WSDL. I am trying to define messages of type java.sql.Connection. The WSDL should look something like: But of course I cannot reference java.sql.Connecti

  • TCode to see Sales Tax Code of Entire Article

    Hi I want to see sale tax code for my entire article in one tableu2026u2026 Is it possible? If so give table name please Regards Anis