Name the new document

As part of an AppleScript I develop, I create a new document, I want to give a specific name. So I tried:

say application "Adobe Illustrator".

do new document with Properties ¬

{color space: RGB, name: myString}

end of say

However, the document still appears with the name "without title-1. Is it possible to give the document a name when you create? Or can only do you when recording?

I need the same thing and found the answer using the DocumentPreset object.

In JavaScript, I put the name of the new document in the options DocumentPreset and applied when I created the document. getPoints is simply a conversion from inches to points, btw.

var docPreset = new DocumentPreset;
docPreset.units = RulerUnits.Inches;
docPreset.width = getPoints(13.0);
docPreset.height = getPoints(18.0);
docPreset.title = 'test document';
docPreset.colorMode = DocumentColorSpace.CMYK;

var doc = app.documents.addDocument(DocumentColorSpace.CMYK,docPreset);

Tags: Illustrator

Similar Questions

  • When I print a MS Word document my printer prints symbols but when I create a new document and try to print the new document of his impression.

    * Original title: printer print only symbols

    Hello world

    When I print a MS Word document my printer prints symbols but when I create a new document and try to print the new document of his impression. If my old document is damaged to corrupt so how do I fix it

    Old documents are probably corrupt. Check out these links:

    How to troubleshoot print failures in Word: https://support.microsoft.com/en-us/kb/826845

    How to troubleshoot printing problems in Word: https://support.microsoft.com/en-us/kb/826862

    Troubleshooting damaged in Word documents: https://support.microsoft.com/en-us/kb/918429

    And this announcement in Office/Word groups is a better idea. This may very well be a FAQ here.

  • InDesign CC closes unexpectedly when you create the new document

    Hi, my CC Indesign closes unexpectedly whenever I try to create a new document.

    Also, it closes when I use the plugin Blurb Indesign, to create the new document or for download from my books - during the pre-flight, she leaves.

    I've updated to CC2015. I also re-installed the plugin blurb. These two measures do not seem to work.

    • The InDesign file in the cache folder, delete.
    • In the preferences/Adobe InDesign / Version 11.0/en_US (or any language folder you see there), locate the InDesign Defaults file and place it on your desktop (this way you can always copy it back if necessary). If there is a file, InDesign SavedData offers also the office.
    • Restart InDesign after doing that, fingers crossed it will launch.
    • If you are satisfied with the result and don't need your InDesign preferences previous folder (InDesign Defaults), then delete the two files to the desktop computer. I usually keep a copy of them just in case ;-) But 99% of the time that I do not put them back, as clearing caches and prefs seems very often cure the problems.
  • Cannot write the new document preset file.

    I had problems with the installation of the update. I thought that all my apps are up to date, but then I tried to update to After Effects, which may or may not have been installed on this machine (normally I use it on my old machine, but I had to try new features)

    So now I get the error update U44M1l210 - don't know I have this correct because I can't tell what the character in the Center is (between the U44M1 and 210)

    I tried delete file as recommended in other threads thing, but it seems that all of us who have been in the past months, and I've seen the suggestion on the opening of the Terminal--but I'm not familiar with the Terminal...  Tried installing many times, rebooted several times, closed creative cloud repeatedly (is my frustration showing?)

    I think that most of my apps are up to date and I had to stop the FIGHT with installation and try to get some WORK.

    In any case, I opened Photoshop and things seem to work OK - but then, when I try to close Photoshop I get this Message:

    "Unable to write to the new document presets file."

    What does that mean? I spent 2 hours and 49 minutes to attempt to update the applications in the creative Cloud.

    Yosemite 10.10.4 on a Mac Mini (end 2012) 16 GB of ram

    I'm not really a person of whistle, but I'm really frustrated this morning - thank you in advance if you can help me.

    Fix possible Mac 10.10.4 (at least for Premiere Pro) https://forums.adobe.com/thread/1891705

    10.10 mac. ? sometimes has problems, often related to the 'default' permissions that need to be changed

    -solution https://forums.adobe.com/thread/1689788 of a person

    - and a Java update https://forums.adobe.com/thread/1507936

    -Update may break things https://forums.adobe.com/thread/1772260

    -http://blogs.adobe.com/creativecloud/creative-cloud-and-yosemite/

    -https://helpx.adobe.com/x-productkb/global/mac-os-yosemite-compatability.html

  • How to save a Logo in InDesign to use in the new Document?

    Hi all

    I'm new. Period.

    Self-taught.

    But learning.

    I mistakenly created the logo of our company in InDesign (it was easier in the text how I needed).

    Now, I need to 'copy' or save the logo ONLY in the document to be used in a new Document.

    What I tried.

    1 copied and pasted in Illustrator. Save in Illustrator file ESP. up to the new Document... Everything looks good, except that my lines of gradients are WHITE and the gradient box is all white, and the final spacing line is sized differently.

    2 taken from the entire InDesign Document. Copied. Pasted into the new Document. (It is too big) A. Maj + resize with corner of box. -Everything is deformed, text stays the same size, it's horrible. B. scale, Bingo. But I can only evolve at about 85% until there are a few differences OBVIOUSLY NOTICIABLE. My line with gaps some how Expands... but it's really the only noticeable issue.

    3. a lot of savings from both Illustrator and InDesign to try to get it instead as an image, but there is still a problem.

    Help, please!

    All Suggestions are welcome!

    Thank you!

    Put on a single page with nothing else and export to PDF format. Use it wherever you need.

  • Reformats text? When slipped off-page or pasted into the new document

    This is the STRANGEST thing... I have a document in InDesign created by someone else. I intend to use it as 'art of seeds' for another pamphlet, but the text is behaving strangely that I try to move or copy and paste in a new default value of the document.

    The text changes when I simply drag (or copy) the text off the page on the pasteboard box. Still pallets character and paragraph, text frame options, etc. report the same settings for all the copies text. I have an image on the screen what happens when I copy and place it off-page. The original text is on the right, paste on the pasteboard on the left. (The vertical black line is on the left page). It seems that paragraph space before/after changed, but according to the pallets, he does not.

    Slid off page.jpg

    IF ANY PART OF THE TEXT BOX IS IN CONTACT WITH THE SAME PAGE PER MILLIMETER, IT SEEMS OK. But if the text box is COMPLETELY on the pasteboard, it changes.

    If I stick ON a PAGE in a NEW document by default, spacing increases enormously, and yet if I stick on the pasteboard of the new document even, it looks like text on the left, above.

    Pasted into new doc.jpg

    I tried to remove all THE styles from the paragraph of the original document and replace it with no paragraph Style, retain formatting (styles of characters also deletion) and then work with the text. It's always weird.

    It is crucial that I retain the formatting of the original document that I create new based on this, but since the pallets/text of paragraph report all data, I can't... FIXED text. We never saw it?

    InDesign CS5 Mac OS 10.6.8. Suitcase Fusion 14.0.6 Video Software using, who reported no problems when documents have been opened and on what appear to be the correct fonts. Just in case, I have manually activated ALL our versions of Futura, which made no difference when I have opened the document. (I did what is obvious as the reboot and clear the caches of fonts).

    Everyone has already seen something like that?

    I think you will find that the text is printed to snap to grid. Which is defined, what (and in the case of the first illustration, space or space before after) are the minimum distances between the lines. Each line will be pushed downwards following the next line of the grid.

  • Stop the cc dreamweaver asking to save the new document

    How can I disable the dialog box asking me to save a document as soon as I create? I want to create a new document and start to write, and then save it when I'm ready instead of having to save and name it until I really started writing.

    Live view mode requires that the document is registered before it can supply the document. To stop the Dreamweaver asking to save the document, edit in Design view.

  • Illustrator CC - CRASHES when create/open the new document.

    My CC Illustrator crashes when:

    -When I open any *.ai file saved on my drive

    -When I try to create the new file

    I can open the Illustrator (empty, without any document) but as soon as I want to open a document or create (file/new) it immediately blocks wit "Illustrator unresponsive" and it closes.

    I tried to reinstall, but it did not help.

    I have 9 (had for 10 days) PC with Windows 8.1

    Yesterday, Illustrator has worked without problem. Today it may simply not work.

    Help, please. Thank you

    Pablo,

    The following is a general list of things you can try when the question is not in a specific file (you tried/made some of them already). 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically preferences might be corrupt); ((5) is a list in itself and 6) is the last resort.

    (1) close Illy and open again.

    (2) restart the computer (you can do that up to 3 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible);

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    (6) uninstall, run the vacuum cleaner tool (if you have CS3/CS4/CS5/CS6/CC), and then reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

  • Cannot save the new document Pages

    I created a new document Pages, but when I tried to save it I got the message "the file"Untitled 4"could not be opened."

    I'm on a iMac running El Capitan (10.11.6); the version of the Pages that I use is 5.6.2 (2573)

    Hello RichK,

    Thank you for using communities of Apple Support.

    I understand your message that you are not able to save your document Pages. I know how it is important to be able to save your Pages documents for later use. In the following discussion, a user named Kreklo suggests activating/deactivating the feature Documents & data in the iCloud settings. To do this, go to system preferences > iCloud > Documents and data. Then remove the check mark, and then check it in again. Then go towards Pages close it and reopen it.

    The file ' Untitled.pages - tef "could... | Communities

    Best regards

  • Why the default format window opens in the new documents open in Pages 5.6.1?

    Someone else asked this before, but it is with an older version of Pages, and it's a few years, so I thought I'd make a new discussion.

    Everytime I open a new document in Pages (version 5.6.1 on OS 10.11.2, on a 13 "Macbook Pro of 2009), the formatting window is open. It's ugly and I do not want to use immediately. What is the default? Like other posters, I tried to create a model that does not do that, but even at the opening with the model, it opens but each time. As in the other poster said: this is not a terrible amount of work, but it is very annoying to do all the time. This has happened for years. A word about the recent patches?

    Not and unlikely he's going to change.

    Peter

  • name the new dvd

    When I put in a new DVD the computer automatically gives the new DVD of emptiness, a strange name with Chinese characters. I rename the new DVD, but is it possible to automatically find a blank for the name row or perhaps the date?

    It is usually a function/option of the burning in use software.

  • Langer in inches for the new Document in InDesign

    Hello

    My InDesign somehow just decided to change the unit for documents from inches to points. I did not really points so I want to back to inches but have no problems. I think that the way to change the units for new documents should go into preferences - units and increments and change the H and V units there. My preference for units is already defined as inches. And my rules are shown in inches, too. But, when I open a new Document, it shows me always all units in 'p '. After having this problem, I have updated the InDesign CC yesterday, too, but still having the problem. Can anyone help please? Thank you!

    Close all open documents, and that only the value your units in CTRL + K, than stop and open the ID.

  • Open the new document in a separate window does not.

    I can't get this to stay disabled...

    I go in Edition > Preferences > General > uncheck "open documents as tabs in the same window.

    I go to adobe to reboot, restart my computer, etc. and every time I open adobe, this box is always checked and new documents open as tabs. HELP PLEASE! It's driving me crazy!

    Hi carrier71034101,

    Open the CD player, go to the Help menu and repair the installation.

    Now go to Edit > preferences > General > uncheck "Open documents as tabs in the same window", click OK to confirm the changes & revive CD player.

    Let me know if it solves your problem.

    Kind regards
    Nicos

  • Default unit preference Illustrator CC 2015 not reflecting is not in the new document to pop-up menu.

    I recently improved and updated to Illustrator CC 2015 19.0.1 (Windows). I seem to have a persistent problem since I upgraded from CC to CC 2015 2014. I put all the preferences of the unit by default to millimeters, but when I create a new document the units from the drop-down list are always in points (until I manually select the drop down menu to find millimeters it). Once the document has been created all units are in millimeters, as it should. Before CC once preferred by default unit in 2014 has been set to millimeters the new pop-up menu also default document would display the dimensions of the document in millimeters. Is this a bug that needs to be address or there at - it a setting I'm missing?

    The problem has now been corrected since the last update to Illustrator (19.2.0). Thanks to all who responded.

  • New Document window are missing when you open the new document, along with other menu items: object style, the effect controls panel, etc.

    Miss me a lot of items, it seems that in my InDesign program.  How can this be?  I'm taking a class at the local college (inDesign CS6), and when you go through the book and steps, I keep noticing that I'm missing things.  For example: when I open a new Document - No new window does not appear on my screen, and there is no way to change the page size, etc. that appears. (2.) there is no object Styles Panel - window > Styles > Styles object - but the option object Styles does not exist.  3.) there are no available effects Panel, either. As I continue the race, things keep getting showing like that.  What is going on?  I do not have something wrong; My instructor verified that indeed these things seem to be missing.  I bought the Adobe Creative Suite 6 Design & Web Premium disc for Windows operating system.  Help, please!

    I had problems to install the drive, but thanks to someone in the forum, I have put everything on the desktop and installed in this way.  What why what is happening?

    In fact, you must return to the extensions Manager in all cases and make sure that all of the Adobe extensions are checked on.

Maybe you are looking for

  • Nuisance calls on my Skype number

    Hello I get calls/voice mails from people asking me to call if I have a certain person (which I am not) and back These are people either charity or tax. I got a U.S. Skype number but it is really annoying me, are Skype numbers recycled from previous

  • Decommissioning of my hp PC laptop 15-g073nr

    Hello I don't know if it is good advice to ask this question, or if it must be asked under the Board of material because I've seen questions / answers like mine in two different points. After downgrade my computer hp laptop 15-g073nr of the preinstal

  • FreeCell crashes in Windows 7

    It is the new Freecell in Windows 7. This has happened only once in hundreds of games. The table has frozen; I couldn't move all cards with one exception. I was able to move a card to the spare area (4 cards), but then couldn't move everything on the

  • B1 Iconia Tablet - insufficient storage space

    Acer Iconia B1 Tablet 8 GB 32 GB internal external (Micro SD) Android Version 4.1.2. My Acer Tablet keeps telling me that I have a memory, even if I uninstalled multiple applications. Storage Android app provides the following information:INTERNAL ST

  • Signed App behavior

    I think I just sign my application successfully, but I can't because I have not received an email from RIM that I've heard that you're supposed to do. Is there another way to check if the signature has been accepted? They behave differently at all in