Add cropmarks defined by page format selected object

Hello

I edited down the Adobe script example "CropMarks.

I want this to work according to the size of the current document and not a selected object.

Unfortunately, everything that I've tried so far only does not work? Any help would be great.

Thank you

// CROP MARKS 5 offset 5 in length .1 stroke
var myDocument = app.activeDocument;
var myLayer = myDocument.layers.add({name:"myCropMarks"});
var myRegistrationColor = myDocument.colors.item("Registration");
var myNoneSwatch = myDocument.swatches.item("None");
var myCropMarkWidth = .1;

myBounds = myDocument.selection[0].visibleBounds;
for(var myCounter = 0; myCounter < myDocument.selection.length; myCounter ++){
myObject = myDocument.selection[myCounter];
myBounds = myObject.visibleBounds;
var myX1 = myBounds[1];
var myY1 = myBounds[0];
var myX2 = myBounds[3];
var myY2 = myBounds[2];
myDrawCropMarks (myBounds[1], myBounds[0], myBounds[3], myBounds[2], myCropMarkWidth, myRegistrationColor, myNoneSwatch, myLayer);
}

function myDrawCropMarks (myX1, myY1, myX2, myY2, myCropMarkWidth, myRegistrationColor, myNoneSwatch, myLayer)

Hello

I received this sort myself.

Thank you!

Tags: InDesign

