Is it possible to create an action that will trim guide lines? Thank you.

Hi everyone, I have set the guidelines on several images, is it possible to crop to these lines of guide as opposed to manually? Many thanks.

See the script for the snap of harvest (no delete pixels) in the ruler guide

do cultures based on 4 guides;

2014, use at your own risk.

#target photoshop

If (app.documents.length > 0) {main()};

function.

int main() {}

the value pixels and 72 dpi.

myDocument var = app.activeDocument;

var originalRulerUnits = app.preferences.rulerUnits;

app.preferences.rulerUnits = Units.PIXELS;

var originalResolution = myDocument.resolution;

myDocument.resizeImage (null, null, 72, ResampleMethod.NONE);

If (myDocument.guides.length == 4) {}

Download the guides;

var theVert = new Array;

var theHor = new Array;

for (var m = 0; m< mydocument.guides.length;="" m++)="">

If (myDocument.guides [m] == Direction.HORIZONTAL) {theVert.push (myDocument.guides [m] .coordinate)}

else {theHor.push (myDocument.guides [m] .coordinate)}

};

jabot;

If (theHor.length == 2 & theVert.length == 2) {}

cropThis (number (Math.min (theVert [0], theVert [1])), Number (Math.min(theHor[0],theHor[1])), number (Math.max (theVert [0], theVert [1])), Number (Math.max(theHor[0],theHor[1])))

};

};

reset;

app.preferences.rulerUnits = originalRulerUnits;

myDocument.resizeImage (null, null, originalResolution, ResampleMethod.NONE);

};

culture.

function cropThis (x 2, x 3, x 1, x 4) {}

// =======================================================

var idCrop = charIDToTypeID ('Crop');

var desc7 = new ActionDescriptor();

idT var = charIDToTypeID ("T");

var desc8 = new ActionDescriptor();

var idTop = charIDToTypeID ('Top');

var idRlt = charIDToTypeID ("#Rlt");

desc8.putUnitDouble (idTop, idRlt, x 1);

var idLeft = charIDToTypeID ("Left");

var idRlt = charIDToTypeID ("#Rlt");

desc8.putUnitDouble (idLeft, idRlt, x 2);

var idBtom = charIDToTypeID ("Btom");

var idRlt = charIDToTypeID ("#Rlt");

desc8.putUnitDouble (idBtom, idRlt, x 3);

var idRght = charIDToTypeID ('Rght');

var idRlt = charIDToTypeID ("#Rlt");

desc8.putUnitDouble (idRght, idRlt, x 4);

var idRctn = charIDToTypeID ("Rctn");

desc7.putObject (idT, idRctn, desc8);

var idAngl = charIDToTypeID ("Marko");

Bryan var = charIDToTypeID ("#Ang");

desc7.putUnitDouble (idAngl, Bryan, 0.000000);

var idDlt = charIDToTypeID ("Dlt");

desc7.putBoolean (idDlt, false);

var idcropAspectRatioModeKey = stringIDToTypeID ("cropAspectRatioModeKey");

var idcropAspectRatioModeClass = stringIDToTypeID ("cropAspectRatioModeClass");

var idtargetSize = stringIDToTypeID ("targetSize");

desc7.putEnumerated (idcropAspectRatioModeKey, idcropAspectRatioModeClass, idtargetSize);

executeAction (idCrop, desc7, DialogModes.NO);

};

Tags: Photoshop

