Quick question for a beginner

Hello world

I spent about half a day looking for what I want. I read the guide to Illustrator scripts and browsed forums but I can't find an answer so here's my question:

I have an Illustrator file.

I have 3 layers in this file called "L", "M" and "S" (for size).

In each layer, there are two elements of text with something written inside. They are always named 'Name' and 'number '. I created everything using my mouse and keyboard, no script.

It looks like:

L (layer)

Name (text)

Number (text)

M (layer)

Name (text)

Number (text)

S (layer)

Name (text)

Number (text)

I want to choose a specific name in the M layer, for example. I can't find a way to do...

myDoc = app.activeDocument var
myLayer = myDoc.layers var [1] / * myLayer is "M" * /.

I read that it is possible to access the textframe wanted to help: myDoc.textFrames [2] / * 2 refers to the third text element within the framework of related texts document. */

My problem is that I can have a big file with tons of other executives of related texts, so I would get called a 'name' in the layer of "M" without knowing his rank in the frames of related texts document.

I tried var myText = myDoc.myLayer.textFrame but obviously myLayer didn't linked text frames, it only works with documents, or I missed something.

I hope that you guys understand my problem.

Thank you for your help.

Hi totom, welcome to the forum

Layers have linked text frames, you were very close, here is the syntax to do what you want

var idoc = app.activeDocument;
var ilayer = idoc.layers["M"];
var iframe = ilayer.textFrames["Name"];

iframe.selected = true;

Tags: Illustrator

