Change ruler guides into lines?

Ask a Question related to Adobe Indesign Macintosh, Design and Development.

  1. #1

    Default Re: Change ruler guides into lines?

    Thanx Rob, tried to implement your script, got the following error message:

    JavaScript Error!
    Error Number 25
    Error String: Expected: :
    Line: 1
    Source: tell application %Design CS” activate set
    myOoc to active document tell myDoc set zero point
    to [Of 01 set myviewpreferences to view preferences
    set ruler origin of rnyViewPreferences to page origin
    set myBlack to swatch “8lack”of myDoc set
    myOocPrefs to document preferences set myPageH to
    page height of rnyDocPrefs set myPageW to page
    width of rnyOocPrefs set myCuidePrefs toguide
    preferences set mySel to selection if my5el is fl then
    displaydialog “lease select aguide and try again”
    else set myCuide to object reference of selection if
    class of myCuide is guide then set myOientatton to
    orientation of mfiuide set myLoc to location of
    myCuide set mypage to parent of myCuide set
    myPageNo to name of myPage if mgientation is
    horizontal then make graphic line in page rnyPageNo
    with properties{geometric bounds:{my^oc, 0, myLoc,
    myPageWl, stroke weight0.5, stroke color:myElacki
    else make graphic line in page myPageNo with
    properties ]geometric bounds:{O, myLoc, myPageH,
    myLocJ, stroke weight:O.S, stroke color:rnyBlack} end
    if else display dialog ^Please select aguide and try
    again” end if end if end tell end tell
    Offending Text: application

    Sorry, just took a screen shot and OCRed it.

    Not good at doing scripts myself. Perhaps you can help with a compiled version to my email address. You find that with my name. Thanx.

    All the folk who are curious as to why I would want this feature right now.

    I am doing design guides for a whole range of credit cards. Really anal stuff. Back and front sit lined up on a page. Ruler guides very handy to precisely snap things to, but not all vertical guides are required on back AND front.

    So after setting it all up, it would be great to be able to say: Convert ruler guides into lines, cut them and delete what not needed. Just seems easier and more precise than redrawing all ruler guides. This version would then be used for presentation purposes.

    Make sense?

    Gerd
    Gerd_Kalesse@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Change color of lines
      When you state the line tool - do you mean via the comment and markup toolbar? If so then hit apple-E and you can access the properties and change...
    2. page ruler settings don't change
      Another question today.... If I (windows FH11) change at the page ruler settings for instance: 1 inch equals 5 inch, then the rulers don't ...
    3. Guides - Placing multiple Guides at exact locations
      I want to be able to add guides to my artboard in exact locations via a numeric value say 1.56 inches. Am i able to do this? And how? Im prety...
    4. Can I change the color of the guides?
      I'm working in Illustrator 10, and editing a large-format graphic that needs to bleed over the edges. Problem is, I can't see the edges! The guides...
    5. Change Ruler Position
      Hi, Is there a way to change where '0' begins on the rulers at the top and left of the document? At the moment it's set to start at -20cm at the...
  3. #2

    Default Re: Change ruler guides into lines?

    while we are on the subject, is there any way to do the reverse, ie, turn a line into a guide. I seem to remember you could do this in freehand. Quite handy if you have a circle with a stroke and want objects to snap to it.

    Tom
    Tom_L@adobeforums.com Guest

  4. #3

    Default Re: Change ruler guides into lines?

    It's an Apple not Java script, so it needs to be compiled in script editor. Here's the compiled version—it's for CS1 but should also work with CS2.

    <http://www.evansday.com/scripts/GuidestoRules.hqx>

    I also included a version that will repeat through all the guides in the doc.
    rob_day@adobeforums.com Guest

  5. #4

    Default Re: Change ruler guides into lines?

    Works like a charm Rob!

    Thanx a ton! B-)

    Gerd
    Gerd_Kalesse@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139