Similar Questions

  • Is it possible to create an action that moves an object?

    Is it possible to create an action that moves an object from its original position to another location?

    I think you can do it using the object effects.

  • I would like to change my subscription to a new laptop computer. Can I just disconnect on the old laptop and upload the new or should I uninstall on the old?   I also installed on my desktop that will not change. Thank you!

    I would like to change my subscription to a new laptop computer. Can I just disconnect on the old laptop and upload the new or should I uninstall on the old?   I also installed on my desktop that will not change. Thank you!

    Remove the license on a computer http://forums.adobe.com/thread/1442423?tstart=0 can help

    -read http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html

    -or https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

  • Is it possible to create a page that will not be displayed in the menu bar?

    I would like to create a page that my visitors will be sent to only after submitting a form. I want this page to be unique and not available through the navigation bar. Whenever I have create a page in the plan view it appears so in the menu bar or in one of my submenus when I create a subpage. Is it possible to have a page that is "invisible" to the menu bar?

    Thank you.

    Under the PLAN form, do a right click on the page you want to exclude from your list of menu, go to the Options Menu and select exclude Page of Menus.

  • Is it possible to have a button that will insert a line of table rather than add at the end?

    I have a button Add line that works correctly using addinstance, but I would like to have the line button Add at the end of each line, if a user can insert a line in the middle of the existing/fiilled of lines.  Is this possible?  I would like to be able to do this using Formcalc because that's what my script in the form currently complies.

    Hello

    Yes, it is possible, but actually doing just that the script is to add a new line at the end of the table AND then move the line to the appropriate position.

    See examples here: http://assure.ly/gk8Q7a. Table 5 is a Table object, while table 6 is constructed using subforms. In both cases, the Index number is a button, which adds a line below the existing one clicked.

    See who helps me to,.

    Niall

  • Create an action that merges my documents using my sorting algorithm and keep my favorites?

    I have 400 documents I need to be sorted and merged. I want to do this using an action so that she will inherit all my favorites in the files. I wrote my JavaScript sorting algorithm, and I do not know how to integrate it in an action. How can I create an action that will sort my files based on my sorting algorithm, merge files and prevent the smaller files to my favorites?

    You might want to take a look at this example Action, adds bookmarks to the currently open document. Bookmarks to link to a selection of other PDF files to another folder. The files must be in the same folder as the document currently open, or a subfolder thereof.

  • Is it possible to create a folder that can hide files automatically, when they are copied in it?

    Hello!!!

    Is it possible to create a folder that can hide files automatically, when they are copied in it? I mean how to program a folder so that everything that he would automatically become hidden? I would be very grateful...

    Is it possible to create a folder that can hide files automatically, when they are copied in it?

    Yes. A sort of roundabout.

    For this example, create a folder on your C drive named HideTest.

    Download http://winsupport.org/utilities/freedos-choice.html Choice.Exe (click on the link to download the utility program near the bottom of the page. "And save it in the C:\HideTest folder).

    Open Notepad and then copy and paste the following text in it:

    Off @Echo

    : All
    Set FilesToHide = No.

    : GoToDir
    C:
    cd\HideTest

    : Top
    CLS
    IF FilesToHide %! Is Yes! Attrib *. * + H

    : Choice
    Choice.Exe /c:YN t:Y, 30 are looking for files to hide
    If ErrorLevel 2 Goto: exit

    : MakeList
    Dir > TempList.Txt

    : CheckFiles
    Set FilesToHide = No.
    Find.Exe "0 file (s)' TempList.Txt
    If ErrorLevel 1 Set FilesToHide = Yes
    If exist TempList.Txt Del TempList.Txt

    : Loop
    Goto: Top

    : Output
    Set FilesToHide =
    If exist TempList.Txt Del TempList.Txt
    Output

    Click on file, then save under...

    Go to C:\HideTest

    Name the file Hide.Bat

    Click Save

    Close Notepad

    Open Windows Explorer

    Go to C:\Documents and Settings\UserName\Start where user_name is your own username.

    In the right pane, right click, select New, and then click shortcut.

    Click Browse, and then navigate to C:\HideTest and click on Hide.Bat, click Next.

    Type a new name or accept the default name and click Finish.

    Right-click on the newly created shortcut, and click Properties.

    Change the race: from the normal window to reduced.

    Click on apply, and then click Ok.

    Restart your computer.

    Note: In the line above Choice.Exe c:YN t:Y, 30 are looking for files to hide, 30 is the number of seconds it will wait before checking the new files. This can be from 1 to 99.

    Edit: Just to satisfy my curiosity, why do you do this?

  • Can I create an action that includes a shortcut for the patch tool?

    I am trying to create an action that includes a shortcut for the tool room.  I changed the patch (now R) tool shortcut to be different from the correct place (J), it works fine on the keyboard, but it will not record in action. Is there a way to include this point in the action?

    Something do not have in stock, and there is no menu item for the function you want to save.  The easiest way around your problem is to create a tool preset for the tool part then record by selecting this predefined in your action patch toll to pass to the tool room.

  • Is it possible to create a tag that lists the individual labels [keywords] for each position? The current {tag_blogtaglist} creates an endless list of tags.

    Is it possible to create a tag that lists the individual labels [keywords] for each position? The current {tag_blogtaglist} creates an endless list of tags.

    If you can get hands on with the ID of blog post that you can list the tags assigned to this post particularly blog using module_data. It would be only possible with the new BC. Active following rendering engine. Here are some resources to point you in the right direction: how to activate the BC. Next - http://docs.businesscatalyst.com/developers/liquid/introduction-to-liquid#enable how to use module_data - odule_data http://docs.businesscatalyst.com/developers/liquid/consuming-apis-in-the-front-end-using-m install app BC API discovered to get you started on the syntax - http://docs.businesscatalyst.com/developers/apps/bc-api-discovery module data that lists the tags assigned to a blog post looks like this: {module_data = 'blogposts' version = "v3" field resource = subresource 'tag' = "tags" resourceId = collection "303870" = "myData"} resourceId is the blog ID to render tags for. Hope this helps, Mihai

  • is it possible to write a script that will display the script files folder in the tree

    is it possible to write a script that will display the script files folder in the tree

    Yes :-)

    In your previous post, someone suggested to search for the file "SnpCreateTreeview.jsx", because it would just be the asked.

    The script can be found here, just accept the EULA and download the example scripts of Bridge CS3. (For some reason it is not in CS4 samples because as far as I know)

    Here's a version with small changes, it is up to you to point the script in the folder 'root' right, because this is, needless to C: on PC:

    ////////////////////////////////////////////////////////////////////////////
    ADOBE SYSTEMS INCORPORATED
    Copyright 2007 Adobe Systems Incorporated
    All rights reserved
    //
    NOTE: Adobe permits you to use, modify, and distribute this file according to the
    the terms of the Adobe license agreement accompanying it.  If you received this file from one
    source other than Adobe, then your use, modification or distribution of it is required in advance
    written permission from Adobe.
    /////////////////////////////////////////////////////////////////////////////

    /**
    @fileoverview shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.
    @class shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.

    Its use


      
      
      

        
    1. Run the extract in the ExtendScript Toolkit (see Readme.txt).
         
    2. Enlarge / reduce the list items
         
    3. Check the JavaScript Console to see the events captured by the elements of the TreeView.
       

    Description


     
     

    Creates two hierarchical list of TreeView items. One is static, with a fixed set of point
    nodes that you can expand and collapse. The other is dynamic; Item nodes are added and removed as
    the need for a view of the file system.
     
     

    The list items in the TreeView control to display the folders and files custom images.  When you add items to the
    TreeView list, type 'article' is used for elements of the leaf and 'node' to the elements of the container.
     
     

    Dynamic TreeView captures events in two different ways. It uses callback functions to capture the
    node to expand and collapse events and selection changes and also registers an event listener to
    capture double-click events.

    @constructor constructor
    */
    #targetengine "session".
    function SnpCreateTreeView()
    {
    /**
    The context in which this code snippet can work.
    @type string
    */
    this.requiredContext = "\tNeed runs in the context of the Bridge\n."

    /**
    The location of this script file system
    @type file
    */
    var scriptsFile = new File($.fileName);
       
    /**
    The location of the file system resource PNG file used to represent folders
    @type file
    */
    this.folderIcon = new file (scriptsFile.path + "/ resources/Folder_16x16.png");

    /**
    The location of the file system resource PNG file used to represent files
    @type file
    */
    this.fileIcon = new file (scriptsFile.path + "/ resources/Story_16x16.png");

    /**
    The root folder that will be used for the dynamic tree
    @type string
    */
    this.rootFolder

    If (File.fs is "Windows")
    {
    this.rootFolder = "C:";
    }
    on the other
    {
    this.rootFolder = ' / ';.
    }
    }

    /**
    Functional part of this code snippet. Creates the ScriptUI window and its components,
    and defines the behavior.
    @return true if the code snippet is executed as scheduled, false otherwise
    Boolean @type
    */
    SnpCreateTreeView.prototype.run = function()
    {

    $.writeln ("about to"run SnpCreateTreeView");
       
    Create the window
    var win = new window ("palette", "SnpCreateTreeView", undefined, {resizable: false});

    Create the Committee for the static TreeView control
    sPanel var = win.add ('Committee', undefined, 'TreeView Élément') static;
    sPanel.alignment = ["fill",""];
    sPanel.alignChildren = ["fill",""]

    Create a TreeView list
    sTv var = sPanel.add ("treeview");
    sTv.preferredSize = (300, 200);
    Add static items to the list, in a hierarchical structure.
    for (var i = 0; i)<>
    {
    sTv.add ("node", "Item" + i);
    for (var j = 0; j)<>
    {
    sTv.items [i] .add ("item", "Sub Item" + j);
    }
    }

    Create the Committee for the dynamic TreeView control
    var dPanel dynamic = win.add ('Committee', undefined, 'TreeView Élément');
    Create a TreeView list
    TV digital var = dPanel.add ("treeview", undefined);
    dTv.preferredSize = (400, 300);
    Create the root node element
    var aNode = dTv.add ("node", "/");
    Pair it with an image of the icon
    aNode.image = this.folderIcon;

    Define a handler for the double clicks
    myOnDoubleClick = Function
    {
    if(e.detail == 2)
    {
    $.writeln ("double click");
    }
    }

    Adds the handler as an event listener to the TreeView element.
    dTv.addEventListener ("click", myOnDoubleClick);

    Keep a reference to this object
    var that = this;

    Define an event handler for when a node is expanded
    dTv.onExpand = function (point)
    {
    $.writeln (item.text + "is now expanded.");
    nextItem var = item;
    var path = "";
    goUp var = true;

    While (goUp)
    {
    path = "/" + nextItem.text + path;
    nextItem = nextItem.parent;
    If (instanceof TreeView nextItem)
    {
    goUp = false;
    }
    }

    Remove all children of this element
    item.removeAll ();

    var Ref = new file (that.rootFolder + path);
    If (Ref instanceof Folder)
    {
    children var = ref.getFiles ();
    for (var i = 0; i)<>
    {
    If (children [i] instanceof file)
    {
    Item.Add ("node", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.folderIcon;
    }
    on the other
    {
    Item.Add ("item", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.fileIcon;
    }
    }
    }
    }

    Define an event handler for when a node is reduced
    dTv.onCollapse = function (point)
    {
    $.writeln (item.text + "is now reduced.");
    }

    Define an event handler for when the selection changes
    dTv.onChange = function()
    {
    $.writeln ("selection changed");
    }

    Display the window
    Win.Show ();
       
    $.writeln ("Ran SnpCreateTreeView");
       
    Returns true;
    }

    /**
    "main program": construct an anonymous instance and run
    as long as we are not unit - test this code snippet.
    */
    If (typeof (SnpCreateTreeView_unitTest) == 'undefined') {}
    new SnpCreateTreeView () .run ();
    }

  • I can now create a folder that will hold all of my photo files?

    Original title: search folder

    I did a search with the little dog under (music photos or videos).  I have all my photos gathered.  I can now create a folder that will contain all the? I use Microsoft Word or Word Perfect 10, but most of my documents are in WP. I have photo files in Picasa and Photo Shop as well as those of Word Perfect.

     

    Hello


    What documents are there in WordPerfect?

    Yes certainly, you can create the folder that holds all of the image files.

    See the following steps to create a folder.

    (a) to highlight all the images files or press Ctrl + A on the keyboard

    (b) go to the location where you want the folder to be (example: Office)

    (c) right-click and click New, and click folder

    (d) the name of your choice.

    (e) open the folder, right click and click on paste.

  • Create a hyperlink that will focus more when I save the photoshop to PDF doc?

    Hello

    I am trying to create a hyperlink that will always work when I save all of the Photoshop document in PDF format. I am able to create the hyperlink by using the slice tool, but then when I save it as a PDF, the hyperlink goes.

    I use CS5 on a Mac.

    Thank you!

    I suspect that Photoshop is not appropriate here, you can consider using Indesign for that.

  • Is it possible to delete some network locations not in use? Thank you

    Is it possible to delete some network locations not in use? Thank you

    Are you talking about system preferences-> network-> location-> Edit-> [-]

    or are you talking about the system preferences-> network-> advanced-> preferred networks-> [-]

  • shows am improve ready system me ready start Hello, after installing "Setup for the windows modules" my pc one slowed down at the start. That do I do? Thank you.

    Hello, after installing "Setup for windows modules" my pc one slowed down at the start. That do I do? Thank you.

    Hello Turkish styleozdemir.

    The forum in which you've posted is for English only. Please select your language by clicking on the globe on the page down to the left to post your question in the language of your choice. If you can't find the desired below language, support for additional international sites options are by following the link below:
    Thank you!
  • I have to do, if this error message appears: "JavaScript exception: error calling function selector: [object Error]? It seems that by Internet Explorer. Thank you very much for your reply and I hope you can help me.

    I have to do, if this error message appears: "JavaScript exception: error calling function selector: [object Error]? It seems that by Internet Explorer. Thank you very much for your reply and I hope you can help me.

    Hi Brad,

    Here is the link: http://projektw.primo-werbung.de/

    We have this problem only by Internet Explorer. Mozilla, Safari and Opera - there is all right.

Maybe you are looking for

  • Why I can't use Mac pad to increase/decrese fonts?

    all browsers (also firefox 3version) can use pad for this function, but now the most recent version of firefox can not

  • Cascading Menus strangeness

    I met some strangeness with cascading menus which is neither intuitive nor documented.  I use cascading menus to help the user to complete and modify a table containing a limited set of choices.  The intention is that many of the level 1 menu choices

  • WANT 4523: Re-print

    I just bought the above and can not get any impression of the printer. He tells me that he gets the data from the computer and the printer indicates that it is printing, but it does not actually generate a printed version. The paper tray is full and

  • Paper size

    Hello Can I use the roll paper size A3 to A0 plotter to print A3 drawings? Thank you

  • How can I change my language of Aramaic to English? but my email hacked, it's only in Aramaic someone can

    my email hacked in and they changed the language from English to Aramaic I need English.  Windows live example has not helped because they showed did not appear on the screen so I could not change it myself.