Similar Questions

  • Quick question for the owner of the device - can paste you the pictures in BBM, text msg, or by e-mail to body?

    Hey there BB10 dev device owner, can quickly check and see if it is possible to copy and paste a photo/image in BBM, text or e-mail message?

    I checked via the Clipboard API I am successfully load a picture on the Clipboard, but I make a big assumption that the user has the possibility to share in the sticky in a message. If that assumption is wrong, I need boot into the path of Messages API.

    Secondly, how can I get a dev device? Is a sufficiently similar PlayBook for me to test it on in a store?

    Thanks for the help.

    Kurt

    This is not supported.  You can use the framework of the call to share images by email, BBM, SMS, etc...

    Details are here:

    Here is an example it does: the essential of Invoking applications

    We will have more applications added to this list next week.

    InvokeActionItem {
        title: "Share Image Over BBM"
        query {
            invokeActionId: "bb.action.SHARE"
            uri: "file:///accounts/1000/shared/photos/image.png"
        }
    

    Who will send the image as an attachment.

  • Fusion/Windows 7 tips & questions for a beginner

    Hey guys (and girls) I've been a linux user especially lately so I more or less missed the boat on windows 7 but I'm looking to load on my MBP, but I have a few newbie questions if can help people.  I tried to do a search, but I think that my terminology or the lack of good conditions got in my way.

    Some background information, I use a unibody MBP with 4 GB of ram 5.1 which has Snow Leopard and VMware fusion 3.01.

    I am interested in what would work well with the merger of two ways, bootcamp vs install a vmdk and 64-bit vs 32-bit...

    First of all is it an advantage to running vmware fusion with bootcamp, IE merge use the bootcamp partition?  What I see better performance if I instead of use the bootcamp created a virtual machine (vmdk) within the merger?

    Second question is about 32-bit vs 64-bit. I'm under 4gig of RAM which I will devote only 2gig in vmware. Is it interesting (stability, or performance) to the use of 64-bit within the fusion flavor (vm installed not bootcamp) or I'll be better with 32-bit installation?

    If I'm melting point using the bootcamp partition, is third question - interesting to settle current with the 64-bit or 32-bit.  It's merger would provide more performance with the bootcamp windows 7 32 bit, and vice versa (or it does not matter)

    Fourth question, seems, the fusion installs things when you use the bootcamp partition and I guess I'll need to install the tools as well.  That will cause problems, or headaches when I boot physically in training camp, that is, drivers of devices for non-existent devices. What video, nvidia 9600 m in bootcamp vs virtual gpu fusion provides.  I can't wait to see problems when I turned off and restart under bootcamp.

    Last question, I will visit the hell of activation if the bootcamp partition uses two cores, but I just dedicate a molten core when you point the merger to use the bootcamp partition. I don't want to always have to re - activate win7 because when I boot in bootcamp, he sees two hearts but merger only when.

    Thanks in advance

    Mike

    take a deep breath... OK... =)

    Firstly there is an advantage to running vmware fusion with bootcamp

    You get better performance out of hard in this instance. With the help of a physical disk is not the OS X volume would be better than BootCamp, but of course only applicable on a Mac Pro. Rationale: with multiple partitions, the needle on the hard disk has a long way to the second partition, back and forth all the time between Windows and Mac does travel. A hard, as a general rule, would include a contiguous space due to the Mac file system optimizing the layer of block on the fly.

    The advantage of using BootCamp is if you need to take advantage of the full potential of the Mac hardware in a dedicated Windows environment. Such use might be to, say, play games of high quality, latest (Call of Duty, anyone?), at higher resolutions / great detail. Ditto for just about any application for Windows which needs a beefy video system (OpenGL rendering, CAD, stuff like that)

    Is it interesting (stability, or performance) to the use of 64-bit within the fusion flavor (vm installed not bootcamp) or I'll be better with 32-bit installation?

    I would say that no, there is no significant advantage to the use of 64 vs 32 bit in a virtual machine. Stick to 32, it is more compatible with the software and any equipment that you choose to give to Windows (driver for 64-bit stuff support is usually OK, but there is no compelling reason to do it in a virtual machine)

    If I'm melting point using the bootcamp partition, is third question - interesting to settle current with the 64-bit or 32-bit.

    Windows 7 is not supported by BootCamp by Apple, so probably 64 bit will not be 100% working drivers.

    Fourth question, seems, the fusion installs things when you use the bootcamp partition and I guess I'll need to install the tools as well.

    We install tools (drivers and additional software), as well as some tips for handling activation. So we keep some of the files that Windows uses to verify that it has been activated, but due to the change in material Windows must activate two times. Record us each activation, detect when Windows runs in our VM and present key information and activating appropriate to the operating system (to keep him from having to activate every time you pass ="

    What video, nvidia 9600 m in bootcamp vs virtual gpu fusion provides. I can't wait to see problems when I turned off and restart under bootcamp.

    I did not talk about all issues related to the video does not when it is started normally. Windows detects that hardware is present at startup, check if it uses drivers and goes from there.

    Last question, I will visit the hell of activation if the bootcamp partition uses two cores, but I just dedicate a molten core when you point the merger to use the bootcamp partition

    N ° again, we keep the profile "enabled" and save it.  When the BONE is introduced in the merger, we use our activation profile.  When you started in native mode, it uses that have never appeared by activating in Bootcamp.

    The direct answer to 'can I use bootcamp or hard' would be: depends on what you want to do with the virtual machine.  If it's general things, you're good... If you're a gamer or CAD designer, BootCamp is a good option.  =)

  • New from FCP - persistent of quick questions for huge time savers

    Questions that I can't understand, or hope he have a new answers to:

    1. are there in all cases to view pictures in double in the sequence? (not only in the preview indicating how many times it has been used) I'm looking more for a visual alert. If key in the videos I have change.

    2. is there a way to show out of sync, without video and audio related?... .or am I obligated just to keep files as default-related?

    3. is it possible to double click on an item in the sequence and have the playhead appears in the source to the current location on the clip? Seems to work the first time, but then always in the same place if the clip is double clicked new w / the head of reading in a different place later.

    4. is there a way to keep the structure of imports if records records records? I know that you can import folders if they don't have any other folders inside them... but folder in the folders do not have the same structure.

    5. I want to emphasize an item in the sequence, press + 10 and to pass 10frames. How can I do this? I know that I can zoom in, deselect the pressure button and above AND I know that I can move the playhead and align it, but the two are not as effective as what I'm used to.


    I have responded to you here: http://forums.creativecow.net/readpost/3/936453

    Most of the things you want are requests for features except #5. Simply use the numeric keypad, not the numbers at the top of the keyboard.

  • Quick question for blackBerry Smartphones

    the GOAL didn't count e-mail as a text message? I have a plan of 200 messages and I know for a fact that I didn't send or receive messages and 150 more last month, but I used the GOAL much and I went through about 250 on my Bill. I have AT & T.

    -tino

    Tin - welcme on the forums!

    Depends on how it comes across to your phone.  If you connect in the purpose - or similar - where to use as AIM... then it uses your data plan.

    If you have your GOAL set up as mobile on your PC computer, they appear as text messages and use the 200 text package you have.

    I hope that makes sense.

  • SQL question for a beginner...

    I have the following structure:

    NUMBER OF PROCESSING_ITEM_ID
    NUMBER OF PROJECT_ITEM_FK
    START_TIME DATE
    END_TIME DATE
    NUMBER OF WORKSTATION_FK

    examples of data

    81,23,10-27-2010 08:00, 27/10/2010 10:00, 3
    42,1,10-27-2010 08:00, 27/10/2010 11:00, 1
    22,23,10-27-2010 13:00, 27/10/2010 17:00, 2
    1,23,10-27-2010 15:00, 27/10/2010 16:00, 1
    23,23,10-27-2010 17:00, 27/10/2010 20:00, 2

    I'm trying to divide the data into lines of an hour. If this line we would be divided into:

    81,23,10-27-2010 08:00, 27/10/2010 09:00, 3
    81,23,10-27-2010 09:00, 27/10/2010 10:00, 3

    third row would be divided into:

    22,23,10-27-2010 13:00, 27/10/2010 14:00, 2
    22,23,10-27-2010 14:00, 27/10/2010 15:00, 2
    22,23,10-27-2010 15:00, 27/10/2010 16:00, 2
    22,23,10-27-2010 16:00, 27/10/2010 17:00, 2

    The statement that is made should display the data in this way...

    John Brewer
    City of Seattle

    Question delicate John, you should ask this in the SQL forums

    This is the query

    with temp AS
         (
          SELECT 81 PROCESSING_ITEM_ID,23 PROJECT_ITEM_FK,TO_DATE('10-27-2010 08:00','MM-DD-YYYY HH24:MI') start_date,TO_DATE('10-27-2010 10:00','MM-DD-YYYY HH24:MI') end_date,3 WORKSTATION_FK from dual
          UNION ALL
          SELECT 22 PROCESSING_ITEM_ID,23 PROJECT_ITEM_FK,TO_DATE('10-27-2010 13:00','MM-DD-YYYY HH24:MI') start_date,TO_DATE('10-27-2010 17:00','MM-DD-YYYY HH24:MI') end_date,2 WORKSTATION_FK from dual
          )
        ,time_span AS
        (
         SELECT MAX( TO_NUMBER(TO_CHAR(end_date,'HH24')) - TO_NUMBER(TO_CHAR(start_date,'HH24')) ) TIME_SPAN
         FROM temp
        )
        ,time_period_rows AS
       (
        SELECT level-1 PERIOD FROM time_span connect by level <= TIME_SPAN
       )
    SELECT T.PROCESSING_ITEM_ID,T.PROJECT_ITEM_FK,TO_CHAR(T.start_date+TR.PERIOD/24,'MM-DD-YYYY HH24:MI') start_time,TO_CHAR(T.start_date+(TR.PERIOD+1)/24,'MM-DD-YYYY HH24:MI') end_time ,T.WORKSTATION_FK
    FROM  temp T
         ,time_period_rows TR
    WHERE PERIOD <= TO_NUMBER(TO_CHAR(end_date,'HH24')) - TO_NUMBER(TO_CHAR(start_date,'HH24'))
    ORDER BY T.PROCESSING_ITEM_ID,TR.PERIOD
    

    Output

    PROCESSING_ITEM_ID     PROJECT_ITEM_FK     START_TIME     END_TIME     WORKSTATION_FK
    22     23     10-27-2010 13:00     10-27-2010 14:00     2
    22     23     10-27-2010 14:00     10-27-2010 15:00     2
    22     23     10-27-2010 15:00     10-27-2010 16:00     2
    22     23     10-27-2010 16:00     10-27-2010 17:00     2
    81     23     10-27-2010 08:00     10-27-2010 09:00     3
    81     23     10-27-2010 09:00     10-27-2010 10:00     3
    81     23     10-27-2010 10:00     10-27-2010 11:00     3
    

    I used a view inline as data source ( temp ), you can change this to your table, name (then remove the display online)

  • quick question for position()

    If there is a code like this

    <? If:position()!=last()? >

    is there a code also for:

    If position = 3rd to the last
    then
    view varchar?


    Thank you

    I think you want:
    2? > print

  • Quick question for the QUARTER (DATE)

    Hello
    I need to display the quarter of a specified date.
    I can see that the only possible output can be 1,2,3,4.
    I need to display 01,02,03,04

    Unfortunatelly QQ will give twice the qurter (44) instead of 04
    SELECT TO_CHAR (TRUNC (sysdate), 'QQ') FROM DUAL;

    Is it possible to display the desired output, such as the MM will display for example 03 March?

    Thank you in advance!
    SELECT lpad(TO_CHAR(TRUNC(sysdate), 'Q'),2,'0') FROM DUAL;
    
  • Another easy question for a beginner

    Example: Pig picks up Apple with pig.addChild (apple);

    If, say, a bird wants the Apple but the pig there:

    If (bird.hitTestObject (apple)

    {

    bird.addChild (apple);

    Apple.x = 0;

    Apple.y = 0;

    }

    and the pork and the apple touch the bird, Apple remains with the pig.

    If an object is a child of another object like the pig, it's (the Apple in this case) dependent on only this object (the pig)?

    Thanks for any input

    Shiim

    You are welcome.

    p.s. Please mark this thread as answered.

  • Quick question for mac users

    Unfortunately, I'm not familiar with OSX and I have a client who is in trouble.  Should be able to view a pdf in a browser on a mac?  Apparently, he says he downloads and opens on his desk each time instead of display in its frame on our web application.  I'm looking for confirmation that it really is possible with Player 9.x.  I checked his internet is set to "view in browser".  I wonder if there need to uninstall and reinstall, or if it always downloads just on a mac.  I think he uses opera.

    Thank you!

    Safari should have the ability to view a PDF file of in but all others will need a plug-in to do.

    Try http://www.schubert-it.com/pluginpdf/

  • Quick question Concept...

    Hello

    I'm a designer based in Bozeman, Montana and had a quick question for you guys.

    I was recently invited to be part of a new online magazine design team.  I was curious as to whether or not it would be possible to publish this magazine using the Flash.  The layout and design will be completed in InDesign.  A friend of mine (also a designer) thought it might be possible and told me to post about it here.

    It would be ideal that the magazine could be put across to adapt automatically to the player screen.  Navigation buttons, including links to archive forward, backward, and so on would be as important.  Page flip animation is not necessary.  Resolution and clarity are essential, both for text and photos.

    What do you think guys?  Is it possible in Flash, and if not how can I make it work?

    Thank you.

    I did not much/all this. But it could be a useful starting point.

    http://TV.Adobe.com/?TrackingID=EAWSV#VI+f15383v1024

    You do not have a John Bozeman pork chop? mmmm, pork chop "sandwich"...

  • Am about to buy DW.  2 quick questions before proceeding.  (1) can I associate a DW created an EXTERNAL SQL Express database for the read/write site?  Can be made safe?  (2) am plans to use Contribute to allow non-technical users to end dry change

    Am about to buy DW.  2 quick questions before proceeding.  (1) can I associate a DW created an EXTERNAL SQL Express database for the read/write site?  Can be made safe?  (2) am plans to use Contribute to allow non-technical end users EASILY change the sections of the web site.  Can this work?  Thank you.

    I would like some ideas.

    A CMS is the standard solution in the industry today. The most common environment is LAMP (LINUX, Apache, MySQL, PHP).

    Some of us to write custom CMS systems for a living. I concentrate on CMS for retirement centers. There are all kinds of solutions CMS available ranging from generalist, off-the-shelf CMS like WordPress, completely custom, with a lot of opportunities in the meantime.

  • I have 2 quick questions on the Adobe Creative Cloud membership. I currently have 2 children in high school.  (1) is the license for 1 or can it covers 2 users? (2) can they access it from PC or MacBook this year? Thanks for your help.

    Adobe community, I have 2 quick questions on Adobe Creative Cloud membership. I am considering the Adobe Creative Cloud 'Plan of the student' for 2 children currently in high school.  (1) is the license for 1 or can it covers 2 users? (2) can they access it from PC or MacBook this year? Thanks for your help.

    each single-user license, it's just that, for a single user and can not (legally) be shared between two different users.

    programs of CC can be installed on pc or mac.  each user can install on an unlimited number of computers, but can only connect to, at most, two computers at a time.  These 2 computers can be 2 pcs, 2 macs, or one of each.

  • Quick Menu for Canon PIXMA MX452 software

    Whenever I click on the program of Quick Menu for the product in question, I get the following error message:

    Quick menu Canon stopped working.  A problem caused the blocking of the program works correctly.  Windows will close the program and notify you if a solution is available.

    I've uninstalled and reinstalled the driver and software Quick Menu several times, both the disk and online downloads.

    I turned off my anti-anti-virus/firewall program and also said the security program the program of Canon is a trusted application.

    I am able to print/scan/copy, but not on the Quick Menu, which is more convenient.

    Help, please.

    Hi clarkdjensen,

    There may be a third scanner driver interferes with the Quick Menu.  Please, try the following:

    1. click on 'Start' and then on 'computer '.

    2. in the left pane, click the arrow next to the record Local (c).

    3. click on the arrow next to Windows to open the folder

    4. highlight the twain_32 folder.

    5. the folder should have 2 folders that begin with PIXMA MX452 and a file called wiatwain.ds.  Other folders or files must be moved to the office.

    6. restart the computer and try to scan the image.

  • Two quick questions (hopefully) - right way to dynamically change the CSS class and put of Splash screen implemented

    Couple of quick questions have left me speechless!

    So, it seems obvious that many JavaFX applications want to dynamically change the CSS styles.  Is the best way to do it through la.getStyleClass () .add ("classname") < node >?  The underlying data structure is a list of observable.  So let's say we have 5 styles that simply to change the fill color of a circle of 5 different colors, respectively.  So if I have a condition in which I want to dynamically apply 1 of these 5 styles, as I do now it's by setting all 5 styles as a string in a list by using a static initializer, then I call < node > .getStyleClass () .removeAll (list), then getStyleClass () .add ("classname").  I do this to avoid adding again and still the same style and inflate the underlying list.  What is the right way to manage dynamic CSS styles?

    Finally a very simple I think.  So I know there's a little differently to implement a splash screen.  My app has certainly got bigger in the last few months of development and I noticed there are about a 5 second delay between when I run the application when I see the main stage.  I was thinking what a splash screen would be nice to fill that time.  I had no time to prototype using a Preloader and I fear that using another, early stage start-up again would be too long of a delay.  "I actually thought that using the Nice and simple JVM argument" - splash: image name > "would be simple, easy and effective.  Unfortunately when I try to do, the splash screen appears but never goes away.  Anyone know what is happening with this?

    Your mechanism to manage the css style classes is a good approach; I've used several times. I wonder why the style classes have been implemented as a list, instead of a game, but there may be cases of good use for the use of a list.

    In some cases you can also consider using CSS PsuedoClasses, which were presented in JavaFX 8. Here is a little easier to use, especially if you have two options. But a use case might look like:

    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
    
        private final ObjectProperty status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
    
        // constructor, getters, setters, and property accessors....
    }
    
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
    
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        }
        return label ;
    }
    

    And then your css looks like

    .label:warning {
        -fx-text-fill: orange ;
    }
    .label:critical {
        -fx-text-fill: red ;
    }
    

Maybe you are looking for

  • How to send mail to alias addresses

    I'm on El Capitan. I'm trying to send an email from the mac app, not icloud, using an alias, that I already have. I found how to do this in icloud. When I try to write a new message in the mac app, it opens a blank email with just an address and area

  • How to open a library in FCP 10.2.2 when he is on the external drive?

    When I try to open libraries on external drives, I get the message that "the operation could not be completed. Read-only file system. These libraries were previously available and operational when I was with an earlier version of FCP X.  They do not

  • How long windows xp with service Pack 3 continue to get help

    Windows xp with service Pack 3 will continue to get the updates and supports after the deadline next Windows xp with service Pack 2.

  • How you code multilevel subpages in the bb-hosts file?

    I'm trying to create multilevel subpages in the bb-hosts file and I am so far unsuccessful. I want to create a hierarchy like this: From the main screen of BB have a page called "SAP systems". When I select this page, do display sub-pages for the 'Pr

  • Address of the 0x10001b12 function caused a protection fault

    Nice day! I have a problem. After you have installed the driver for printer HP LaserJet CP5225, users with OS Windows7 64-bit Enterprise had an error function address 0x10001b12 caused a protection fault (exception code 0xc0000005). This error every