Change a textframe which was not created by a variable by getByName

Hi all

Someone know how to change a textframe pre-existing in illustrator with extendscript. I can see how after using '.add' and then referring to the variable and changing the content, but I can't seem to find the answer to the alteration of the content of a textframe which was not created by the script:

I came across "TextFrameItems.getByName", but I can't seem to make it work. Any help would be appreciated.

var doc = app.activeDocument;

var Ref = doc.textFrames.add ();

var Ref.contents = "blah" = myContent

var doc = app.activeDocument;

// add 3 frames and have their contents read "blah"
var Ref1 = doc.textFrames.add();
var Ref2 = doc.textFrames.add();
var Ref3 = doc.textFrames.add();
var myContent = "blah";

Ref1.contents = Ref2.contents = Ref3.contents = myContent;

// now give the second frame a name, the name that shows in the Layers palette
Ref2.name = "frame2";

// get second frame (already in the document) and change its contents
doc.textFrames.getByName ("frame2").contents = "blah blah blah";

Tags: Illustrator

Similar Questions

  • I have windows vista Home premium 64-bit installed on my sony vaio cs36gj, which was not install updates. Or running fixit is. How updated?

    I have windows vista Home premium 64-bit installed on my sony vaio cs36gj, which was not install updates. \niehter is running thing fixit. How updated?

    Hi Vishal,

    1. what happens when you try to install Windows Update and the fix, you get any error message or error code?

    2 have you made changes on the computer before this problem?

    3 is the limited issue during the installation of specific updates?

    Problem when installing windows update, see the following Microsoft article.

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2: http://support.microsoft.com/kb/2509997

    Solve common installation issues in Windows Update, Microsoft Update and Windows Server Update Services: http://support.microsoft.com/kb/906602


    Notes:

    The following steps include changing the system registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    Back up the registry: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry

    CHKDSK: Data files that are infected can be cleaned by removing the file completely, which means that there is a risk of data loss.

    Microsoft safety scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again. The data files that are infected can be cleaned by removing the file completely, which means that there is a risk of data loss.

    Keep us informed on the status of the issue.

  • An error occurred when trying to share < folder name >. There is no end point for more available from the endpoint mapper. The shared resource was not created at this time

    Original title: sharing folder error

    How to solve this error message when I am trying to share a folder: "an error has occurred when trying to share . There is no end point for more available from the endpoint mapper. The shared resource was not created at this time. »

    Hello

    Were there any changes made on the computer before the show?

    I suggest to see the link and try to run the Troubleshooter:

    Share files with anyone

    http://Windows.Microsoft.com/en-us/Windows7/share-files-with-someone

    See also:

    File sharing essentials

    http://Windows.Microsoft.com/en-us/Windows7/file-sharing-essentials

  • Hello guys, I installed Windows which was not original, and now it's not true, I do not know the product key.

    * Original title: product key

    Hello guys, I installed Windows which was not original and now it's not true, I do not know the product key and I want to activate how?

    If the edition installed does not match the edition, you have a product key because it will not activate.

    If you have a product key for the specific edition installed, try the phone activation:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • UID: NestedListStyle U96 references 3918 UID which was not known to the database

    I started Muse after the last update and get the error message:. Muse is automatically terminated. UID: NestedListStyle U96 references 3918 UID which was not known to the database. I can't work!

    Hi Andreas,

    Could you please try the following: -.

    If you are on MAC: -.

    1) go to the location:-~/Library/Preferences (you can use Finder--> Go--> Go to folder or shift + command + 'G' type in the location)

    (2) move the com.adobe.AdobeMuseCC.2014.3 folder to another location

    (3) inside of the Preferences folder, navigate to the Adobe folder and move the following folders to another place: -.

    Adobe Adobe Muse CC libraries, library CC Adobe Muse, Muse CC

    If you are on a windows machine: -.

    (1) open file type %appdata%\microsoft\windows\sendto and Explorer on the top (C:\Users\username\AppData\Roaming)

    (2) move the com.adobe.AdobeMuseCC.2014.3 folder to another location

    (3) inside of the Roaming folder, navigate to the Adobe folder and move the following folders to another place: -.

    Adobe Adobe Muse CC libraries, library CC Adobe Muse, Muse CC

    Try running Muse again.

    Kind regards

    Neha

  • How can I get my settings back after a game has been downloaded which was not compatible with Vista?

    My son downloaded a game that was not compatible with Vista. I uninstalled the game, but my settings are very strange. They are great and my screens do not match the screen when I go online. Everything is out of whack.

    Hello

    Do a system restore to before that was the problem.

    "Using Windows 7 or Vista System Restore."

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    If this does not resolve the problem, go to the website of the manufacturer of your computer > look for a driver download section > find your computer model number and operating system > draft.exe last graph / video / chipset drivers (depending on how it is written it) > install them > change the screen resolution.

    "Change screen resolution".

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

    See you soon.

  • I have an existing web site was not created with Muse.  Can I import existing site pages and Muse allows to update and modify.

    I have an existing WEB site, not created with Muse.  Can I import the pages and update / change with Muse.

    Unfortunately not. Muse is a street in this regard. You can download the assets of the existing site, but you will need rebuild the site of Muse.

    I hope this helps.

    David

    http://creativemuse.co

  • Can I pick up a conversation which was not justified?

    Hey,.

    I want to pick up a conversation I had on my msn but he was not saved... it's really important for me to recover. If anyone knows how do it, I would be very grateful.

    Please repost for MEN Support forum.
    Here is the main link: https://support.msn.com/Default.aspx?&st=1&wfxredirect=1 for the benefit of other people looking for answers, please mark as answer suggestion if it solves your problem.

  • Web site service Canada at the request of birth certificate access advised to download adobe reader. Which I finished but now has informed that I must accept the end user license which was not part of the load down. LOA tried to re down load but already a

    My apologies, this is my first attempt to ask for help.

    In trying to gain access to the application for a certificate of birth on the site Web of Service Canada, they advised me to download adobe reader, I finished. However, recommended site then I had to start reader & accept end user license. It was not part of the download, appears I missed this step. Impossible to find where to accept them & when I tried to re download advised already loaded.

    Please tell us how to complete the acceptance of license, if I can use the product. Thank you.

    Did you launch Adobe Reader?

  • I'm looking for current or existing textframe (which was created using PlaceFileInFrame() call)

    I have created a textframe with PlaceFileInFrame(), now I want to find the same (or get the ID of the textframe) and continue the insertion of text in there, is there any API call?

    Thank you

    PlaceFileInFrame refer the image UIDRef. So, this should be easy.

    See below:

    SDKLayoutHelper layoutHelper;
    UIDRef frameRef = layoutHelper.PlaceFileInFrame(...);
    InterfacePtr graphicFrameData(frameRef, UseDefaultIID());
    if(graphicFrameData) {
             InterfacePtr mcTextFrame(graphicFrameData->QueryMCTextFrame());
             if(mcTextFrame) {
                  InterfacePtr textModel(mcTextFrame->QueryTextModel());
                 //Once you have got the textModel, you can refer SnpTextModelHelper::InsertText for text insertion.
              }
    }
    
  • Redirect a site detskop was not created with Muse to a mobile site with Muse.

    Hello.

    I just published a mobile Web site with Adobe Muse, for a client who in the past, I have created a Web site with detskop FreewayPro.
    Do not Redo the site detskop completely, was looking for a solution which would allow to redirect to the mobile site created with Adobe Muse to come once you type the address of the cell.
    Not knowing the code, there is a quick fix? Code redirectshere.
    Thank you, L.

    There are many scripts available on the web redirection, all code mobile redirection of google and you'll find plenty of examples to add to your desktop site. There is nothing that you can do in Muse for this because it needs to be done on your desktop site.

  • How can I reset my computer Windows Vista to factory default. Including deleting everything which was not there, out of the factory.

    I want to learn to back when I bought it. I know older systems have so I thought it was her. Ive had it worked on and everything I want to just go back to when I got it it please.

    Hello

    Here are the different ways to reinstall Vista

    Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    ____________________________________________________________

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    __________________________________________________________

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    ____________________________________________________________

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • UPDATED AND NOW ASK FOR CODE ACCESS WHICH WAS NOT ALLOWED IN THE FIRST PLACE

    I updated this morning and after that completion says to connect to itunes and enter my password.  I disabled my access code months due to my son wanting to be able to use it freely without having to enter (he knew however the password before that as well).  so now I'm stuck with the recovery of a backup one year option or erase all my data.  I'm still confused as to how the system would invite me to enter a code that has not been activated in the first place... I only got 2 different codes within 4 or 5 years I've had it and neither one works.

    any ideas?

    gigi_hage12,

    Unless you actually had an active password, this screen after the installation of the update should be only a reminder or a push to create a password at this time for reasons of security as shown on the screen. If you have never had a password, you should be able to select the option button at the bottom of the screen, where it will allow you to ignore the creation of an access code. I don't remember exactly what the screens looked like or says, but it may be another screen and prompt you again (as a "are you sure") to create a password but there will be an option to "Skip for Now". I hope this helps!

  • How can I add music to my library iCloud music which was not purchased on itunes?

    My family have a shared iTunes library on an iMac which consists of songs taken from disks and purchased songs on several iTunes accounts. We have to take all the music that we love him and place it on our separate devices. Recently, we have subscribed to a family membership of apple's music. I would like to know how I can take a few pieces of our iTunes library and put them in my music library iCloud, as well as Apple's music recorded music, and then share my library of music iCloud for iphone and ipad. I don't want music saved on my iPad air (as it's only 16 GB), as in the cloud to listen only to the wifi and I want to download on my iPhone 5 s (32 GB). Both devices are running the latest OS. Any help and advice would be great.

    To share your music you have not bought on iTunes to iCloud and other devices, you must have a subscription to Match iTunes (I think they call now iCloud music library).

  • Program stops on the road to construction, path/file was not created.

    I have a small vi that reads from a file on the root drive.  If the file is not there, it creates it.  First of all, the vi is to put an end to the build path icon.  This icon will blink for a reason, but no warning is given.  It's as if there is a breakpoint, but I did not a here, and I don't see one.  Then, when it continues, it is unable to create the path and the file does not exist.  I have attached the vi in question.  BTW, this is LV7.0.  Thank you.

    I thought about it.  It will only create a directory at a time.  I had to convert the path of the directory in a table and create each directory in the sequence.

Maybe you are looking for