Artboard Action/Script Crop to Artwork Bounds

I have just finished manually cropping the artboard to fit the artwork bounds for 1500 files.
It is not possible to create an action or keyboard shortcut for artboard options. It is not even possible to set and save another default artboard size.
AI CS4 ships with sample scripts to add artboards, but I understand that it is not currently possible to write a script to modify the properties of a file's existing artboard.
There are several messages on the Illustrator forums requesting help to create an action to crop the artboard to the artwork, so this must be a reasonably common problem.

Does this help anyone?:
You can automatically create a new Artboard to fit precisely around any object by 1. Selecting the object, 2. Selecting the Artboard Tool, and then 3. Clicking on the object with the Artboard Tool. A new artboard will appear which wraps tightly around your object. Your old artboard will still be there, but you can zap it right away since the Artboard Tool is still active, or you can just note the Artboard number for when you go to export.
It's not a perfect solution, but nothing ever is with Adobe Illustrator.
When I used Corel Draw I could simply select anything and export it and the result would be cropped to the object.
Sigh.

Similar Messages

  • Record action for "Fit to artwork bounds"?

    Hi,
    since there is no short cut for the very usefull (but hidden) function of fitting the page to the artwork bounds I tried to record the steps with an action.
    I create a new action and selected page setup in the menu and shrinkt to bounds of the page by selection the second option (Fit to artwork bounds) from the toolbar menu on the top.
    But nothing happened - not a single step of this process was recordes by the action.
    How can I create an action for this?
    Is there another way to create a shortcut for this very useful feature?
    Thanks
    Konrad
    P.S: I use Illustrator CS4

    Since FitArtboard to Artwork bound and Fit artboard to Selected, are available under object->Artboard menu , you can definately Create a customized shortcut for this functionality and use them
    to create a customized keyboard shortcut do this:
    Edit->keyboard shortcuts->choose menu commands->object->Artboard-> double click on the " Fit to Artwork Bounds"  in the line of shortcut column and provide a custom shortcut.
    Thanks

  • Using "Fit Artboard to Artwork Bounds" in an action?

    Hey all,
    I'm using a handy action that does some what I call "clean up" on various open files, nothing fancy - names all the used swatches and deletes unused etc - but I'm having trouble getting it to do another major part of my workflow:
    Let me explain - I want to have an action that is able to do the following:
    1. Unlock All objects
    2. Select All objects
    3. Artboard Tool (SHIFT-O) - and then
    4. Fit Artboard to Artwork Bounds
    I got it to work up to step 3. It can Unlock and Select, but it seems that recording an action while using the Artboard (Shift-O) tool won't record. Is there any way to automate this? Or does one have to use the Artboard tool manually each time? Thanks!
    CS4, Mac

    Same problem in CS6: neither "Fit to artwork bounds" nor "Fit to selected art" will record for me (although strangely, "Fit to selected art" recorded on the first attempt but never worked again, even after restarting).
    Seems to be one of these temperamental flakey things that sometimes conks out. I imagine trashing preferences would fix it, but it's not worth it since the workaround works (albeit clunkily):
    Flyout menu in the the Actions palette
    "Insert menu item"
    From the top menu, choose Objects > Artboads > Fit to Artwork Bounds
    Even this seems to be a bit temperamental, though. Sometimes it seems to not actually size the artboard down properly, and sometimes it seems to give different results for running the same action on the same file. Something that seems to work more reliably is the following in your action:
    Fit to Artwork Bounds
    Select all
    Fit to selected artwork
    In theory that's just duplication, but it seems to work more reliably than just one or the other .

  • Problems with Fit to Artwork Bounds when using Save for Web

    When I do the Fit to Artwork Bounds function under Artboard Options and then Save for Web, the file has a line of white (or nearly white) pixels at the top. As a workaround, I then open the png file in Photoshop, crop out the white line of pixels and resize the image, but that shouldn't be necessary. How do I prevent it from making the white line of pixels at the top?
    I'm using Illustrator CC on Mac OS 10.7.5.

    you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels

  • How do i create an action to crop to fit something?

    Hello, I have a bunch or 3d renders which are a flat colour background with an object in the center.
    I  need to create an action to crop the flat colour around the object,  leaving a specified space. Mantaining the aspect ratio of the picture  would be nice, but no completelly necessary.
    Maybe theres a plugin, script or other software for doing this?
    I attached an example.
    001.jpg (6.94 KiB) Viewed 1 time
    HELP!

    Keep in mind Trim will only work if the color is an exact match in all pixels, and things get complicated when you start re-expanding the image using a sampled color.  It all falls apart if there's any variation in the background color.  I don't think Trim it's the best choice.
    However, one can imagine creating an action based on the Magic Wand tool and an appropriate tolerance value to get the job done. It would go something like this:
    1. Click the Magic Wand in the upper-left corner. That selects virtually all of the background color.
    2. Select - Inverse.
    3. Select - Expand - XX pixels where XX is the amount of border you want.
    4. Image - Crop.
    5. Select - Deselect.
    I even tried it to ensure it works.  A sample version is here:  http://Noel.ProDigitalSoftware.com/temp/Goblino.zip
    -Noel

  • Creating an action to crop straighten and save

    I have scanned in a hundred or so pages from old photo albums, and have a thousand or so more to save.
    I am hoping to use a batch process or script to automate the cropping/straightening & saving, but I can't work out how to get the files saved.
    The album pages do not have a fixed number of images, so the crop/straighten is creating a variable number of images  from 1 to 8 or 9 (maybe more - they are really old photos some of which which are very small).
    So I need to find a way to create an action to crop and straighten (the easy bit), and then to automate the saving without asking for a file name and path for each image - the names created in the crop process are fine.
    Can anyone help please.
    Many thanks

    There is free script which works just fine. Here is entire discussion http://forums.adobe.com/thread/290194. I tested script with Photoshop CC on WIndows and everything works perfect. Download, actually select all and copy from this page http://www.tranberry.com/photoshop/photoshop_scripting/PS4GeeksOrlando/IntroScripts/cropAn dStraightenBatch.jsx. Open text editor and paste then save as cropAndStraightenBatch.jsx file in Presets > Scripts folder or save on Desktop then copy and paste in mentioned folder. Run script from File > Scripts menu without any image open. In the first dialog navigate to folder with scanned photos then in second window navigate to folder where you want to save.

  • Illustrator CS4 crops my artwork when exporting to png

    Illustrator CS4 crops my artwork when exporting to png (it always crops on the right side). It doesn't happen everytime but often enough to be annoying. Sometimes centering my artwork in the artboard solves the problem but not always. Do you have any idea why it's happening, and what I can do to avoid that problem?
    (See the attached png)

    @Jacob & Mylenium: I don't have any stroked path in my artwork. I've tried to add a no fill/no stroke rectangle (same size as my artwork and then a bit bigger) but it didn't work.
    Your advices gave me an idea though: I've added a filled rectangle slightly bigger than my artwork, centered it and dropped its opacity to 0%, it worked.
    I'm glad I know that trick now, because even when my artwork wasn't badly cropped, it was touching the edges of the picture (png). Then I had to open it in Photoshop and increase the canvas size in order to leave some transparent space between the artwork and the edges of the picture. Now I can do that in Illustrator
    Thanks a lot for your help !

  • Is there a command for "Fot to artwork bounds" ?

    Is there a command for "Fot to artwork bounds" ?

    Make your own. Edit>Keyboard Shortcuts>Menu Commands>Object>Artboard>Fit Artwork to Artboard. Make it anything you want.

  • Single click folder action script

    Hi
    Long shot question here:
    I am wanting to set up a folder action script that is activated by only single clicking a folder (selecting), very much the same as "Macintosh HD:Library:Scripts:Folder Action Scripts:open - show comments in dialog.scpt", the dialog will display when the folder is selected, not opened.
    Is this possible with applescript, or a combination of AS and "do shell script"? if so can I get some pointers please.
    Cheers
    Budgie

    Hello
    The Standard additions dictionary claims:
    adding folder items to: Called after new items have been added to a folder, but only when the folder’s window is open
    adding folder items to alias -- Folder receiving the new items
    after receiving a list of alias -- a list of the tems the folder received
    closing folder window for: Called after a folder window has been closed
    closing folder window for alias -- the folder that was closed
    moving folder window for: Called after a folder window has been moved or resized
    moving folder window for alias -- the folder whose window was moved or resized
    from bounding rectangle -- the previous coordinates of folder window (you can get the new coordinates from the Finder)
    opening folder: Called after a folder has been opened into a window
    opening folder alias -- the folder that was opened
    removing folder items from: Called after items have been removed from a folder, but only when the folder’s window is open
    removing folder items from alias -- the folder losing the items
    after losing a list of alias -- a list of the items the folder lost. For permanently deleted items, only the names (in strings) are provided.
    Other actions , like single click, are NOT treated.
    Yvan KOENIG (from FRANCE dimanche 29 janvier 2006 19:12:18)

  • CS5 commands not recordable by Action script?

    I'm finding out that some commands such as View > Rulers > Change to Global Rulers cannot be recorded while a command such as View > Rulers > Show Rulers is recorded fine.
    I wonder if I should just give up on the Action scripts and look for some OS based keystroke macro recording utility? Any comments?
    Thanks
    franK

    what do you mean?
    "Fit Artboard to Window" is something you wish there was a command for?
    if so, you could
    - draw a "window" with the Rectangle Tool
    with the rectangle selected, record an action that does the rest
    - Fit Artboard to Selected art
    - Save
    - Delete "window"
    - Close

  • How do I use the button states in an action script?

    In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
    BR,
    Madeleine

    When you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
    The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
    Hide Group   so that eventual down mimicked states on previously clicked buttons disappear
    Show Im_Downx    to show the down image for that button

  • Adding data to cfgrid using action script

    how can i add data to a grid row called name in action
    script. i have a cfselect control containing name of students and i
    want to add the values of the selected student from the list to
    grid.

    Did you add your instance of SpectrumCanvas to the stage with addChild()?
    If so, you should boil your posted code to a more simple example.
    If this post answered your question or helped, please mark it as such.

  • Error message with Action Script 2.0 file

    Hi,
    I am trying to edit an old flash file that uses Action Script 2.0. I am using CS6 and keep getting the following error message after publishing:
    Scene 1, Layer 'AS', Frame 1, Line 5, Column 29
    1067: Implicit coercion of a value of type int to an unrelated type String.
    Can you suggest any fixes or workarounds? I also have Flash 4.0. Can i downsave the file? If so, how?
    Thanks!

    Thank you. I think that did fix the original two errors. But now upon test of the file, I get some new errors:
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 3
    1120: Access of undefined property ratio.
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 20
    1180: Call to a possibly undefined method number.
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 27
    1120: Access of undefined property _root.
    Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 9, Column 27
    1120: Access of undefined property ratio.
    And on the MoneySlide layer in Actions:
    this.ratio = 0;
    this.loadBar._width = 0;
    this.dragger.ratio.text= "$0";
    dragger.onPress=function(){
              this.startDrag(true,0,0,line._width,0);
              this.onEnterFrame=function(){
                        ratio=Math.round(number(_root.transitBenefitLimit/100)*(this._x/(line._width/10 0)));
                        loadBar._width = Math.round(this._x);
                        dragger.ratio.text= "$"+ratio;
    dragger.onRelease=dragger.onReleaseOutside=stopDrag;

  • Using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

    using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

    Thanks for your swift response.
    That sounds like a good solution, but the code I have on frame 2 is this
    timer = 0;
    countup = function(){
    timer++;
    countupInterval = setInterval(countup,100);
    If I added the same actionscript to frame 3 which has a dynamic textbox with a variable timer attached wouldn't it just put the timer back to 0? What I want is the last known value that was given when it was in frame 2.
    I am thinking of temple run here, I am trying to caculate the total distance(set in the timer variable) from the previous try.
    Hope this makes sense.
    Chazwick

  • Error while loading an child movieclip if the child has any action script

    Hi
    I am developing an application where I need to load a child.swf . All works fine when I load the mc but as soon as I add Action Script (lets say trace("test")) to the Child.swf I get a Error #1009: Cannot access a property or method of a null object reference. On the addChild line.
    Code
    trace("Toothpaste click");
    var mLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest("Child);
    mLoader.load(mRequest);
    mcContainer.addChild(mLoader);

    Sorry.Thanks
    Typo on the forum.
    I can load the child.swf see the image/text in the child  displayed in the parent but as soon as I add as3 to the child page I receive the above mentioned error. If I run the child.swf from the IDE or by itself everything works fine .
    trace("Toothpaste click");
    var mLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest("Child.swf");
    mLoader.load(mRequest);
    mcContainer.addChild(mLoader);

Maybe you are looking for

  • There was an error opening this document.  The file is damaged and could not be repaired.

    Good Day all When busy doing internet banking on www.absa.co.za and I try to print a confirmation, I get the following error message: "C:\Documents and Settings\%user profile%\Local Settings\Temporary Internet Files\Content.IE5\%folder name%\%file na

  • Installation problem with oracle 11i e-business suite

    Hai iam installing 11 i financials for the first time on windows server -2003 i have completed the first stages of validation system configuration . and later while extracting files from the location it shows error as 1.APPS_ORACLE_HOME environmental

  • Question about table T001P - in HR master data

    Hello, I am making a test to create a TRIP (travel expenses). I have a link between the personnel number and the User ID (Communication type 0105 0001). However, when entering the travel expenses via transaction TRIP I get following message: "No entr

  • How to restore an iPad mini

    Hi, I have been having trouble restoring my iPad mini, the cellular data is not detected and personal hotspot is not coming. Can u help me find out what can I do? Thanks support team.

  • Mail.app randomly chooses incorrect mail alias when i reply to mails

    Hi Hope this makes sense. I have a few additional .mac mail aliases set up one in particular i use a lot for subscriptions to job sites and any other subscriptions. Problem i have is if i create a new mail and choose the alias from the pull down list