Passing file name variable to the save as dialog

Hi:
I have an event listener that checks if the user has selected the file/"save as" menu and brings up another dialog window asking for some additional information about the client and job. I would like to pass a variable from this custom dialog to the file name field in the standard Save As dialog.
Anybody have an idea how I can do this?
I am using inDesign3 on Windows XP. I am using VB for the scripting.
thanks!!
Dan

Hi: thanks for looking at it.
Actually, I am not calling the save as in my script, the user is clicking on Save As and the event listener I have in the start up folder is picking that up. The event listener calls up a script that asks users to fill in a couple of fields about the specific job and once they do that and click ok, the default inDesign "save as" dialog is brought up. So that is my question -- how to pass the information from my dialog to the standard "save as" dialog (as the file name of the file).
The event listener is of the beforeInvoke on the Save As... menu.
Any idea?
thanks!!
Dan

Similar Messages

  • How Does The Browser Know The "File Name" field in the "Save As" dialog

    Hi!
    I have a servlet called co.com.SomeStaff who reads a binary file from the server an sends it to the breowser.
    The Browser opens the "Save As" Dialog whith the value "co.com.SomeStaff" in the File name field, but and I need the name "SomeBinariFile.exe" instead.
    How can I change that value?
    Thanks All.

    Use <%
    response.setHeader("Content-Disposition", "attachment; filename=filename.2save");
    %>

  • Passing file name dynamically to the file adapter

    Hi All,
    I'm using a file adapter to create a file from the XML message after mapping in XI. The file name is given in the file adapter configuration. Is it possible to have the file name as a part of the message and pass it to the file adapter dynamically? Or is it possible to have the file name in some variable or something in XI (like a BPM variable) and pass it to the adapter for every message?
    Does someone have any idea?
    Thanks,
    Sandeep

    Hi Sandeep,
    This is possible.
    For creating filenames dynamically for your sender, you will have to crate a variable name ( eg: %VAR%) as you file name and then you will have to give the name of your file under variable substitution. Just check this link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    In the case of receiver file adapaters, you have 5 options for file creation like,
    1.Create
    2.Append
    3. Add time stamp
    4.Add Counter
    5. Add Message ID
    You can choose any of these options or you can do it dynamically from you payload. Just check out this help link for more info,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Hope this helps

  • Clicking on a file name in the Save As dialog removes the extension (.html or .jpg)

    In previous versions of (any) browser I could save a web page, and if there were more than one page, as in a thread in a forum, I used to be able to click on the saved file, "file 01.html" in the Save as dialog, it would show up as "file 01.html" and I could change the 01 to 02 for the second page, ie "file 02.html"
    But now when I click on the file name it shows as "file 01", the .html disappears. Same for .jpg or any other extension.
    This is very annoying, especially when I find a long, multipage thread on a subject I want to read later offline.
    Bug or Feature? Either way I don't like it.
    How can I change it back?
    Thanks,
    David

    I have seen that as well. If I change the name of a .jpg picture I am downloading, I have to add back the extension into the file name. If I do not change the name, the extension is kept.

  • Export: In the Save as dialog, the file name is always shown as Crystalviewer instead of the report nameu00A0

    Post Author: sijdk
    CA Forum: Exporting
    hi,
    we are using crystal report server XI. in this i am not able  to export a report with particular report name. see the following steps.
    Generate a report. Click the Export icon.Select the format in which the report has to be stored and click Ok button
    Expected Behavior:The Save As form with the report name as file name should be displayed
    Actual BehaviorFile download window is displayed showing the name of report as crystalviewer.rpt and when Save button is clicked, the Save AS dialog with the filename as Crystalviewer is displayed.The user has to specify a meaningful report name

    Post Author: foghat
    CA Forum: Exporting
    This sounds about right, I can't recall if I've never seen Crystal default to the .rpt name when exporting a report.  In developer XI, reports saved on the enterprise server have some crazy long non-nonsensical unique identifier on export.  If the report is saved locally, it just gives untitled.xxx on export. That said, I find the users usually end up renaming the report file name anyways, so not a big issue.

  • File name Variable

    Hi,
    I am trying to pass file name as parameter for a procedure which will FTP file to unix location , When i tried the procedure by hard coding the file name it worked fine and FTP was done. Then I tried to create a filename variable thinking i can re use same procedure as i want to ftp multiple files or different file for different interfaces.
    I created one variable choosen Data type as Alphanumaric , and default value as null.
    then i used the variable in procedure and i get the error below. ( I gave file name as file_xyz_123.csv)
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 171:
    PLS-00103: Encountered the symbol "FILE_XYZ_123" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    java.sql.SQLException: ORA-06550: line 1, column 171:
    PLS-00103: Encountered the symbol "FILE_XYZ_123" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Please help
    Thx
    Suri
    Edited by: VSG on Apr 26, 2010 8:12 PM

    You can modify the previous parameter only where you hard coded value, to change the resource name with a variable.
    It will automatically consider variable value which is passed during runtime.
    Murali.

  • I get the Save As dialog when trying to Save, whether using Command-S or File menu

    When trying to Save a document, I am presented with the Save As dialog. The file name has a serial number added  to the old file name and the default destination is the Documents file. This happens whether I have tried to save using Command-S or using the Save option in the File menu. This started after I upgraded to Mavericks.

    I checked and the files are not stationery pads, Permissions show me as having read and write authority.
    But, when I  opened the files from the finder, the problem disappears and they saved normally. I then removed the files from the Dock and re-placed them in the Dock via drag and drop. The problem re-appears and changes will not save normally. Not being able to use the Dock is inconvenient but at least there is a workaround. Thanks for your help! Before declaring victory, I'd like to watch it for a while for other quirks.

  • Receiver file name should contain the same plant value as  sender filename

    Hi All,
    I have a requirement in PI 7.0 and the scenario is synchronous which is as follows:
    - XI will read a flat file which has the naming convention Plant_100.txt where 100 is the plant number , after reading the file XI will trigger standard BAPI call to ECC system.
    - ECC system will return an response message back to XI , XI need to need write this message in to a log file and the file name should be Plant_100_logs.txt.
    - Here plant value 100 is neither passed to ECC system nor this value will be returend back from ECC system . So , is there anyway where we can make sure that plant value can be added to the log file without using an BPM in between ??
    Regards
    Vinay P.

    Hi,
    Using Dynamic configuration in Message mapping you can read the source file name and creta the target file name as same as source file.
    For BAPI call in Mapping you can use RFC lookup.
    So crete a scenario FILE to log FILE
    In mapping using RFC lookup make a BAPI call.
    And use dynamic configuration to set the file name.
    Refer this
    http://www.****************/Tips/XI/ASMA/Index.htm

  • How to show a downloads file size in the "Save As" dialog?

    Hello,
    I have been using Firefox off and on for the last year or so, and there's one thing that always gets me to stop using it, whenever I download a file I cant see the file size of it in the "Save As" dialog, Internet Explorer and Opera has this feature and it's one of the things that I really need, I have tried that extension that does this (I forget the name of it), but unfortunately it is not for Firefox 4 :(
    Thanks you for your help :)

    Hi,
    Visit the following link for you addon:
    https://addons.mozilla.org/en-us/firefox/addon/show-file-size/
    This addon is incompatible for Firefox 4.0 RC. but you can add another addon in firefox to make it work: Addon Compatibility reporter. 1st install this addon and then install your " Show file size addon" it should work then.
    Addon compatibility reporter addon link:
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Hope this resolves your issue:

  • How do I force Firefox (6v02) to stop showing thumbnails of existing file(s) in the save-as dialog box?

    I save files associated with similar objects using similar names (just a different extension, or numeric sequence). The save-as dialog box shows a list of existing files. When I choose one, with the intention of changing the file extension or the numeric sequence (e.g., choose 'file001.jpg' in order to rename the new file to be saved 'file002.mpg') the thumbnail associated with the one I select is shown on the right. I neither want nor need this time-consuming & memory-consuming process to take place. I would like to be able to disable this feature in order to allow me to do what I want directly and faster (P3/866MHz/512MB).

    Perhaps, but the problem is I don't really know what to look for. I've tried doing a keyword search of the AIprefs file to find where ICC profiles and compression could be located but I couldn't find anything. Does anyone know what they are called and what I should modify?

  • Question about pass file name and path to file write adapter

    I need to pass file name and path to file adapter for write. I got partial answers from thread Re: Get File name using File Adapter , but seems InboundHeader_msg or outboundHeader_msg only takes file name, how do I pass file directory?
    since I still have to specify file format (like xxx_%xx%.txt) in the file adapter wizard. Will this name conflict with what the name defined in InboundHeader_msg ?
    Similarly, how can I pass a file name and path to a file synchread adapter?
    Thanks,
    Message was edited by:
    user531689

    Just overwrite the filename in the WSDL file that was generated

  • Error Occurred While Converting the file"name of song" The file name.......

    I get this message when I try to import some CD's to my library.
    A window pops up and says
    Error occurred while converting the file "name of song"
    The file name was invalid or to long.
    Anyone else ever get this message, and how can you import CD's???????

    I have had this exact same problem. I'm not sure how to fix it...

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

  • Dynamic File Name depending on the Source File name

    Hi Experts,
    I have a problem like Dynamic File name depending on the Source File Name. I will explain with example as follwos
    Source File name                 Targer Folder/Filename
    NK01.VR59.L2007030         VR59/Rec.l200
    NK01.VR71.L2017030         VR71/Rec.l201
    NK01.VR77.L2027030         VR77/Rec.l202
    See above the exaple, Depending on the Source file name, I am deciding where i need to place my file and what name i need to name it.
    So please suggest me the solution and How can i do this with a single communication channel ? Do i need to create multiple CC for each folder??
    Points will be rewarded for Valuable anwer.
    Thanks in Advance,
    Best Regads,
    Vijay

    Hi VIjay,
    Thanks for quick reply. But i am getting error in End to End Scenarios only. If i remove the Return " "  statement from the UDF, while activating it is showing the error saying like missing return statement. I also mapped to the top most node to this UDF.
    I am getting the following error in End to End error Scenarios:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Is it possible to change file name policy in the JRE cache folder?

    We are getting calls from our clients complaining of slowdowns in loading our Java applet. The reason is a virusscanner. If a virusscanner is in the middle, it can drastically slow down the download process, and therefore cause some high delay before the user can work on the our product as expected.
    On this csutomer's side, it may take up to 10 min (the first time it is ran) instead of 1 min. JRE 1.6 is in use.
    They dont want to exclude from antivirus scan all files from Sun\Java\Deployment\cache folder.
    Question:
    Is it possible to change file name policy in the JRE cache to make it less unique?
    Thanks,
    -Dima

    dgomel wrote:
    We are getting calls from our clients complaining of slowdowns in loading our Java applet. The reason is a virusscanner. If a virusscanner is in the middle, it can drastically slow down the download process, and therefore cause some high delay before the user can work on the our product as expected.
    On this csutomer's side, it may take up to 10 min (the first time it is ran) instead of 1 min. JRE 1.6 is in use.
    They dont want to exclude from antivirus scan all files from Sun\Java\Deployment\cache folder.
    Question:
    Is it possible to change file name policy in the JRE cache to make it less unique?
    I suggest you solve the real problem - big files.
    There are two scenarios
    1. Initial download
    2. Updates.
    The first takes as long as it takes. No way around it.
    The second means that you can't use one jar. Otherwise every single update requires downloading the entire application every time. Multiple jars means only the one that changed is downloaded.

