Finding the matrix info on a text frame?

I wanted to understand the matrix values and methods so I could make a script to select or not select textframes that are angled.
Can anyone explain this matrix stuff to me?
This script is the only example I have found so far.
if ( app.documents.length > 0 ) {
var moveMatrix = app.getIdentityMatrix( 0.5, 1.5 );
var totalMatrix = concatenateRotationMatrix( moveMatrix, 10 );
var doc = app.activeDocument.activeLayer;
for ( i = 0; i < doc.pageItems.length; i++ ) {
doc.pageItems[i].transform( totalMatrix );
Im thinking I need to use getRotationMatrix([angle])
any help would be greatly appreciated,
Duane

Awesome Carlos!
This deselects all angle text in my selection.
    Deselects all angle text from selection
function deselectAllAngleTextFromSelection() {
    var mydoc = app.activeDocument;
    var mytext = idoc.textFrames;
        for (i =0; i < mytext.length; i++) {
                var mytextFrames = mydoc.textFrames[i];
                var theMatrix = mytextFrames.matrix;
                $.writeln(theMatrix.mValueA+"\r"+theMatrix.mValueB+"\r"+theMatrix.mValueC+"\r"+theMatrix. mValueD+"\r"+theMatrix.mValueTX+"\r"+theMatrix.mValueTY);
                    if (theMatrix.mValueA !=1 || theMatrix.mValueB !=0) {
                        mytextFrames.selected = false;
deselectAllAngleTextFromSelection();
Thanks much,
Duane

Similar Messages

  • How do I find the FTP info for my site?

    I created a site with Wix.com. Since then I've been exploring Dreamweaver, and the author of "Dreamweaver for Dummies" suggets that the best way to make changes to my existing site is to use Dreamweaver's FTP capabailities to download the existing pages. But Wix doesn't support FTP -- so they tell me, and simpleurl.com (where I regeistered my domain name) and which is somehow involved in the posting of my site) can't help either. Here's the Dreamweaver page that I need to fill in.
    How do I get this information?

    Yup, it's basically free, altho you can upgrade a little, as I've done. 
    And I took
    a careful look at the "source" for the pages I've created. That code will 
    show
    nothing of what I've written -- text-wise. It's all stored on the Wix 
    servers
    and accessed with various scripts. You can re-locate your Wix-created site
    after 60 days -- not before. So the suggestion I got from the "...Dummies"
    book doesn't apply here.
    Nonetheless, I'm going to continue to learn how to use Dreamweaver. Maybe
    after my 60 days are up I'll wanna move it. Don't know.
    MurraySummers http://forums.adobe.com/people/MurraySummers created the 
    discussion
    "Re: How do I find the FTP info for my site?"
    To view the discussion, visit: 
    http://forums.adobe.com/message/5993566#5993566

  • How can I reinstall CS6 on my laptop? I cannot find the download info.

    I cannot find the download info on CS6. How can I reinstall CS6?

    Download CS6 products
    Download, install then enter your serial number.

  • Is it possible to find an xmlelement inside a specified text frame or in specified page?

    Hi All
    Is it possible to find an xmlelement inside a specified text frame or in a specified page?
    Regards,
    Chinna

    Try this (not tested...)
    app.findGrepPreferences = app.changeGrepPreferences = null;   
    app.findGrepPreferences.findWhat = "\\d+|\\w+";   
    found = app.selection[0].findGrep (false);  
    for (j = 0; j < found.length; j++)  
        if(found[j].texts[0].associatedXMLElements[0].markupTag.name == "xref")
            found[j].texts[0].associatedXMLElements[0].select();
    Vandy

  • [JS][CS3] Change the content type of a text frame

    Hi,
    a bit basic maybe but I'm stuck on this from an hour...
    I need a textFrame to become a graphic object.
    The textFrame has no content.
    How can I change the contentType on that object?
    Thanks anticipately.

    This looked like an interesting challenge, so I'm taking a shot at it. I created a new document and added three text frames (unpopulated) to the first page. I tagged them "Image", "Caption" and "credit". I then exported as a snippet, deleted the document and opened another new one. Then I placed the snippet (so far, everything has been manual -- no scripts) and indeed, the snippet placed and the frames were added to the document's structure and were properly tagged -- the three tags were automatically created by the action of placing the snippet.
    So, let's duplicate this in a script. Even though I know exactly where the snippet is, I'm going ask the user to find it. That way, I eliminate the issue of getting the path to the snippet wrong:
    var myDoc = app.documents.add();
    var myPage = myDoc.pages[0];
    var myPlacePoint = [myPage.marginPreferences.left, myPage.marginPreferences.top];
    var mySnippetFile = File.openDialog("Choose the snippet");
    if (mySnippetFile == null) { exit() }
    var mySnippet = myPage.place(mySnippetFile, myPlacePoint);
    And that worked. The snippet is on the page exactly where I wanted it. So, now we need to find the text frame that has the "image" tag. First, we must explore just what mySnippet consists of.
    OK, it's an array of three stories. That's a tad weird. Why isn't it an array of three text frames? I wonder what would happen if two of the frames in the snippet were threaded -- but let's address that later after we solve the immediate issue. The point is that we know that the snippet consists of three separate text frames that aren't threaded. So:
    for (var j = mySnippet.length - 1; j >= 0; j--) {
         var myTag = mySnippet[j].associatedXMLElement.markupTag.name;
         alert(myTag);
    And this gives me the three tags (and reminds us that when you tag a text frame you're also tagging the story that holds it. So:
    var myDoc = app.documents.add();
    var myPage = myDoc.pages[0];
    var myPlacePoint = [myPage.marginPreferences.left, myPage.marginPreferences.top];
    var mySnippetFile = File.openDialog("Choose the snippet");
    if (mySnippetFile == null) { exit() }
    var mySnippet = myPage.place(mySnippetFile, myPlacePoint);
    for (var j = mySnippet.length - 1; j >= 0; j--) {
         var myTag = mySnippet[j].associatedXMLElement.markupTag.name;
         if (myTag === "Image") {
              var myFrame = mySnippet[j].textContainers[0];
              myFrame.contentType = ContentType.graphicType;
              break;
    And that does the job.
    Thomas,
    You were very close but you forgot that the text frames that make up a story are addressed as textContainers from CS3 onwards. Your code would have worked in CS2.
    Dave

  • Cant find the codepage info in Statusbar of current Document ( UTF-8 etc ) - any Help?

    In CS6 CodeView i could see the codepage info in the Statusbar at bottom right of the current Document ( UTF-8 etc ) - Cant find it in CC2014.
    Is this a setting issue? Now i need to hit Cmd-J and some clicks to find the Info instead of just looking at the bottom right corner.
    Can someone help me?
    Best wishes, Jens
    added image

    Hello Nancy.
    Yes, there's all fine. That's the long way. The information in the status line was probably forgotten or rationalized away? That's not nice, because we need it here in almost every file (german texts). It just saves a lot of time to look in the corner instead of a menu to open. Whether it comes back well?
    Before I forget. Please excuse the jostling an thank you for your reply.

  • How to enable the script label of a text frames in indesign using applescript

    hi all,
    am using Indesign CS2 with applescript..
    Using script I have to open a template in indesign and flow the word document into it...
    I can able to flow the word document into the template using "Place" command..but script labels of the text frames gets disabled...
    I need the script labels to be enabled...
    can anybody help me
    thanks in advance

    Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • How to create, place, format and paste the clipboard contents into a text frame

    I am new to scripting and need help. I have an existing Indesign document. I need to be able to create a text frame on my current page, the width of my margins with the top of the text frame at the top margin and 1" in height, then format it to be 1-column, and then paste the clipboard contents into it and tag the text with a particular paragraph style. I am using Indesign CS4 on a mac, if that makes any difference. Thanks for any help.

    May this will help you. It will create an anchored object with a text what you desired, with object style. You should create an object style before with the x and y co ordinates. You can choose either para style or character style.
    var the_document = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
    // Create a list of character styles
    var list_of_character_styles = the_document.characterStyles.everyItem().name;
    // Create a list of object styles
    var list_of_object_styles = the_document.objectStyles.everyItem().name;
    // Make dialog box for selecting the styles
    var the_dialog = app.dialogs.add({name:"Create anchored text frames"});
    with(the_dialog.dialogColumns.add()){
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Make the anchored frames from ..."});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"This character style:"});
    var find_cstyle = dropdowns.add({stringList:list_of_character_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Or this paragraph style:"});
    var find_pstyle = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Leave one dropdown unchanged!"});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Delete matches?"});
    var delete_refs = dropdowns.add({stringList:["Yes","No"], selectedIndex:0});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Anchored text frame settings:"});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Object style:"});
    var anchor_style = dropdowns.add({stringList:list_of_object_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame width:"});
    var anchor_width = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame height:"});
    var anchor_height = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    the_dialog.show();
    // Define the selected styles
    var real_find_cstyle = the_document.characterStyles.item(find_cstyle.selectedIndex);
    var real_find_pstyle = the_document.paragraphStyles.item(find_pstyle.selectedIndex);
    var real_anchor_style = the_document.objectStyles.item(anchor_style.selectedIndex);
    // Check if a style is selected
    if(find_cstyle.selectedIndex != 0 || find_pstyle.selectedIndex != 0) {
    // Define whether to search for character styles or paragraph styles
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    if(find_cstyle.selectedIndex != 0) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedCharacterStyle = real_find_cstyle;
    } else {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = real_find_pstyle;
    app.findGrepPreferences.findWhat = "^";
    // Search the document
    var found_items = the_document.findGrep();
    myCounter = found_items.length-1;
    do {
    // Select and copy the found text
    var current_item = found_items[myCounter];
    if(find_pstyle.selectedIndex != 0) {
    var found_text = current_item.paragraphs.firstItem();
    var insertion_character = (found_text.characters.lastItem().index) + 1;
    var check_insertion_character = insertion_character + 1;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    } else {
    var found_text = current_item;
    var insertion_character = (found_text.characters.lastItem().index) + 2;
    var check_insertion_character = insertion_character;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    // Make text frame from selection
    try {
    app.selection = the_story.insertionPoints[check_insertion_character];
    app.selection = the_story.insertionPoints[insertion_character];
    } catch(err) {
    app.selection = the_story.insertionPoints[alt_insertion_character];
    var the_anchored_frame = app.selection[0].textFrames.add({geometricBounds:["0","0",anchor_height.editContents,anch or_width.editContents],anchoredObjectSettings:{anchoredPosition: AnchorPosition.ANCHORED}});
    app.selection = the_anchored_frame.insertionPoints[0];
    app.paste();
    // Apply the object style now to "force apply" paragraph style set in the object style
    if(anchor_style.selectedIndex != 0) {
    the_anchored_frame.appliedObjectStyle = real_anchor_style;
    myCounter--;
    } while (myCounter >= 0);
    } else {
    alert("No styles selected!");

  • Forms 10.1.2.0.2 compatibility with RDBMS 11g: I can't find the matrix

    Hello,
    I browsed through most sections in metalink support certification tab, but still I can't find the certification matrix for Oracle developer Suite and enterprise database.
    Any idea where it is located?
    Thx Pierre

    Hello,
    <p>Maybe there</p>
    Francois

  • About this Mac does not have a storage tab on my MacBook Pro  How do I find the storage info

    I am looking to find how much storage capacity I have left on my MacBook Pro....  I have read clicking on About my Mac and going to additional Info, but the window showing the info does not display a tab to view Storage.....should it and how do I restore it

    Select the drive's Desktop icon. Press COMMAND-I to open the Get Info window. The information is displayed in the topmost panel as: Capacity, Available, and Used.

  • Where can I find the Billing Doc. Header Text SO10 text name?

    I have to write some logic in the billing document header text “country of origin”.
    VF02-- GOTO-- HEADER---HEADER TEXT----- COUNTRY OF ORIGIN.
    When a billing document is created it automatically creating the header text with the following details:
    Name :                       Billing doc number
    Language : EN
    Text ID:        ZD17
    Text object : VBBK.
    I need to find the SO10 text name from which the above dynamic text is generating, so that I can change the code in the original text..
    I searched in the SCN and found the Tcode VOTXN.
    I went to this tcode and selected the Billing Doc. Header Radio button.
    And I found the Access sequence number corresponding ID(ZD17-country of origin)
    When I gone through the sequence number I found one SO10 text name, but that is not the right SO10 name because the contents are totally deferrent.
    is there any way to find the SO10 text name, or did I went to any wrong path...
    please help me..
    Regards,
    Ramesh

    Double on the right hand side and Click on Goto-> Header for the Name and object details.

  • How to find the session info using the Unix PID

    Hi Guys
    We found in alert log that Some process with Unix pid 3416182 makes some transaction fail. It happened on weekend and now when we try to find it in v$process we did not find any info. Is there any place where oracle stores the PID History where in i would be able to find which process,session,user caused the transaction failure.
    Kindly help me. I m using oracle 10G R2.
    Thanks in advance
    Ram
    Edited by: user448837 on Jun 29, 2009 2:04 AM

    We found the transaction failure because of an online rebuild.This rebuild is with a PID which none of the DBA's ran.From trace we can just see the unix PID.With this we need to find the user who ran this rebuild

  • TS1389 Cant get it to work, and i cant find the SC Info folder it aint there when i search

    I tried this help page, but i cant din the SC Info folder when i seach after it. and it only 1 of the 2 songs i just pushed from Itunes that keep asking me to authorize my computer, every time after i do it it just skip to the next song and i can start over again.
    Anybody that can help me?

    Your a bit on the wrong track. Your song is corrupted is the problem. Delete your corrupted song, then redownload it here:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
              http://support.apple.com/kb/HT2519

  • In the new Keynote how does one find the Wrap Inspector to wrap text around a photo??? Thanks

    In the new keynote, the help section refers to the Wrap Inspector.  How does one find that or how does one wrap text around a photo??   Thanks

    You can also use the shape tool to draw a shape roughly following the outline of the graphic you want to wrap text around, change the fill and stroke to "none", then paste your text within the shape. It's a few more steps, but it opens you up to many creative alternative layouts.

  • Finding the exact left edge of text

    Hi. I am trying to get a rectangle to surround my SimpleText by making the rectangles height and width the same as the text height and width. It does a pretty good job if the first letter is "W" or a similar wide letter, but if the first letter is "h" or "I" etc., the border of the rectangle has a gap between the left edge of the text and the side of the rectangle. This is very pronounced when thte font gets bigger. I am guessing each character takes up a the same area of space which is why there is a gap between the edge of the letter and the rectangle. Is there a way to find exactly where the left edge of the text is? Have a look at the attachement to see what I am on about.

    The problem with that is that I am using SimpleText not a UITextField.
    I can't just play with the rectangle because the user can change the text and the rectangle has to be flush with the edge of whatever the leftmost character is.

Maybe you are looking for

  • Mail Spell Check started underlining all words as incorrect

    Hi Folks. This is my first post/question. I have searched for the answer on these forums and elsewhere but can't locate any suggestions. Forgive me if I have overlooked anything useful already posted. My question relates to Spell Check in Mail. For s

  • Problems with outlook - losing identity very often

    Hi. I am using a Mac Book Pro, with OS X 10.8.5. I am a long time user of Outlook, but it keeps losing its identity very often, and I always have to go through the process of reinstalling it. any idea how to prevent this, besides the obvious of givin

  • Locked Frequency on Promise SATA/PATA Controller on K8T Neo FIS2R?

    We all know that there is no PCI lock on any K8T800.  However, this link to an Athlon 64 info page on Mushkin's website declares that the Promise contoller on the Asus K8V board has a "locked" frequency.  You'll have to scroll down to the heading "Th

  • Shopping cart offline approval with outlook

    Dear Experts, Currenlt we are working on SRM 5.0 classic scenario and ECC 6.0. I want to implement shopping cart offline approval with outlook. Can you please guide me what all are the settings need to be done for offline approvals.... Thanks Ravi

  • How do I uninstall tomcat

    Hi Folks, I recently installed tomcat version 6 on my Windows XP laptop in order to test some Java servlets. Windows XP is fully up to date with all service updates and security updates. I believe that I followed all the installation instructions cor