Get the VB Script CS3 TextFrame shape

When I use the command on a TextFrame TypeName she returns the textframe, how do you get the value of the shape (rectangle, oval) a textframe?

Thank you

Archie

Dave here is the Code in VB.

Set myInDesign = CreateObject ("InDesign.Application.CS3")
If myInDesign.Documents.Count > 0 Then
If myInDesign.Selection.Count > 0 Then
If TypeName (myIndesign.selection (1)) = 'TextFrame"then
determineShape (myIndesign.selection (1))
On the other
MsgBox ("Please select a block of text")
End If
On the other
MsgBox ("nothing is selected. Please select an object and try again. »)
End If
On the other
MsgBox ("Please open a document, select an object and try again.")
End If
Void determineShape (tf)
entirePath = tf. Paths (1) .entirePath
MyRect = tf.parent.rectangles.add set
myRect.paths (1) .entirePath = entirePath
MsgBox (TypeName (myRect))
myRect.Delete
End Sub

Tags: InDesign

Similar Questions

  • In Windows Mail, I get the following script error: unexpected call to method or property access - URL: res://ieframe.dll/preview.js

    Original title: HELP

    {Moderator note: version of Windows has not been confirmed}

    In microsoft mail I get the following script error and cannot print emails, then the error lock the computer.

    Script error

    An error has occurred in the script on this page

    Line 215

    1 tank

    Unexpected call to method or property access

    Code 0

    URL: res://ieframe.dll/preview.js

    Do you want to continue running scripts on this page

    Yes No

    I can print other documents.

    Please help I need to be able to print my emails.

    Thank you

    Windows Mail uses the Internet Explorer print engine to print.  You can print from Internet Explorer?  It is possible that your antivirus software might be the cause.  You can try to turn off and then restart and see if it will print.  Otherwise, you will need to provide more detailed information depending on your version of Windows, what e-mail program, you are using and what version of Internet Explorer you are using.

    Steve

  • How to get the fill color of a shape or solid color fill layers?

    Hi all

    I'm trying to get the values of the fill color of a shape or solid color fill layers.

    I get the nature of the layer active i.e. SOLIDFILL, but there is no color as a property to get the color of the shape or solid color fill layers.

    Y there is it possible or a script to do this?

    Please help me on this.

    Thank you
    AI

    I didn't bother to check the type of the active layer, but if a solid color layer is selected it should help.

    // based on code by michael l hale;
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var layerDesc = executeActionGet(ref);
    var adjList = layerDesc.getList(stringIDToTypeID('adjustment'));
    var theColors = adjList.getObjectValue(0).getObjectValue(stringIDToTypeID('color'));
    var str = '';
    for(var i=0;i		   
  • I have trouble getting the PHP script to send form data to an email.

    I have a very basic contact form that I used before, and I pointed to a standard SendResults.php file. I downloaded them both on the server for the test, but I don't get the emails of the form. Can someone help me with this?

    Here is the code for the form:

    Contact < h1 > < / h1 >

    < p > < img src = "images/contact - hands.jpg ' alt = 'hands' width ="401"height ="299"class ="left-photo-sur"align ="left"/ > < / p >

    < class p = 'fax' > < / p >

    < class p = 'fax' > < / p >

    < class p 'fax' = > please call or use the form below to send your contact information and I will answer you as soon as possible. < /p >

    < class p = 'phone number' > 541 954 2602 < /p >

    < class p = "center" > Ronit Cohen < /p >

    < p > < / p >

    < p > < / p >

    < h3 class = "center" > use the form below to send a message and I will contact you quickly. < / h3 >

    < table width = "600" border = "1" align = "center" cellpadding = "22" cellspacing = "0" >

    < b >

    < td bgcolor = "#F0F0F0" > < form action = "sendresults.php" method = "post" name = "Contact form" id = "Contact form" > "

    < P > name < span class = "red" > * </span >

    < input name = "name" type = "text" id = 'name' size = "70" / >

    < /p >

    < P > E-mail address < span class = "red" > * </span >

    < input name = "email" type = "text" id = "email" size = "65" / >

    < /p >

    < p > telephone number

    < name input = 'phone' type = 'text' id = 'phone' size = "40" / >

    < /p >

    < p >

    < label > Message < br / >

    < name textarea = 'message' id = cols "message" = "70".

    "rows ="5"> < / textarea >"

    < / label >

    < /p >

    < class p = "center" >

    < input name = "submit" type = "submit" id = "submit" onclick = "MM_openBrWindow ('thankyou.html'", 'width = 500 height = 400'); " MM_validateForm ('name', ", 'R',"email', ", 'RisEmail', 'phone'", 'NisNum'); return document. MM_returnValue"value ="Send the Message"/ >

    < input type = "reset" name = 'Cancel' id = 'Cancel' value = 'Cancel' / >

    < /p >

    < / form > < table >

    < /tr >

    < /table >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    <!-InstanceEndEditable--> < table >

    < /tr >

    < /table >

    And here is the code for the sendresults.php file:

    <? PHP
    -Put these settings-

    Subject of the email sent to you.
    $subject = "Sent 'A Home to Fit You' Contact form info;"

    Your email address. This is where the information on the form will be sent.
    $emailadd = ' [email protected] ';

    Where redirect after form is processed.
    $url = ' http://www.tributewebdesign.com/home-to-fit/contact.html';

    Makes all the required fields. If the value of '1' no field cannot be empty. If the '0' value any or all fields can be empty.
    $req = '0';

    -Do not edit below this line-
    $text = "comes from the shape: \n\n";
    $space = ' ';
    $line = '
    ';
    foreach ($_POST as $key = > $value)
    {
    If ($req is '1')
    {
    If ($value == ")
    {echo "$key is empty"; die ;}
    }
    $j = strlen ($key);
    If ($j > = 20)
    {echo "Of the form $key name cannot be longer than 20 characters"; die ;}}
    $j = 20 - $j;
    for ($i = 1; $i < = $j; $i ++)
    {$space. = ' ' ;}}
    $value = str_replace ('\n', "$line", $value);
    $conc = "{$key}: $space {$value} $line";
    $text = $conc;
    $space = ' ';
    }
    mail ($emailadd, $subject, $text, ' from: '. $emailadd. ");
    echo "< META HTTP-EQUIV = CONTENT refresh ="0; " URL ='. $url. " » >';
    ? >

    I'd appreciate any help anyone has to offer.

    Jennifer

    No not a yahoo and google make it much harder to send mail unless it comes from an active server

    I had problems in her SCI with gmail, hotmail, ATT and others, even if you use SMTP.

    Jennifer, you might check if your server ip is on a blacklist.

    http://MXToolbox.com/blacklists.aspx

  • I have a nexus 7 Tablet 32 GB. I installed firefox for android. I have connected to my internet page to check your e-mail. I get the error script not responing

    If I get this error when I try to sign in to check my email. It says continue or stop the script. I tried them both. I can never get my email. Is there a solution to this problem

    Try again with the beta version of Firefox

  • Get the Internet script error when Internet Explorer is closed

    get internet script error, even when internet Explorer is closed. its Web site also comes in my speakers when no one is around the computer? Everyone please help my os is xp home edition

    First thing I would do is to restart the system and download MSE and install if you don't the have not already installed. Update and run. Download of Malware bytes and install and run this update from.

    Then, you can run chkdsk from the command prompt. Type chkdsk /f at the prompt and press on enter then type y to run check disk on the next reboot. Exit command prompt and restart the system to allow running chkdsk.

    Let us know if that fixes it or what the results were.

    Hope this helps,

    JB

  • How to get the statistics script runs in CS6

    The script of statistics does not show to the CS6. It is on the hard drive; However, when I double click on it, I get error 54: statistics of the feature is not available on this version of PhotoShop.  Is it possible that I can get this feature or operate?

    I have Photoshop CS6 Standard and Photoshop CS6 extended.

    The Script of statistics available in Photoshop CS6 Extended.

    Extended, it's under the menu file > Scripts > statistics... which shows the statistics of images dialog box.

    There is no this menu item in the standard, which could explain the error if you try to click on the script itself.

    Gene

  • get the table script using dbms_metadata.get_ddl but with clob field

    Thus, Oracle 11g R2...
    I use dbms_metadata.get_ddl for table scripts and it works fine...

    now, I have a table with clob field, and it does not work... I got an error "missing a closing parenthesis (ora-0907) '...
    I could paste a script I had, but I don't think that it makes no sense...

    does anyone have an experience on the use of this package on clob tables?


    TNX

    See this code.

    DECLARE
      myddl clob;
      PROCEDURE print_clob(p_clob in clob) as
        l_offset number default 1;
      BEGIN
        loop
          exit when l_offset > dbms_lob.getlength(p_clob);
          dbms_output.put_line(dbms_lob.substr(p_clob, 255, l_offset));
          l_offset := l_offset + 255;
        end loop;
      END print_clob;
      FUNCTION get_metadata return clob is
        h   number;
        th  number;
        doc clob;
      BEGIN
        h := dbms_metadata.open('TABLE');
        dbms_metadata.set_filter(h, 'SCHEMA', 'HR');
        dbms_metadata.set_filter(h, 'NAME', 'EMPLOYEES');
        th := dbms_metadata.add_transform(h, 'MODIFY');
        th := dbms_metadata.add_transform(h, 'DDL');
        --dbms_metadata.set_transform_param(th,'SEGMENT_ATTRIBUTES',false);
        doc := dbms_metadata.fetch_clob(h);
        dbms_metadata.CLOSE(h);
        return doc;
      END get_metadata;
    BEGIN
      myddl := get_metadata;
      print_clob(myddl);
    END;
    

    This procedure of print_ddl I took of the documentation.
    Use of the long VALUE. See, in the first example out put is truncated.

    SQL> SELECT dbms_metadata.get_ddl('TABLE','EMP','SCOTT') FROM dual;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
    
    SQL> set long 10000
    SQL> /
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    
    SQL> SET LINESIZE 132
    SQL> SET pagesize 0
    SQL> SET LONG 1000000
    SQL> /
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    
    SQL>
    
  • cannot get the hidden script to work

    Well I searched and searched even more and I'm starting to wonder if my program of liveCycle is perhaps faulty for some reason any. I looked over the script for liveCycle guide and see that the script in order to hide an object goes like this

    myTextField.Presence = 'hidden ';

    I am trying to use the script in a radio button (Yes and no) to hide the text box if none is selected in the subform that contains the question. but for some reason, I can't script hidden to work. I want the legend to become hidden as well. But when I use 'invisible' instead of 'hidden' text entry box is not selectable for the user to input when you test the form in acrobat. I go about it the wrong way? Or just 'hidden' command does not work in my copy of liveCycle. Thanks for any help

    Hello

    I'm guessing that this is not your version of LC designer - there are a few settings, you will have to do. Here is a sample.

    Have a look at the script in the click event of the radio button group.

    Also have a look at the file / form properties / Defaults: you should have to register script changes set to automatic:

    Finally, to make objects appear and disappear is a dynamic function and means that you will have to save your forms in a dynamic form of XML:

    Hope that helps,

    Niall

  • Why do I get errors in script on facebook?

    I get the error script on facebook.  I ran the SmartPCFixer and it always comes back constantly every time as I try to type on facebook.

    Hello, Ronnie,.

    Thank you for giving us the opportunity to help you.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. Are you this script error when you use Internet Explorer or other browser too?
    2. What version of IE are you using?
    3. You have security software installed?

    In most cases, you can ignore them. Script error messages are displayed by Internet Explorer when there is a problem with the JavaScript or VBScript code on the Web site you are looking at. Sometimes a script error can be caused by an error during the download of a Web page, but more often it is an error in the Web page itself.

    If you use Internet Explorer and get the error in script, then you can try the steps below and see if it helps you to solve the problem.

    Method 1:

    Delete browsing history

    (a) start Internet Explorer.

    (b) on the Tools menu, click Internet Options. If you don't see the Tools menu, press Alt to display the menu.

    (c) click the general tab.

    (d) in the browsing history, click delete.

    (e) in the dialog box delete browsing history , click to select the check boxes and then click delete:

    Temporary Internet files

    Cookies

    History

    (f) click closeand then click OK to close the Internet Options dialog box.

    Note: After deleting the browser history recorded all of your passwords and any other information disappears from history.

    Method 2:

    Verify that Active Scripting, ActiveX, and Java are not blocked by Internet Explorer

    (a) start Internet Explorer.

    (b) on the Tools menu, click Internet Options. If you don't see the Tools menu, press Alt to display the menu.

    (c) in the Internet Options dialog box, click the Security tab.

    (d) click on default.

    (e) click OK.

    Note ActiveX controls and Java programs are disabled in the high security level in Internet Explorer.

    Method 3:

    Disable the Script Debugger

    (a) on the Tools menu, click Internet Options. If you don't see the Tools menu, press Alt to display the menu.

    (b) on the Advanced tab, click to uncheck display a notification of every script error , and then click OK.

    Additional information:

    You can see the article mentioned below for further troubleshooting and clarification.

    What should you do about Internet Explorer script errors?

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • How the photoshop script can call an applescript script

    I realize, maybe it's a bit of a messy way around it, but I need to get the photoshop script to call an applescript script. Basically so that I can have it become a menu item in photoshop.

    Is - this show applescript can in the same way photoshop script?

    If this isn't the case, I thought I could get either photoshop script to call the applescript or even more messy, I could use Photoshop to run a Terminal command to call the applescript.

    All thoughts

    Matt

    For those who come through it

    Save your applescript as an application, and then you can use

    App.System ("' open ' / path/to/script_as_an_app.app'" ");

    then everything works

  • Get the script to detect the selected image (AS CS3)

    After years of old Quark of script, I do my first, wobbling steps in InDesign. From something simple, I try to get an applescript script to detect a selected picture anywhere in a document. Following the examples, I already spoke with a frame when I know what page it's on. What interests me is the ability to get a script to work without cable references 'Page 1' etc. I hope that I have not forgotten something in the examples!

    The approximate equivalent of "current zone" is "article 1 of the selection", although often you can just address 'selection' as if it were a reference to a single element, even if it always returns a list.

    --

    Shane Stanley [email protected]>

    AppleScript Pro Sessions http://scriptingmatters.com/aspro>

  • updated 7.3 to 10.0.1 on iPhone iOS 5 in the messages, I can't put the phone in a horizontal position in order to enlarge the keyboard more. a field opens with the font script styles and I can't get off my screen, to get at the larger keyboard.

    I just upgraded my iPhone iOS 5 7.3 iOS 10.0, now when I use my e-mail, I can place my phone horizontally to get the larger keyboard is no longer and use my thumbs (many more fast typing). Now, I get a "field" with scripted, for styles to close since fonts. There is an icon of a 'keyboard' if I type nothing happens. Clues? your help will be greatly appreciated.

    Bill

    Pressing this icon small keyboard should work (done on my iPhone 7). Until someone answers with more information, another thing you could try is to open the keyboard when the phone is vertical and then put it too horizontal.

  • I get the same message: a script on this page may be busy, or it may have stopped responding

    Since a couple of days I get the same error message: "a script on this page may be busy, or it may have stopped responding." You can stop the script now, open the script in the debugger, or let the script continue. »

    I'm not a COMPUTER expert, however, I have read similar online messages and tried many steps such as:
    --deleting history navigation and cookies
    -Mozilla resetting to the factory settings
    -Uninstall and reinstall Mozilla

    Unfortunately, the problem is always the same. What can I do? I work from home and need internet to work 100%.

    Moreover, the navigation works fine in other browsers, but not Mozilla.

    Thank you

    This script is the culprit in the following message?

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.

    Script: resource://gre/modules/addons/XPIProvider.jsm-> jar:file:///C:/Program%20Files/Mozilla%20Firefox/browser/extensions/%7B82AF8DCA-6DE9-405D-BD5E-43525BDAD38A%7D.xpi!/bootstrap.js-> resource://gre/modules/commonjs/toolkit/loader.js-> resource://gre/modules/commonjs/sdk/loader/sandbox.js-> resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/jquery-2.1.0.min.js:28

  • I'm doing a script that takes a list of e-mail from a text file and then allow me to select a save as a string. I found some ways to get the path of the file, but I'm in check by pulling the list

    I found some ways to get the path of the file, but I am defeated by pulling the list from that. the function of the path get gives me the path as "Macintosh Users:: Documents: extractedb.txt (myUsername).

    What I can't understand is how to get a dialog box to display a list that represents the content in the text file, I need to change the contents of the text file, I need the box to show me what I chose and I want to save my selection as a single string.
    e '.

    example of extractedb.txt information:

    [email protected]

    [email protected]

    [email protected]

    * has a random number of emails as well *.

    I want this is to pull those emails from the text file and turn them into a list so I can get to be a selection in my dialog box.

    Any help would be great = D

    Assuming you have a text file with your example e-mail addresses, the following AppleScript will read this file in a list (mf_List) and then use this list as input to choose among the list. Because multiple selection is allowed (control button), the output is sent to a list (sel_addr). We check if the Cancel button was pressed by testing for false and if this condition is met, we the script error.  Based on a single or multiple list item content of the list, display accordingly.

    game of mf to ((path to the folder as text) & "mail_list.txt")

    the value mf_List to {}

    the value sel_addr to {}

    the value mf_List to paragraphs of (read file mf)

    the value sel_addr to (choose from the list mf_List with title ¬

    ('Mail list' with multiple selections allowed without empty selection allowed)

    If sel_addr is equal to false then

    Error number-128

    return

    end if

    If length of sel_addr is equal to 1 then

    sel_addr display dialog box as text

    on the other

    the value Point to the text of TID to AppleScript delimiters

    the value Point text in AppleScript return delimiters

    display the dialog box elements of sel_addr in the text

    the value Text of point AppleScript delimiters to TID

    end if

    return

Maybe you are looking for