Maybe you are looking for

  • Unable to route the data from an AQ in AQ11g to an AQ in AQ10g via router

    Hi, I have configured a router to route the data from an AQ in AQ11g DB to an AQ in AQ10g DB with IP Message Type. Data of JMS OBJ Message type is getting routed between the queues of same DB. But its giving error while trying to route the IP Message

  • Display for Mac mini - HDTV or monitor?

    Hi folks Just got a brand new Mac mini - went to PC World yesterday to get a new display - while there wondered if I shouldn't just get an HDTV instead of a monitor.  Asked for a bit of advice from one of the sales assistants and was told that they w

  • What is the recommended way to launch a web-start enabled Java application?

    Hello, I have a simple web-start enabled Java application, which I can launch from a brower by entering : https://xx.xx.x.xxx/MyApp/launch.html This method would show me a page. I then had to click on a link to run my application. I noticed that I co

  • Huge .rpt File Sizes

    Post Author: ssolice CA Forum: Crystal Reports I have a question that I've been unable to get answered on any of the other forums.I am using Crystal Reports v10.The vast majority of my 300+ reports are 8,637KB. Many of the reports that also include s

  • SMC 4: Java Application Classes on Solaris 10 system

    Dear all, after installing SMC 4.0 without any errors I try to start the Console on the Solaris 10 platform by running "es-start -c &". After put in the Login Information SMC shows this message: An error occurred loading Java application classes. Ver