Similar Questions

  • Hi I need to hide a pdf file hosted on a site of glasses, I would normally add &lt; name meta = "robots" content = "nofollow" / &gt; tag meta on a html page, can I add this to the pdf format? I can't seem to find where to add this code, or is there a bett

    Hi I need to hide a pdf file hosted on a site of glasses, I would normally add

    tag Meta on a html page, can I add this to the pdf format? I can't seem to find where to add this code, or is there a better way?

    You cannot add these metadata in PDF format. You can use the robots.txt file.

  • How to add fractions to a Pages document?

    How to add fractions to a Pages document?

    At the bottom of the menu editing in Pages is emoticons and symbols. This is the palette of characters. If there is no category of figures in the collection categories at left, then click on the gear icon in the toolbar, select Customize list... Check the numbers - All and click done.

    Click on the digit - all categories, and scroll way down characters panel until you encounter the vulgar fractions. A double click on any one of them will be insert in your Pages document at the insertion point or current. For fractions not on this list, type your numerator, and then double-click the separate slash ' / ' to insert it. Then type your denominator, followed by a space. Select the numerator and select Format: font: Baseline: exposing. Choose the denominator and this time, choose index. Click behind this space on the right and from the same sequence of menu, select default. You can now select the vulgar fraction and change its font attributes.

    You can use Grapher (Launchpad: others: Grapher). Choose the default graphical value 2D on the launch. You will see an equation has begun to y =. Backspace over it, and then type 1/2. This will generate a fraction (stacked) case. Right-click on this fraction and select copy as: PDF (or your image type).

    You can also check system preferences: keyboard Panel: text and some fractions are there by default. You can make new ones by applying the techniques of paragraph second in the field with. For replacement in Pages, you will need Edit menu: Substitutions: replace selected item text menu.

    And finally, there is the trial of MathType coming back to MathType Lite after 30 days. You must launch MathType and then Pages, in that order. These are the people who wrote the original Equation Editor for MS Office well that MathType is well beyond the version of Microsoft in the current capability.

  • How can I add an image to pdf format?

    In forums he is told to go into tools > content edition > add images. I don't have this option under content

    Hi itisamee,

    Gilad is a good question. The option you describe is available in Acrobat XI. In Acrobat X, you can place an image by selecting tools > content > modify object and right click on the page. Select Image of Place in the context menu, and then select the image that you want to add the PDF file.

    Best,

    Sara

  • Dreamweaver beginner 2015 CC [how you define the page of the document with the same dimensions?]

    Maybe this is a stupid question.  How do you define the page of the document to exactly what you design.  I need to create an ad by e-mail to the 800px 650px.

    There are no stupid questions, answers all simply stupid. I hope that this will not be one of these responses.

    The short answer is that you don't set limits to a document, such as e-mails, Web sites or other. An email to read on an iPhone will have completely different dimensions for a reading on a computer screen. Mesaages read in Outlook will behave different to those read in a text format.

    Unless you know your audience and the device they are using, you must keep the liquid paper. For more information, see here http://webdesign.tutsplus.com/articles/creating-a-simple-responsive-html-email--webdesign-12978

  • CC of Muse (2015) cannot select objects / locked

    Hi guys,.

    I have a serious problem with the cc of muse (2015).

    After you install the updated muse that I started to draw the new site for a client and everything went smooth until the next day. I open my file to muse overnight, but I wasn't able to select anything. It is very strange, because I am able to create new objects and work with them, but all the objects I created the day before are "locked" and I can't do anything with it.  Does anyone has the same problems? All solutions?

    P.S. I used adobe animate .oam files in this project.

    Please help, because I can't finish my project for almost a week and my customer is not satisfied with these delays, I ran an apology and seems like adobe does nothing to solve this problem.

    musebug.jpg

    I bet these "locked" objects are placed on a master page and you try to select objects on a layout page. This is not possible, as you know.

  • The term 'Select-Object-property' is not recognized as a cmdlet, function, script file or executable program. Check the spelling of the name, or if a path has been included, make sure the path is correct, and then try again.

    I have a fairly new version of PowerCLI (5,5 Rel 1) 5.5 being ESXi and vCenter.

    I also checked that automation. Core is installed:

    PowerCLI C:\Windows\system32 > Get-PSSnapin VMware.VimAutomation.Core

    Name: VMware.VimAutomation.Core

    PSVersion: 2.0

    Description: This Windows PowerShell snap-in contains the Windows PowerShell cmdlet

    TS of vSphere management.

    but after connecting to vCenter, I get error trying to run:

    PowerCLI C:\Windows\system32 > $Results = ForEach ($DRSRule to $DRSRules)

    > > {}

    > > «|» Select-Object-Property @{N = 'Cluster'; E = {(Id-vue-Get $DRSRule.Clust)}

    amplifier. {{ID). name}}.

    > > @{N = "Name"; {E = {$DRSRule.Name}}.

    > > @{N = "enabled"; {E = {$DRSRule.Enabled}}.

    > > @{N = 'Type of DRS'; {E = {$DRSRule.KeepTogether}}.

    > > @{N = "MV"; E = {$VMIds = $DRSRule.VMIds - split ","}

    > > $VMs = ForEach ($VMId to $VMIds)

    > > {}

    > > (Get-View-Id $VMId). Name

    {> >}

    {{> > $VMs - join ","}}

    {> >}

    > >

    The term 'Select-Object-property' is not recognized as a cmdlet, fu

    function, script file or executable program. Check the spelling of the name, or if

    a path was included, make sure the path is correct and try again.

    On line: 3 char: 32

    +     "" | Select-Object-Property < < < < @{N = 'Cluster'; E = {(Get-view-Id $DRSRule

    . {{Cluster.Id). name}}.

    + CategoryInfo: ObjectNotFound: (Select-Object-property string :)

    [], CommandNotFoundException

    + FullyQualifiedErrorId: CommandNotFoundException

    PowerCLI C:\Windows\system32 > Add-PSSnapin VMware.VimAutomation.Core

    Is ' Select-Object-Property not installed?  If not, where I get it, please?

    see you soon

    KC

    Note, I received this Dean here code: PowerCLI: extraction rules DRS; Deans blog

    There should be a space between the - Property parameter and Select-Object

  • How to add to a specific page in one document to another

    How to add to a specific page in another document

    When you add a bookmark, it takes by default the current page and the view (zoom, scrolling). If you want to link to a location in another document, after you have created the bookmark, select it, right-click, then select Properties, then select the Actions tab remove the default action and add a new type of "Go to a page view". When you are prompted with the dialog box "Create go to View", open the other document and go to page set the view (zoom, scrolling) you want and then click on the Set"" button. When you distribute the files, make sure that they retain the same folder structure. This is done much easier if all PDF files are in the same folder.

  • How can I view the text with format and &lt; object &gt;... &lt; embed &gt; video?

    Hi, OTN.
    I can't find a suitable component to show a ViewObject CLOB with video (streaming flash videoplayer) HTML format and < object > < embed > tags.
    With components output format or Rich Text Editor, I don't see the embedded objects or their HTML tags. Only simple HTML format.

    How to display an embedded object (video) on the JSF page with #{binding} on the ViewObject data control?

    Thank you.

    Try and af:outputText with the exhaust attribute set to false.

  • How can I add a program to the start selective msconfig and how to delete a startup item?

    How can I add a program to the start selective msconfig and how to delete a startup item? Once, I knew but forgot.

    Remove items not controlled in MSConfig
    http://www.PCWorld.com/article/255514/remove_unchecked_items_from_msconfig.html

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • Format selection list

    Apex 3.2

    THAT IS TO SAY 8

    Theme 15

    I have a selection list in my page

    Select htf.escape_sc (promkey) display_value, htf.escape_sc (promid) return_value

    of vpe_pro_prom

    order of promkey

    In the table, there is also a field for end_date.

    Ideally, I would like to display items from the selection list in red if, their end_date < sysdate

    Any ideas appreciated

    Gus

    Gus C wrote:

    Apex 3.2

    THAT IS TO SAY 8

    Theme 15

    I have a selection list in my page

    Select htf.escape_sc (promkey) display_value, htf.escape_sc (promid) return_value

    of vpe_pro_prom

    order of promkey

    In the table, there is also a field for end_date.

    Ideally, I would like to display items from the selection list in red if, their end_date<>

    Not easy in 3.2 without plug-ins or dynamic actions, or in Internet Explorer with a legacy quirks-mode theme. Using jQuery in this app?

  • I've just updated Adobe Professional, but I'm not able to add, to delete the pages more. Before the update, it wasn't a problem. I missed something?

    I've just updated Adobe Professional, but I'm not able to add, to delete the pages more. Before the update, it wasn't a problem. I missed something?

    Are you sure that you're not open your files with the free player instead of using Acrobat? And please do not post the same question multiple times. Also, try to be more specific. "I am not able" can mean many different things.

  • Get - VM | Select-Object question

    All,

    I am writing a script to get information on all my virtual machines. I have almost everything down packed, but I can't get the data store. I want to output out of to show me what the vm data store resides in.

    Here's what I have so far.

    Get - VM | Select-Object Name, VMHost, NumCPU, PowerState MemoryMB

    Again, I need to be able to tell what vm data store resides in

    Try this:

    Get - VM | Select Name,VMHost,NumCPU,PowerState,MemoryMB,@{N="Datastore; E={$_ | Get-Datastore}}

  • The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem

    The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem if I'm updating from Acrobat X?

    You have the fonts installed in the system. This has not changed. (Having the police is not always enough, but it is certainly necessary).

Maybe you are looking for