Save as option using javascript

Hi Experts,
I am try to write code for "save as" option using javascript.
could you please help me........

There is no saveas function in indesign javascript, use save function instead,
var myFolder = new Folder("~/Desktop/Your_Folder");
app.activeDocument.save(myFolder.fsName + "\\" + "myIndesignFile.indd");
Vandy

Similar Messages

  • How do I save preferences/values using javascript in dashboard widget?

    How do I save preferences/values using javascript in dashboard widget? I apologize if this is a stupid question but I simply cant seem to find a way. For example, if on teh back side of the widget teh user chooses the color of the widget, where or how do I save that value so it is retained the next time the user goes to the dashboard. Also, once saved, how do I read the value?
    Thanks a mil....

    Please look into
    /Developer/Examples/Dashboard/Goodbye World/3-Saving Preferences directory for a comple example.
    Otherwise, wait until the following book is published :-))
    http://www.apress.com/book/bookDisplay.html?bID=10173
    Mihalis.

  • Open/save dialog box using javascript.

    Hi,
    working on apex4.1
    How i can display open / save dialog box when click on button or link using javascript.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 27, 2013 10:20 PM

    Hi,
    I am using model dialog box.
    on page header i have copy The code as given in this http://jqueryui.com/dialog/#modal-message link
    //  page header code
    <!doctype html> <html lang="en"><head>  <meta charset="utf-8" />  <title>jQuery UI Dialog - Modal message</title>  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />  <script src="http://code.jquery.com/jquery-1.8.3.js"></script>  <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>  <link rel="stylesheet" href="/resources/demos/style.css" />  <script>  $(function() {    $( "#dialog-message" ).dialog({      modal: true,      buttons: {        Ok: function() {          $( this ).dialog( "close" );        }      }    });  });  </script></head><body> <div id="dialog-message" title="Download complete">  <p>    <span class="ui-icon ui-icon-circle-check" style="float: left; margin: 0 7px 50px 0;"></span>    Your files have downloaded successfully into the My Downloads folder.  </p>  <p>    Currently using <b>36% of your storage space</b>.  </p></div> <p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>  </body></html> My Button name is "DOWNLOAD" and on button actions "REDIRECT TO URL"
    on URL TARGET value is ==javascript: myFunction();
    where i have to write this code to bind my apex buttons with dialog box.
    apex.submit(myRequest);the steps i have written above, am doing right or not? Please help to place the code in apex with a right way.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 28, 2013 12:53 AM

  • How to automate EPS to PDF using code (only Print not save as option)

    Dear All,
         How to make eps image to PDF using code (either Script / .net code). only using Print Pdf (Ctrl+P) option not using save as option.
    Using Saveas option it is possible to convert EPS image to PDF but it is not properly alligned like Print PDF option.
    Note: refer Attahced screen shot
    Thanks in advance,
    Abusufiyan

    Probably someone else has more insight, but I think with JavaScript at least the printing-options are not fully accessible.
    Anyway, in case the eps-files do contain vector-data You would probably be better off creating the pdfs from Indesign, Illustrator or with Acrobat (or Acrobat Distiller).

  • Getting prompted to Save As when using Save option

    We would like to deploy Reader XI with Protected Mode enabled. We have noticed that when using the Save option the user receives a prompt to Save As instead. I understand this is a security feature to basically grant Reader/Acrobat permission to save to this location.
    Issue is that we have in house software that opens the PDF using Reader allowing the user to make markups and then save, but if the user saves the file to a different location this will cause the in house software to fail. Older version of Reader with Protected Mode disabled allows just the save to be used and the original file location to be preserved.
    Is there anyway to white list this Directory so that Reader can save to it without a Save As prompt?
    Only fix I know of currently is to disable Protected Mode but we would like to avoid that if possible
    Thanks

    There is a notation in the documentation that may be relevant.
    "Permissions granted by other features often overlap. For example, cross domain policies, internet access settings in Trust Manager, and certificate trust settings for certified documents sometimes interact so that the most permissive setting takes precedence. Users should TEST THEIR CONFIGURATION prior to deployment."
    Have you checked the possible overlapping features?

  • Dynamic changes of option tags in a Select tag using JavaScript

    I got this problem during my project.
    I used Select tag in HTML code.
    I have to change options related to Select tag, based on events.
    How can we change options dynamically using JavaScript?
    Please post solution to this problem..

    You know Sun Java Studio Enterprise forum isn�t a right place for JavaScript & HTML questions.
    BTW here is you can find a lot of js stuff: docs, samples, tutorials, etc:
    http://www.w3schools.com/js/default.asp

  • Can you change X Pro default settings to save all PDFs using "smallest file size" job option?

    Is there a way to change Acrobat X Pro's default PDF Save settings to use the settings in Distiller's "smallest file size" job options, or adjust Acrobat's default save settings to a close match?

    In Windows you select the printer in the Start>Printers menu and right click to get the properites. You can then go to the settings tab and select the smallest file size job options. When you do it in the printer settings, you have set the default. Be very careful with this choice. It typically reduces the image resolution and embeds no fonts. If you are not distributing the file, then probably not an issue. However, with distribution you risk many folks not being able to read the PDF because of strange characters and low-res image.

  • Save As Using JavaScript

    Hello everyone,
    I cant figure out the javascript to have a button do a save as and use content from a field as the new file name. Can anyone help me with this?

    It worked, thank you!
    Now, do you know if there is a way to make this work with an ipad?
    My ultimate goal is to create a workorder form that I can access from my ipad. I already have a button set up to generate a unique work order number. I have used the code from the post you provided to have a button do a save as and use the work order number as the file name. So everything is working exactly how I want it on my computer but I would like the same functionality on my ipad.
    Please let me know if you have any suggestions. Thanks!

  • Possible to save files in My Documents using JavaScript?

    I have a customer who wants his users (service technicians) to be prompted to save a PDF form they fill out, print, and sign for their customers. It's easy to set the File>Save As action for the form button, but my customer wants to know if it's possible to always have the form saved to My Documents.
    I've searched the form and haven't been able to find any discussion on this. I can't imagine how to do it, since My Documents is inside the user profile... but was wondering what people who actually know what they're talking about (as opposed to me, that is) might have to say.
    If it is possible to do what my customer wants, can you point me to any existing code or reference sources?
    Cheers!
    ---Fox

    But I have two problems with this...
    The first is that I ran several Google site-searches and Adobe searches, but did not find any document*** named Acrobat JavaScript API Reference, even though it is also directly referenced in the Acrobat 9 help (listed there as JavaScript™ for Acrobat® API Reference, but I've searched using broader terms such as API reference and other combinations, and it simply did not come up).
    I did find the companion "Developing Acrobat® Applications Using JavaScript". But it's overwhelming, and I don't know what chapter(s) contain the information I need to throw together a proper working script for what I need.
    That's the other problem.
    I do not know JavaScript. I know how to include it but not how to write it. Everywhere I look, the blanket response to newbie JavaScript questions is to dump the wad of documentation in the asker's lap, expecting them to sit down and read it "cover to cover."  I now have a long-overdue project and I need help, fast. I don't have time to learn JavaScript from scratch! -- If I did, I wouldn't be asking these questions! I'd be figuring it out myself.
    This is becoming very frustrating. Won't somebody please help me out, or tell me exactly what pieces of code I need to put in and where I need to put it?  I can at least go look up the syntax, as long as I know what to look for.
    EDIT:  *** Now that I've written that, I ran the Adobe search tool again and found the PDF version, which is what I was looking for. The saveAs samples make no sense to me, and I keep trying to dig back through the documentation to figure out what the heck it's talking about. It's a quagmire. The documentation is barely understandable; it's very poorly worded, and every sentence is thick with unfamiliar concepts for a n00b -- and I'm a tech writer!
    Message was edited by: FoxCole

  • How to disable the print option in A. Reader (using JavaScript)

    I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the
    "File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document (
    preferably using the JavaScript language).
    Thanks in advance!
    Dan

    HI!
    I have the same problem =)
    I have fixed this issue using the "app.fs.isFullScreen = true;" statement.
    Doing this you don't see toolbar anymore.
    You can use "hideToolbarButton" instruction and, maybe, you can obtain a more interesting result.
    Below there is a very interesting document:
    http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf
    I'm sorry for my poor english :-)
    Bye,
    Roberto (from Italy)
    Ps= Do you know how I can obtain a list of required fields in a form?
    thank's!

  • Import options in InDesign CS2 using javascript???

    Hi i need to place an .eps or .ai files in InDesign CS2 document.
    While choosing "Import Options" while placing "Place PDF" dialog will be opened in which "Crop To" option will be there which has "Art" option..
    I need to use this using Javascript...

    You probably want to post this question in one of the Adobe
    InDesign forums:
    http://www.adobeforums.com/cgi-bin/webx/.3bbf275c/

  • HT202879 using latest version of numbers, there is no save as option to save work as excel compatible, why?

    using numbers, i need to save my work so it can be opened in excel, is there a save as option that would ensure it is compatible? many thanks

    Even though this used to be available from the Save As… dialog, it was really an Export function, and that is where you still find it: File menu > Export… > Excel.
    As to the question why, Apple would have to answer that, and they tend not to comment on things like this.

  • I am making my first keynote presentation.  I transferred the slides from a power point.  I did not use a 'theme' from keynote.  Keynote will not let me 'name' the presentation and the 'save as' option will not come up in the menu.  What have I done wrong

    I am making my first keynote presentation.  I transferred the slides from a power point.  I did not use a 'theme' from keynote.  Keynote will not let me 'name' the presentation and the 'save as' option will not come up in the menu.  What have I done wrong

    When it comes to Keynote, I try and start with a presentation that's 1680 x 1050 preset or something in that range.  Most projectors that you'll get at a conference won't project much higher than that and if they run at a lower resolution, it's better to have the device downsize your Keynote.  Anything is better than having the projector try and upsize your presentation... you work hard to make it look good, and it's mangled by some tired Epson projector.
    As far as slides go, scan them in at 150 dpi or better, and make them at least the dimensions of your presentation.  Keynote is really only wanting 72dpi, but I do them at 150, just in case I need to print out the presentation as a handout later, and having the pix at 150 dpi gives me a little help with their quality on a printer.
    You'd probably have to drop in the 150 versions again if you output the Keynote to .pdf or Word or something, but at least you have the option.
    And Gary's right (above) go ahead and scan them as TIFFs.  Sooner or later you'll want to do something else with these slides (like make something for an iPad or the like) and having them as TIFFs keeps your presentation looking good.
    Finally, and this is a big one, get to the location for your presentation ahead of time if you can, and plug the laptop in and see what you get.  There's always connection problems. Don't let the AV bonehead tell you everything will work just fine ('... I don't have any adapters for a Mac...') .  See it for yourself... you're the one that's standing up there.  Unless it's your boss, then you better be really sure it works.

  • I am using Indesign cs5 version 7.0.4 with a mac OS X version 10.9.4. I am having an issue where the save and save as option disappears. I am exporting the file as .idml and then resaving to avoid losing work but has to import all the images which takes a

    I am using Indesign cs5 version 7.0.4 with a mac OS X version 10.9.4. I am having an issue where the save and save as option disappears. I am exporting the file as .idml and then resaving to avoid losing work but has to import all the images which takes ages. Any help out there?

    I believe there are a couple of similar threads about CC or CC2014 behaving this way that might give yo some hints, but CS5 is not supported on your OS and may not run properly regardless of what you do. An in-place OS upgrade or an attempt to migrate the application would both be major problems for ID, so if you did either of those things you'll want to uninstall, run the cleaner tool (CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3) and reinstall.

  • How to disable save as option in forefox when we right click on the image?

    Hi Folks,
    Can somebody help to disable save as option when i right click on the image which is showing in the browser.

    Hi,
    '''sorry,it is impossible by code'''
    you can use addons.
    or
    you can disable while developing webpage using:
    <script language="javascript">
    document.onmousedown=disableclick;
    status="Right Click Disabled";
    Function disableclick(event)
    if(event.button==2)
    alert(status);
    return false;
    </script>
    Regards
    '''Deepak Krishnan'''

Maybe you are looking for