IDCS6 [Mac] - script to draw a rectangle that is the size of the bleed box

Hello there. I'm sure this is very easy to do but what i'm not sure of is how to get the size of the rectangle to be the size of the bleed box (from the top left to the bottom right) given that this script would be run on dozens of files that are all different page sizes.
Is there also any way to get the script (as the last thing it does) to launch the place command?
colly

Thanks for that. I was able to come up with this:
main();
function main(){
    mySnippet();
    myTeardown();
function mySnippet(){
var myDocument = app.activeDocument;
var myPages = myDocument.pages;
var myPage = myPages.item(0);
var myBounds = myPage.bounds;
var myY1 = myBounds[0] - 5;
var myX1 = myBounds[1] - 5;
var myY2 = myBounds[2] + 5;
var myX2 = myBounds[3] + 5;
    var myRectangle = myPage.rectangles.add({geometricBounds:[myY1, myX1, myY2, myX2]});
app.menuActions.itemByID(113409).invoke();
function myTeardown(){
It works well, with two exceptions:
the bleed in this script will always be 5. depending on the units used, this could be points or millimetres...; and
the rectangle that is made is always the same fill and stroke as the fill/stroke in the palette at the time of running the script. is there any way of making the fill/stroke become none (apart from setting the fill/stroke to none prior to running the script)?

Similar Messages

  • Recently had to purchase a replacement phone a friend of mine had backed up the data on the lost phone to his Mac laptop how do I get that backed up data from the lost iPhone that's on his Mac laptop to my new replacement phone? Please give step by step

    recently had to purchase a replacement phone a friend of mine had backed up the data on the lost phone to his Mac laptop how do I get that backed up data from the lost iPhone that's on his Mac laptop to my new replacement phone? Please give step by step instructions xoxoxo
    And my iTunes sign in is also screwed up... It is underneath my friends email (the one with my backed up data on his Mac laptop) HOW DO I CHANGE THIS SO THAT I CAN DOWNLOAD APP's again...

    I suspect unless he had some items in iCloud backup then they are gone.  Connecting an iPhone to a different library from that to which it was previously connected will result in the device asking if you want to erase it.

  • I need a script to reduce the size of the Fra which has used 34 gb in space

    I need an rman script to reduce the size of the Fra:
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROL FILE 0 0 0
    REDO LOG 0 0 0
    ARCHIVED LOG 0 0 0
    BACKUP PIECE 0 0 0
    IMAGE COPY 0 0 0
    FLASHBACK LOG 69.99 19.33 2357
    FOREIGN ARCHIVED LOG 0 0 0
    7 rows selected.
    SQL> SELECT
    2 ROUND((A.SPACE_LIMIT / 1024 / 1024 / 1024), 2) AS FLASH_IN_GB,
    3 ROUND((A.SPACE_USED / 1024 / 1024 / 1024), 2) AS FLASH_USED_IN_GB,
    4 ROUND((A.SPACE_RECLAIMABLE / 1024 / 1024 / 1024), 2) AS FLASH_RECLAIMABLE_GB,
    5 SUM(B.PERCENT_SPACE_USED) AS PERCENT_OF_SPACE_USED FROM
    6 V$RECOVERY_FILE_DEST A,
    7 V$FLASH_RECOVERY_AREA_USAGE B
    8 GROUP BY
    9 SPACE_LIMIT,
    10 SPACE_USED ,
    11 SPACE_RECLAIMABLE ;
    FLASH_IN_GB FLASH_USED_IN_GB FLASH_RECLAIMABLE_GB PERCENT_OF_SPACE_USED
    50 34.99 11.14 69.99

    In /gateprd/ARCHIVE/*.arc
    This is the script to remove the archives after it has been backup by the netbackup policy named Archive. This policy removes the archives that have been backed up.
    /home/oracle/dba/scripts> more rmovarch.sh
    #!/bin/ksh
    # compress /gateprd/ARCHIVE/*.arc
    find /gateprd/ARCHIVE/*.arc -type f ! -exec echo {} > /home/oracl
    e/dba/lists/ARCHIVElist \;
    if test $(cat /home/oracle/dba/lists/ARCHIVElist|wc -l) -gt 0
    then
    echo "Hay archives. Se corre script de borrar"
    /home/oracle/dba/scripts/ARCHIVE_BACKUP.sh ARCHIVE
    else
    echo "No archives!!"
    fi

  • HT4489 this is ridiculous! how do you keep the size of the picture for a contact that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture t

    this is ridiculous! how do you keep the size of the picture for a contact in the address book that small? it is usually a piece of  a lager picture... any way to make the size of the pictures the 224 KB they want? I always thought the application cropped the picture to fit their requirements...
    Help
    Leo

    Gem
    Events are organised strictly on date and time, as read by iPhoto from the Exif data in the Photo. You cannot manually sort.
    Create Albums. You can do much more organising with Albums, use Photos from different events, place them as you will. Best of all, Albums use no disk space at all. They simply reference the file on the Hard Disk. So a pic can be 1, 10 or 100 Albums with no wasted disk space whatever.
    Regards
    TD

  • DeserializeJSON - is there a limit on the size of the JSON data that can be converted?

    I have some valid JSON data that's being converted successfully by DeserializeJSON... until it gets to a certain size, or that's certainly what appears to be happening.  The breaking point seems to be somewhere in the neighborhood of 35,000 characters... about 35KB.  When the conversion fails, it fails with a "JSON parsing failure: Unexpected end of JSON string" message.  And when the conversion fails, the JSON data is deemed to be valid per tools like this one:  http://www.freeformatter.com/json-validator.html.
    So, is there a limit on the size of the JSON data that can be converted by DeserializeJSON?
    Thanks!

    Thanks Carl.
    The JSON is being submitted in its entirety, confirmed by Fiddler.  And it's actually being successfully saved to a SQL Server nvarchar(MAX) field too.  I can validate that saved JSON.
    I'm actually grabbing the JSON to convert directly from the SQL Server, and your comments / thoughts led me down the path of resolution.
    Turns out that the JSON was being truncated prior to getting to the DeserializeJSON command, but it was the cfquery pull that was doing the truncating.  The fix was to enable "long text retrieval (CLOB)" for this datasource in CF Admin.  I'd never run into that before or even knew that this setting existed.
    Thanks again for your comments!

  • Browser oppen and minimize fine but webpages do not. how do i get it to open to the size of the browser and stay that way with out zooming all the time

    I can not get a webpage to stay the size of the browser with out zooming in every time i go to a web page. With out zooming it just stay small with white on both sides. How do i get it to stay the size of the browser and stay that way Have no trouble with my internet explorer doing this on my new computer. or fire fox on my old computer.

    You can use an extension to set a default font size and page zoom on web pages:
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Several html widgets I created contain the javascript libraries. Is there a way to create a common javascript library that can be accessed by all my widgets? I'm trying to reduce the size of the ibook I'mm creating.

    Several html widgets I created contain the javascript libraries. Is there a way to create a common javascript library that can be accessed by all my widgets? I'm trying to reduce the size of the ibook I'm creating.

    Seen this thread?
    Can javascript libraries be shared across widgets?

  • I installed Adobe Web and Design Preium CS6 on windows 8.1, but when I open the program the size of the menus and tools are so tiny. It is not like that for Acrobat, but all the other programs. Is there a fix for this?

    I installed Adobe Web and Design Preium CS6 on windows 8.1, but when I open the program the size of the menus and tools are so tiny. It is not like that for Acrobat, but all the other programs. Is there a fix for this?

    Thanks for the help. I installed CC and it fixed everything but Photoshop. I guess I will have to use my old laptop for images until Adobe fixes the problem. Do you know of a place where we can send issues like these to Adobe?

  • Is there any way that a jframe can be made to be the size of the screen

    is there any way that a jframe can be made to be the size of the screen assuming that it adjusts to altering sizes and also resolutions.

    Reg_Dwight,
    Please start posting your questions into the correct forum. Your Swing related questions should be posted into the Swing forum. This is the second time I have asked you and about the third or fourth time you have been told this.
    Thanks for your co-operation.

  • Is there a way to reduce the size between the lines in when creating a form in FormsCentral so that you can fit more lines on a page?

    Is there a way to reduce the size between the lines in when creating a form in FormsCentral so that you can fit more lines on a page?

    In the Folders Tab, right click on  folder  then click Reveal in Explorer. This will open an Explorer window with the folder selected.  In Explorer you can right click > Properties or navigate to whatever you want to measure.

  • How do I change the size of the words on the banner and tool bars?  The words are so large that I cannot access all the options.

    How do I change the size of the words on the banner and tool bars?  The words are so large that I cannot access all the options.

    Hi ewhuntley,
    It sounds like you may be running Acrobat 11.0.07, is that correct? If so, please choose Edit > Preferences > General. In the entry Scale for Screen Resolution, choose 100%. Save your changes, and restart Acrobat. Did that do the trick?
    Best,
    Sara

  • Can you increase the size of the photo that shows when you receive a call from a contact

    Can you increase the size of the photo that shows when you receive a call from a contact ?

    It used to be if you added the contacts photo on the iOS device they would have a large picture and if you added it from Address Book on OS X they would have a smaller thumbnail.  However, since iOS5, all I've been able to get is the larger photo.  Try adding the picture directly in the contacts app on your device.  That should make it larger.

  • How can I change the size of the FINDER bar so that I can make it easier to read on the 27 inch monitor.

    How can I change the size of the FINDER toolbar so that its eaier to read i.e. make the text bigger.
    How can you move the orientaion of the left side menus so that they sit above a document when using word. If you have a single document open you tend to place it in the centre of the screen and the drop down menus are so far away.

    I don't know of a way to change the size of the menu bar.
    For the other, take a look at Menu Pop. I don't know anything about it. Just happened across it the other day.

  • If I access the website of Cebu Pacific I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. How do i resolve that?

    If I access the website of Cebu Pacific Air I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. This refers to Firefox 5.0 on ubuntu 11.04
    I have tried to resolve this through deleting history and the cookies, but i always get the same reply. Although if i use firefox (ubuntu) private browsing or Firefox on Windows 7 i do not get this error message.
    What causes this error and how do i resolve this?

    Copied from the link mentioned below.
    ''That is usually a problem with corrupted cookies. Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies" ''
    https://support.mozilla.com/en-US/questions/785186?s=http+error+400&as=s
    Check and tell if its working.

  • I have a macbook pro running 10.5.8 The drive is partitioned to run windows 7 I need to decrease the size of the Mac side and increase the size of the windows side? I cn't remember how to access the drive to reallocate the resources

    Hello,
    I would like to know how to change the partitioned drive on my mac to give more resources to the windows side of the machine?
    i have one other little problem, If I am running the windows side of the machine the mac book's internat speakers produce no sound, but if the content is streamed to my TV the audio id there and working right.When you look in the jack on the side of the computeryou see a red light shinig through itand the speaker icon tells me that the speaker output is at 100% even though there is no sound coming out of the internal speakers.
    Thank you all in advance for sny help
    JTN

    To change the partitions on your MBP, go to DISK UTILITY>PARTITION and follow the instructions.
    Regarding your sound issue, the red light in the audio output port indicates that the switch is set to provide audio to earphones and the internal speakers are disconnected.  To alleviate the problem try a repeated insertion of the earphone jack.  If that does not get the internal speakers functioning, the get a cocktail stirrer or tooth pick and jiggle it inside.  If still no success, the Apple store.
    Ciao.

Maybe you are looking for

  • Extended attribute value of PerPayProposalsVO is not displaying in the page

    Hi, Please could someone reply on this urgently? I have requirement to add one field in the VO PerPayProposalsVO. I have extended the VO properly and substituted the standard VO with extended VO. Please see below the xxPerPayProposalsVO query where X

  • How to restore safari bookmarks in yosemite??

    This question is answered somewhere... but I cannot seem to find the answer and I've seemingly read just about every article on the topic... I updated my MacBook Pro to Yosemite last night which wiped out all of my Safari bookmarks (which I use daily

  • HELP, trying to use nano on another computer

    Hey, I just got the nano and i have it set up on my office computer but now im trying to put it onto my laptop, i downloaded the ipod disk that i got with it but when i look at my library of songsk, i can not listen or click on them. do i have to aut

  • Contemplating BK7- lot's of questions

    Hi everyone!  Started reading on this site and have found it very informative and I feel a bit better about filing but I still have questions that I haven't found yet here.  I am scheduled to talk w/an attorney tomorrow afternoon. A few years ago my

  • Error starting Weblogic workshop 8.1

    Hi, I have trouble starting Weblogic workshop 8.1. I tried uninstalling it and reinstalling it, still the error persists. So I cannot run workshop on my desktop at all. I have included the error at the end. Any suggestions? Please let me know. Regard