How can I save a text file to disk from Illustrator ?

Hi,
I was looking through the Javascript reference and couldn't find anything related to writing strings to a text file on disk.
Is this possible ? If so where should I look ?
Otherwise, can I run a bit of code in Terminal/CommandPrompt from Illustrator (.e.g. echo 'Hello!' >> file.txt) ?

Here's something that I think Muppet Mark or Carlos Canto posted earlier
#target illustrator
var textFile = File('~/Desktop/AI.txt');
var doc = app.activeDocument;
var docText = '';
for (var i = 0; i < doc.textFrames.length; i++)
          docText += doc.textFrames[i].contents + '\r';
textFile.open('e');
textFile.write(docText);
textFile.close();

Similar Messages

  • How can I save a PDF file sent to me in an attachment to my iPhone 5s

    How can I save a PDF file or word file sent to me as an attachment directly to my iPhone 5s so if I want to read it I don't have to dig into my ail every time?

    You will need to select the attachment and open in another app.  If you do not have any apps that support PDF, Adobe reader for iOS is free.
    For MS word files, you will need an app that supports those, like Documents to Go. 
    There is not generic file storage area in iOS, so you need to "open in" an app that supports that file type so that app can then add the file to its sandboxed local storage area.
    If you need to markup the PDF, some good apps are GoodReader, iAnnotate, PDF Expert, GoodNotes - there are numerous others as well in the App Store.

  • How can I save adobe reader file from gmail into my adobe reader app?? i would like to open one file in place where I'm not able to access internet and for that reason i would like to save it. is that even possible?

    How can i save adobe reader file from my gmail into my adobe reader application. or is there any other way i can save it into my phone so I'm able to open in any situation not just from my gmail???

    Long hold on the document in mail and it should give you the open in... option, select adobe reader and the file is now saved locally for viewing even while offline.

  • How can I save an attachment file

    How can I save an attachment file To my iPad memory.

    An iPad doesn't have a file system like a 'normal' computer, everything has to be stored within apps. Do you have an app that supports the type of file that the attachment is ? If you do then you might be able to press and hold the attachment in the Mail app and get a popup with an option to save the attachment to the app.

  • How can I save a jepg file in lower case letters? I check the use lower case box in preferences but it's not happening. PSCC

    how can I save a jepg file in lower case letters? I check the use lower case box in preferences but it's not happening. PSCC

    Let's try a preferences reset: (Windows)
    Press and hold Control - Shift - Alt immediately upon cold-starting Photoshop.  If you get the keys down quickly enough - and you have to be VERY quick - it will prompt you to confirm deletion of your established preferences, which will lead to them all being set to defaults.

  • How can I save the .mp4 files downloaded from internet to ipad memory so that I don't have to download everytime to view them again

    How can I save the .mp4 files downloaded from internet to ipad memory so that I don't have to download everytime to view them again. Also they might remove them from internet so I can't rely on the bookmark to them.

    I'm trying to send home movies to my 10 year old nephew who lives across the country. He doesn't have a computer. He has an iPod touch. His parents have computers. But I don't want everything I ever try to have him do result in "you need your parent's computer for this." It's getting really embarrassing. I have converted my family over to Apple computers but now they want to buy iPhones, iPads, and iPods even though I tell them to go Android. It took a decade to convert them away from windows now I'm trying to keep them away from these freedom limited iOS devices and they won't listen. Then it becomes my responsibility to make their iPads print to their fancy pre-airprint color laser jet printers, get home movies onto them, and countless other things. It's driving me nuts.
    I have converted these files to a format that the iOS devices will play directly off of dropbox. Now, how do I get the infernal devices to save it instead of play it?

  • How can i save a vob-file (old Video format) into a different formal like mp4??

    how can i save a vob-file (old Video format) into a different formal like mp4??

    Flo14
    What version of Premiere Elements are you using and on what computer operating system is it running?
    With that information we can give you the specifics of the how to. There are marked changes in the Premiere Elements 11 and 12 workspaces as compared to version of Premiere Elements earlier than 11.
    Also, what do mean by
    vob-file (old Video format)
    Do you mean that you have a VTS_01_1.VOB file that you ripped from a DVD-VIDEO on DVD disc and saved to your computer hard drive?
    Questions to assure a successful end product .mp4 file version.
    We will be watching for your follow up.
    Thanks.
    ATR

  • I am unable to download, Media Downloader. How can I save my tiff files?

    I am unable to download: Media downloader. How can I save my tiff files?

    Hi Barb,
    To investigate this we would have to look at the error logs -
    Start your download and once it gets completed please send us the Log.txt file from the locations listed.
    WIN : C:\Users\<Username>\AppData\Roaming\com.adobe.px.Downloader.<some-num ber>\Local Store\
    MAC : /users/<username>/Library/Preferences/com.adobe.px.Downloader.<some-n umber>/Local Store/
    You can email me the log.txt file at [email protected]
    Thanks,
    Smriti

  • How can I save an indd file as an idml file without opening the document?

    I cannot open an InDesign file that was made in a later version of InDesign because I don't have the right plugins. How can I convert this indd file to an idml file without opening it?

    Well..... sort of depends on your version.
    If you have any version as part of CC subscription, the latest updates are supposed to be using a cloud-based service to generate the IDML for you so that you can open the newer files seamlessly.

  • How can i save a pdf file to ipad

    How do I save a PDF file to my iPad without saving in iBooks?

    You will still need an app to save it to. If you don't want to use iBooks then there are a number of other free (and paid for) apps such as Adobe Reader - GoodReader is a paid for option but it supports other file types as well.

  • How can i make Distiller autoname file ( when exprting from other application?)

    hello everyone,
    i have been searching for a solution for a long time please help me >
    we have more than 100.000 docuents saved as pic on our network at work by using ( Laser Fiche). I wanted to save all files by using acrobat distiller but when i try to print a file i was prompted to enter a file name! but i don't want to... i want the distiller create a file name automatially.
    in the preferencesd i unchecked ( ask for PDF .. ) but the problem is that all files saved were overwritten because distiller was imporing the file name from Laser Fich!
    how can I make distiller ( autoname files like 0001 0002 0003 and so on) ?
    forgot to tell you that i am using acrobat version 5 ( and windows xp + laser fiche at work )
    thanks in advance

    thanks Bill@VT -
    it didn't work
    I opened the properiteis of the distiller and uncheck the ( prompt for the PDF file name) so that the distiller can save files automatically . it did but by overwriting the files because the original files in the LASER FICHE have same names so the distiller saved one file only by overwriting ....that's why i want to make distiller to name files when saving them ( the distiller are imorting the files from Laser fiche only but i want it to autoname them )
    i also opened distiller properites and unchecked the ( ask to replace existing PDF filename ) the distiller was always asking me to replace file ! and I can't do it this way because I have more than 100.000 docuents!
    sorry , I know this is a very difficult question
    but I would very happy if you can help me
    hank you
    Al

  • How can I save Aperture in an external disk?

    How can I save Aperture in an external hard disk?
    Thanks,

    In addition to mende1's advice:
    The Aperture application should be installed in the "Applications" folder; otherwise software update will not work.
    Your Aperture Library can be stored where you want it, but if your Aperture library is referenced (if you are storing your original image files outside the Aperture Library), you will need to use the command "File > Relocate Original" to move the original image files to your external hard drive as well.  Check the "Import panel" in Aperture, how the option "Store Files" in the "Aperture" brick of the import panel is set - "in their current location" or "In the Aperture Library".
    Regards
    Léonie

  • How can I save a XML file with JAXP1.1?

    Dear All.
    I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1.
    How can I do? thank you.
    Many person give me a idea the com.sun.xml.tree.XmlDocument, but I can't find the class in API document or JAXP1.1's packages. why?
    what is it? How can i use it?
    thank you very much.

    The way to save an XML Document is using a Transformer.
    To have access to a transformer use the packages :
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Then for saving your Document Object (named dXml) get a Transformer Object with the TransformerFactory Object :
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    Now you have got your Transformer Object, to save your Document Object use the method :
    Document dXml = getMyDocument(); // this is your Document Object.
    OutputStream osSave = getMySaveStream(); // this the OutputStream you need to save your Document.
    try
    t.transform(new DomSource(dXml), new StreamResult(new OutputStreamWriter(osSave)));
    finally
    osSave.close();
    And your Document was now saved.

  • How can I save my Log files (and other my own files) to windows azure ?

    Hi ,Dear all
    I am migrating an Asp.Net Web App to Windows Azure. It runs in IIS
    In that Web App,it will:
      1. save log files to a virtual path (for example, save to $WEBAPP_ROOT_DIR/LOGFILES/
      2. save ViewState by session as temporary files to a virtual path (for example , save to $WEBAPP_ROOT_DIR/VIEWSTATE/
      3. upload some image files to the web server virtual path at $WEBAPP_ROOT_DIR/UPLOAD/
    so, when I migrate the web app to windows azure,how can I do the same job in my code?It seems so many great changes in my code ...
    Any ideas and suggestions for me ? many thanks!

    hi Eric,
    If you use Azure website, you can save your log and files into azure storage service ,such as blob or table.
    If you use VM to host your service, you can only attach a data disk or file service on your VM and save your data into data disk or file service.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I write to text file colorful texts

    I save system events in a text file,for example when system give warning message i want to write it red

    As others have mentioned, if you want to view text in different colors with an viewer/editor tool outside of LabVIEW, you must provide the necessary formatting for that tool.
    If it works for your application to view the file using LabVIEW you can do this:
    1) Place a unique key in each line that identifies an error.
    2) Display the text in a Listbox and color each line based on that unique key.
    You can fairly easily provide a stand alone viewer if needed.
    This technique can also be expanded to provide multiple colors.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

Maybe you are looking for