Save file with script (skip warning 'modified outside Illustrator')

Hi All,
We all know that command:
app.activeDocument.save();
saves the document skipping all the dialogs and even alert that is popping out every time when you manually saving your file on a server:
My issue is that I am working on PDF files (with preserved Illustrator editing capabilities) almost all the time rather than .ai files, and everytime I use
app.activeDocument.save();
The .ai file is created.
My question is if it's possible to save PDF that you're working on same as you would manually 'Save' from the menu context, ommiting that annoying dialog about modified file?
Regards
Peter

You should be able to "SaveAs",  specifying the PDF as the type and choosing to not invoke the dialog box.
Hope this helps!  -TT

Similar Messages

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • How to save file with the "/" symbol in the name?

    Hi,
    I have Adobe Professional 8.  I need to save files with names that include the symbol /, but Adobe interprets, for example, A/88/6, as file name 6, in a folder named 88, in a folder named A, and sets up new folders to accommodate that.  I cannot substitute another symbol as I already have thousands of pdf files in a database using the / symbol, and I need them in the same folders.
    I would very greatly appreciate any advice,
    thanks,
    Mo.

    Thanks.
    As I said, I'm pretty ignorant about these things.  I wouldn't know how to begin using a "hack".  All I know is that I was able, for over a year, to save .pdf files directly from my browser on several computers, and use the forbidden "/" symbol in every file name.  After saving the files, Adobe will happily open them, and allow me to edit and re-save them, although I now see that it will not allow me to "save as" them under a different name without removing that symbol.
    I may not be tech-savvy, but I can state that everything I have said here and above is entirely accurate.  I would be happy to open a dropbox account to show you countless .pdfs with the symbol "/" in the name.
    This is honestly not that big a deal.  I greatly appreciate this discussion, and you have inspired me to become slightly less computer-ignorant.
    Hope you all had a great New Year.  I am still recovering.
    Cheers,
    Mo.

  • Why do I keep getting the "modified outside Illustrator" box?

    I work with Illustrator and Photoshop both open simultaneously, moving Illustrator parts into Photoshop scans and importing Photoshop scans into AI for use as templates. Both are Adobe apps, right? So why do I get this warning when I work on the Illustrator file: "This File has been modified outside Illustrator. Do you want to continue?" It is matched by an equally imbecilic query in Photoshop, where I get the warning: "The disc copy of this file has been modified. Do you still want to save it?" or words to that effect. Am I missing something here? I’ve thought about it, and I honestly can’t imagine a situation wherein someone  with enough intelligence to use either or both apps as advertised, meaning that they want to use Photoshop and Illustrator to modify images, could find these warnings helpful.
    Who came up with these, and why is my computer asking me such stupid questions? And why isn’t there a “Don’t ask me this stupid question again” check box in the dialogue box? Please tell me these moronic inquiries will not appear before me in CS6.

    auto-update open documents.. in the preferences, at least for Photoshop. Illustrator is always going to warn you when link data changes.

  • How Save File using script ?

    Hi Expert
    I am using MAC OSX 10.8.3 and InDesign CS5.5
    I use this script to save the InDesign file and run this script using Adobe ExtendScript ToolKit CS5.5
    #target indesign
    var myDocument=app.activeDocument;
    myDocument.save(File("/var/New.indd"));   
    But Script give error
    can not save "untitle1.indd" under a new name
    where "untitle1.indd" is created indesign file name.
    Is it Script proble or InDesign problem
    or
    MAC OSX problem ?
    How save file  ?
    Thanks.

    Bill joy wrote:
    Is it Script proble or InDesign problem
    or
    MAC OSX problem ?
    Hi Bill,
    I think it is your path problem. (Are you able to save this file in UI there?)
    Check:
    mFile = new File("/var/New.indd");
    mFile.isValid;
    You can't go forward until above == true;
    You could check how your system records a path using this in ESTK:
    mFile = File.saveDialog();
    select any file and check ESTK console.
    Script is creating a new File object with path you can see (not saving anything), so do it same way.
    If you will pass above with true save a doc using:
    mDoc.save(mFile);
    Jarek

  • Save file with filechooser?

    How do I save the selected file with my filechooser? I have created this sofar :
                 JFileChooser gem = new JFileChooser("AliSys.script");
                 gem.setFileFilter(filter);
                 int dialog = gem.showSaveDialog(this);
                 File fil = gem.getSelectedFile();
                 if(dialog == JFileChooser.APPROVE_OPTION)
                }

    no sorry... it didn't solve the problem, the file is still "emty":
                 JFileChooser gem = new JFileChooser("AliSys.script");
                 gem.setFileFilter(filter);
                 int dialog = gem.showSaveDialog(this);
                 if(dialog == JFileChooser.APPROVE_OPTION)
                     File fil = gem.getSelectedFile();
                      try{
                      FileWriter out = new FileWriter(fil);
                     }catch(IOException ioe){System.out.println(ioe);}
                }

  • XFA form with button to save file with unique filename

    Is there a way to save a file with a unique filename using some data a user has entered (name, for ex.) that will fire when the user clicks a Print button? Attached is a file for reference.

    Yes, I'm getting close. With this
    var 
    vTargetName = Page1.dateStamp.rawValue + " HSS Foot & Ankle for Patient " + Page1.First_Name.rawValue + " " + Page1.MI.rawValue + " " + Page1.Last_Name.rawValue + ".pdf";
    var  
    vCurrentName = event.target.documentFileName.toString(); 
    if  
    (vCurrentName == vTargetName)app.alert("Thank you. Your form has been saved."); 
    else
    app.alert("There was a problem. Your form has not been saved.");
    I do get an alert when the PDF is saved. But if I modify the folder js to say var vPath = "/c/HSS/ instead of var vPath = "/c/HSSSave/ I don't get the alert "There was a problem." Do you see an error in the else condition?

  • AppleScript open and save file with Numbers

    Hi all,
    I need to save an Excel .xls file as an .xls file in order to break the links that are included in the original Excel file. Since Numbers doesn't have any actions for Automator, I hoped someone could help me writing an AppleScript?
    It needs to open (Numbers) and all the .xls files that are added to a specific folder on my Mac, then save them to another folder as .xls (not .xlsx) and overwrite any existing files with same name. Since this all should work automatically, warnings and pop-ups that need a user to click an option are not allowed.
    Didn't think this could be too hard, but I'm just a noob when it comes to AppleScript. Help?
    Thanks in advance

    Check the attributes of the <textarea> tag. You can use wrap="no" or wrap="virtual" or wrap="hard" to define how the text area handles carriage returns.
    Brian

  • Word 2007 won't save files with Acrobat Pro 9.0 Installed

    Last night an issue started occurring while trying to save a document in MS Word 2007 (part of an Office Ultimate install).  After about 10 hours of trying several suggestions from a variety of forums and MS suggestions I found that the only time I cannot save a file by traditional means is when Acrobat is installed.  I tried updating Acrobate and had the same thing happen.  MS says all that's left for me to do is get an answer from Adobe (I have to wonder if it's a copout).
    Steps taken so far:
    Disabled the PDF add-in - still unable to save Word files
    Removed PDF add-in - still unable to save Word files
    Removed entire CS4 suite - Word was able to properly save files
    Installed only the parts of the suite that I use frequently (Photoshop, Soundbooth, Premiere, Acrobat) - unable to save Word files
    Removed Acrobat Pro 9.0 - Word saves files properly again
    When I say it will not save a file I've tried the keyboard shortcuts for Save/Save As, Choosing the Save/Save As from drop down, and even attempted to save by closing the document.  When prompted with the option to save changes I say yes and nothing will happen, I have to close the document with nothing saved.
    I hate the idea of reinstalling Acrobat each time I need to use it to keep Word functional.  I've seen a ton of threads on other forums related to this issue.  Has anybody else seen this or know about a fix/work around?  Any help is appreciated.  Please let me know if additional detail is necessary.
    The operating system for the affected computer is Windows 7 32-bit.

    I installed each update individually (6 of them) and rebooted after each update.  Opened Word and attempted to save a document (after each update/reboot), the documents still cannot be saved (previously created documents still cannot have new detail saved).
    Decided to delete the Office folder in the following path: C:\Program Files\Adobe\Acrobat 9.0\PDFMaker\Office
    Opened up word and Acrobat went through an installation processes, to replace what was removed I assume.  After this was done I attempted to save a document and was still unable to do so.  Went back and deleted that Office folder in the above path again.  When opening Word this time I cancelled the installation process that Adobe was trying to complete.  Preventing the install of the settings and PDF add-in allowed documents to be saved again in word.
    I decided to try to remove the innactive add-in from my Word Options and received the following error message:
    "The connected state of Office Add-Ins registered in HKEY_LOCAL_MACHINE cannot be changed"
    Due to my deleting that folder?
    I suppose I could cancel that installation that initiates each time I open Word (or any other Office program that benefits from Acrobat Add-ins) but that will be a bit of an annoyance.
    Anybody have another suggestion, know what may need to be deleted from the registry to prevent the Add-ins installation when opening Word, or know where that setting can be changed?
    Hopefully getting close to a resolution

  • Photoshop Elements 13 (Mac) Organizer - Can't save file with version sets.

    I have spent many hours now trying to get Elements Organizer to save Version Sets when I've edited a photo. I've tried more or less every little thing you can find online without any luck. But just moments ago I found that if I move the file to my desktop everything works just fine. I then tried to edit files in a few other folders (also imported to my Organizer) and found that when ever the folder was named to something with a nordic letter in it (å, ä, ö) then I couldn't save my file with version sets (option greyed out) but if I moved that same file to another folder, well then everything worked as it's suposed to.
    I'm using the trial version of PSE 13 for Mac (Yosemite) and the full version is ordered and on it's way. But if this problem can't be fixed, I need to return that order and buy some other photo editing program.
    Can anyone help me with this problem? Is there perhaps a solution to this?
    Please, any help is much appreciated!

    I'm using the English version (as more or less always - Swedish is rarely an option). The thing is that I have never encountered this problem before in any other software I've been using, and certainly not in Aperture that I've been using up until now.
    I name my photo folders with a date and a few words, for ex. "2014-12-31 New Years in Stockholm" (but I normally write in Swedish). I use this method so that my folder that contains the original photos will be easy to find in even without any other software than Finder (or Windows Explorer if I connect my external drive to a Windows machine). I could change the name of all of my folders, or at least all of the folders with a name containing one or more of the letters Å, Ä or Ö to "force" PSE to work as it should, but why? This really shouldn't be a problem.
    I was hoping that their was a simple option or something like that that could fix this issue, but I guess not.
    If this problem lies in the software itself I will have to return it and look elsewhere (but where? Lightroom is certainly not an option if Adobe can't handle "normal" letters and Aperture is discontinued in a few months).
    Thank you for your reply!

  • Save file with high resolution progamatically

    Hello,
    I'm trying to export the document to JPEG and PNG formats with a resolution of 300 DPI. I'm using the following code:
    PIActionDescriptor desc00000178 = NULL;
    error = sPSActionDescriptor->Make(&desc00000178);
    if (error) goto returnError; 
    PIActionDescriptor desc00000180 = NULL;
    error = sPSActionDescriptor->Make(&desc00000180);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutInteger(desc00000180, keyExtendedQuality, 10);
    if (error) goto returnError; 
    error = sPSActionDescriptor->PutUnitFloat(desc00000180, keyResolution, unitDensity, 300.00);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutEnumerated(desc00000180, keyMatteColor, typeMatteColor, enumNone);  
    if (error) goto returnError;
    error = sPSActionDescriptor->PutObject(desc00000178, keyAs,
    classJPEGFormat, desc00000180); 
    if (error) goto returnError;
    Handle aliasValue = NULL;
    FullPathToAlias("C:\\temp\\Myfile.jpg", aliasValue);error = sPSActionDescriptor->PutAlias(desc00000178, keyIn, aliasValue);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutBoolean(desc00000178, keyCopy,
    true); 
    if (error) goto returnError;
    error = sPSActionControl->Play(&result, eventSave, desc00000178, plugInDialogSilent);
    if (error) goto returnError;
    returnError:
    if (result != NULL) sPSActionDescriptor->Free(result); 
    if (desc00000178 != NULL) sPSActionDescriptor->Free(desc00000178); 
    if (desc00000180 != NULL) sPSActionDescriptor->Free(desc00000180); 
    if (aliasValue != NULL) sPSHandle->Dispose(aliasValue); 
    return error;
    The file gets saved in the desired format but the resolution is always 72 DPI. Is there something i'm missing while exporting the file with higher resolution?
    Please help..
    Thanks

    Why are you adding a resolution value to the save command?
    It doesn't take or understand a resolution value.
    You need to set the resolution on the document first, then save.

  • How to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scripting

    how to get all how to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scriptingstyle and their fonts of a  indesign file and write all info with para info into txt file with scripting

    I write the script this one works
              var par=doc.stories.everyItem().paragraphs.everyItem().getElements();
      for(var i=par.length-1;i>=0;i--)
           var font=par[i].appliedParagraphStyle.name;
            var font1=par[i].appliedFont.name;
             var size=par[i].pointSize;
            WriteToFile (par[i].contents  +   "\r" +  "Style  : " + font  + "\r" +  "FONT1  : " + font1  + "\r" +  "Size  : " + size  + "\r", reportFilePath);
                            function WriteToFile(text, reportFilePath) { 
        file = new File(reportFilePath); 
        file.encoding = "UTF-8"; 
        if (file.exists) { 
            file.open("e"); 
            file.seek(0, 2); 
        else { 
            file.open("w"); 
          file.writeln(text);  
        file.close(); 
    Thanks for all your support

  • Replace missing fonts in eps files with scripts...how

    I have 1900 eps files with multiple missing fonts. I need to replace this fonts with some avaiable in system. Where I can find some script for this scenario? Script which can trigger "find font/change all" or similar. Actions dont work.
    thanks

    Would I need a premium subscription to Creative Cloud to access all the fonts in Typekit?
    Nope!
    Pricing | Typekit
    But
    I can't seem to find Rotis San Serif font anywhere.
    Nor can I - in Typekit, anyways.
    You certainly can buy it, though:
    Adobe - Fonts : Rotis Sans Serif Std

  • Can't save file with futura font?

    Hi
    I'm having a problem saving a file that contains the futura font. This is a font my company had to buy. I never had a problem with CS1 or CS2 using this font.
    Once I place the font in the document it will let me save it once. After making changes and trying to save again I get a window that simply says "can't save file". I've tried unchecking the pdf compatible option and the compression option with no change.
    I found one thread on this site about clearing out the font cache (by deleting the file C:\windows\system32\FNTCACHE.dat) and that didn't make a difference.
    When I'm done with the document I'll be converting the text to outlines but I need a fix will I'm working on the doc.
    Thoughts?

    Mike,
    Glad you got it sorted out. After I sent you back the regenerated fonts, I discovered something which I'm posting here for everyone's benefit.
    Myle nailed it when he suggested an "an issue with font embedding." The fonts you sent me were all embedding-restricted. It's possible you could have saved your documents had you turned off the PDF compatibility option, but it's moot now.
    It's doubtful the fonts I regenerated for you will solve the problem because putting them through my font editor did not remove the embedding restriction. I would bet dollars to doughnuts that your replacement fonts do not have embedding restriction.
    To check for the embedding restriction, you don't need a fancy program. Just download this Windows extension from Microsoft and install it. Then, right-click | Properties on any font file will give you a lot more information about that font, including licensing/embedding restrictions.

Maybe you are looking for

  • How to capture the process type for a particular application

    In my application CRMD_BUS2000120 there are 3 process types namely incidents, zcomplaints and zrepair order. But all the 3 display the same description as New: Incidents . Since this is attached with the application name. How can i change the descrip

  • Ipod plays a different file (audiobook) from the one selected.

    I have a mystery. let me start by saying i have done all the standard stuff all the way up to wiping and reinstalling the ipod. I have about 8 audio books (short stories for the kids to listen to) and when I select one to play it always plays a diffe

  • BH-600 Headset - No sound through speaker

    Hi, I have a Nokia BH-600 headset which has no sound through the earpiece after successful pairing with my phone which is a Nokia E61i. It used to work perfectly until I upgraded the software for the phone. I have had Nokia Customer Support try to so

  • Serious android problems?

    2 days ago my phone froze, after removing the battery the phone kept resetting to the htc screen. I did a factory reset, and for some reason all apps i downloaded were deleted? when i try to reinstall (ie. words with friends) the phone resets and the

  • DnD Row Selection

    I have a JTable that is DnD enabled and it is possible to drag and drop to it's self in order to change the arangement of rows. The DnD part is not a problem. It seems by default on the JTable if you left click on a row and drag the mouse up and down