Is there a script to delete frames?

Hi
is there a script to delete frames on photos?
often i have to delete black or white frames or others colors , i 'm looking for a script to do it
thanks
cheers

Well, in cases like this, the only thing I can think of is to create an action which simply crops the canvas, but place a stop action on the script to allow you to manually enter how much you want to crop. But again, you would have to manually determine how many pixels you need to crop inwards.
I thought you were going to show an image that had (say a 20 pixel white/black border) - then I would have said you could use the magic wand (or maybe "select color"), then create an action to reverse that selection then crop, but that wouldn't work with this photo. If all the images have the same thickness of border, you can create an action to just crop the image X amount of pixels. Do ALL your images have this exact border?

Similar Messages

  • Is there a script that it can make Overflow text automatically routed Next?(Not the main text frame)

    Is there a script that it can make Overflow text automatically routed Next?(Not the main text frame)
    when I run the scrip,Overflow text can auto Typesetting to the next page?
    thankS Supreme~

    Here's the script I use. Notice the complications getting the live area when other than rulers per spread is employed. The script automatically selects the final selection point in the story and moves to that page in the active window.
    //DESCRIPTION: Autoflow selected overset story
    (function(){
              if (app.documents.length > 0
                                  && app.selection.length == 1
                                  && app.selection[0].hasOwnProperty("parentStory")
                                  && app.selection[0].parentStory.overflows) {
                        app.doScript(fixOverset, undefined, app.selection[0].parentStory, UndoModes.entireScript, "Fix Overset");
              } else {
                        alert("There must be a selection that identifies the overset story.");
              function fixOverset(story) {
                        while (story.overflows) {
                                  var aDoc = story.parent;
                                  var lastTF = story.textContainers.pop();
                                  var lastPage = lastTF.parentPage;
                                  if (lastPage instanceof Page == false) {
                                            alert("Story ends on pasteboard; no action taken.");
                                            return;
                                  var master = lastPage.appliedMaster;
                                  var newPage = aDoc.pages.add(LocationOptions.after, lastPage);
                                  newPage.appliedMaster = master; // may not be necessary
                                  var liveArea = getLiveBounds(newPage);
                                  var newTF = newPage.textFrames.add({geometricBounds : liveArea, layer : lastTF.itemLayer});
                                  newTF.previousTextFrame = lastTF;
                                  if (newTF.insertionPoints.length == 0
                                                      && lastTF.insertionPoints.length == 0) {
                                            // allows for paragraph style with startParagraph on specific page side
                                            alert("Story is permanently overset.");
                                            return;
                        selectIt(story.insertionPoints[-1]);
              function getLiveBounds(page) {
                        var rO = page.parent.parent.viewPreferences.rulerOrigin;
                        var bounds = page.bounds;
                        if (rO == RulerOrigin.spreadOrigin) return returnBounds(page, bounds);
                        var width = bounds[3] - bounds[1];
                        if (rO == RulerOrigin.spineOrigin &&
                                            (page.side == PageSideOptions.leftHand ||
                                                      (page.side == PageSideOptions.rightHand &&
                                                                page.parent.pages.length > 1)) ||
                                  (rO == RulerOrigin.pageOrigin &&
                                            page.side == PageSideOptions.rightHand &&
                                                      page.parent.pages.length > 1)) {
                                            bounds[1] = bounds[1] - width;
                                            bounds[3] = bounds[3] - width;
                        return returnBounds(page, bounds);
                        function returnBounds(page, bounds) {
                                  return [
                                            page.marginPreferences.top,
                                            page.side == PageSideOptions.leftHand ?
                                                      bounds[1] + page.marginPreferences.right :
                                                      bounds[1] + page.marginPreferences.left,
                                            bounds[2] - page.marginPreferences.bottom,
                                            page.side == PageSideOptions.leftHand ?
                                                      bounds[3] - page.marginPreferences.left :
                                                      bounds[3] - page.marginPreferences.right
               function selectIt(theObj) {
                        var myZoom = app.activeWindow.zoomPercentage;
                        app.select(theObj);
                        app.activeWindow.zoom(ZoomOptions.fitPage);
                        app.activeWindow.zoomPercentage = myZoom;

  • Is there a script or action to delete all the alpha/channels?

    Hi
    when i work on an image , i create lots of alpha channels , is there a script/action to delete all with 1 click?
    i run ps cs6 64bit , windows7 64 bit
    i found a short script but it's amazing slow
    thanks

    Thanks Kelly
    i miss you one thing delete all 4 color samples
    i use notepad++ and synwrite
    something like delete color samples can be done with the plugin
    to delete color samples i use this
    #target photoshop
    app.bringToFront();
    var theImage = app.activeDocument;
    // flatten the layers
    // theImage.flatten();
    // delete alphas
    // theImage.channels.removeAll();
    // delete paths
    // theImage.pathItems.removeAll();
    // delete layercomps
    // theImage.layerComps.removeAll();
    // delete color samplers
    theImage.colorSamplers.removeAll();
    // clear guides

  • Is there a script (or plugin) that will take a photo and break it up into parts?

    Is there a script or plug-in out there that will take a picture and break it up into various parts (squares for example.)  The idea would be that you could automate and rapidly create a photo collage of a single image.  (See examples of what I mean in attached pics.)
    Thanks!
    This image has been resized to fit in the page. Click to enlarge.
    You get the idea.

    OK, I'm going to edit this post now that I'm at a computer with an actual step by step.
    Create a new comp the size of you our final delivered project.
    Add a photo to the timeline
    Note the size of the photo and the scale to position the photo at it's final resting place
    Calculate twice the height and width of the photo and create a new solid that is this size
    Place the solid above the photo
    Create a mask in the solid at the exact center that is the size shape you want for your photo frame
    Either invert the mask or set the mask property to Subtract to reveal a small portion of the photo
    Set the solid as a alpha inverted track matte for the photo (you should now see only a portion of the photo
    Add a rectangular shape layer with only a stroke to act as the photo frame over the mask. You may have to use two shapes or create a mask on a shape if you want to simulate polaroids
    Make the shape layer the parent of the solid you are using as a track matte so the matte will stay lined up with the frame
    Here comes the fun, select all layers and duplicate them using Ctrl/Cmnd + D
    Immediately hold down Shift + Ctrl/Cmnd + } to move all duplicates to the top
    Select the top shape layer and move the shape layer frame into a new position
    Pre-compose the top 3 layers
    Press the y key to select the Pan Benind or Anchor Point tool and move the pre-comp's anchor point to the center of the top frame
    Repeat step 11 through 15 until you have arranged your montage (it might be a good idea to have a template set up as a guide layer so you know where to put the frames
    Select all pre-comps and press Alt/Option + P to set a position keyframe for each pre-comp
    With all of the keyframe selected move them down the timeline about 3 seconds
    Now, with the CTI at the first frame drag each pre-comp into a starting position for that frame
    Preview and adjust the timing, then turn on motion blur
    Your images will now assemble themselves into the final montage.
    There is no script that I know of that will do all of this automatically, but it would not be too hard to write a script that would do the pre-composing if you have a ton of these to do. I'm guessing that with a little practice you could have a new picture frame created and moved into position in less than a minute. It takes me about 30 seconds. That means a 20 frame sequence should take you about a half hour. It might not be worth writing a script unless you have a ton of these to do. Select the bottom three layers and duplicate (Ctrl/Cmnt + D), group them at the top (Shift + Ctrl/Cmnd + } ), move the top frame layer into position, then Shift + Ctrl/Cmnd + C to pre-compose, then move the anchor point of the pre-comp, then do it again.... When you're done set a few keyframes.
    As I said, you could write a script, but you'd need a different script to move each frame into position and the script would only work for one layout. If you made a template to put on the bottom so you knew where do place the frames and which order you wanted them you could do this by hand very quickly. The sample project that I'm including which was just quickly thrown together took me less than 10 minutes. Replace my photo with one of yours and you'll get the idea.
    Dropbox - photoMontage1_CS6.aep (Note: Dropbox will probably add a .txt extension to the .aep file. Just delete it and you should be able to open the project.

  • Adobe Premiere Elements 10 - Is there an alternative to 'delete and close gap?'

    There are two scenes on the same track (not sure if they're called scenes, just not sure what else to call them), I want to put them right next to each other on the timeline, with no gap in between. If I use delete and close gap, everything in front of these two scenes will move as well. I don't want everything else to move, I only want to move the lone scene next to another scene. If I just try to drag it next to it, it'll either slice the scene in half if I don't drag it 100% perfectly next to it, or there will be a single frame of black space on the video. The only way I can successfully do this is if I zoom in and pain stakingly drag them precisely next to each other. Is there some way I can use something like 'delete and close gap' without making all the other tracks move as well? I think it might've been like ripple delete back in the older versions of Premiere if I remember correctly.

    Xebarsus
    Whenever you are adding clips to the Timeline, try holding down the Alt key of the computer main keyboard to avoid disturbing the existing Timeline content including splitting of audio.
    Have you tried right clicking the Timeline file for deletion and selecting "Delete" instead of "Delete and Close Gap" and then use the Alt modifier as you drag the clip(s) around with the mouse cursor?
    Please give all that a look and let us know the outcome? But that Alt Key maneuver should work for you as it has for many others.
    Thanks.
    ATR

  • Need a script to delete files

    Hi
    Can someone advise me on how to create a script to delete certain files from a users home account at logout?
    The files that I want deleting are .plist files in there ~/lib.../preferences folder, this is so I can ensure that all users will have the same settings for certain files next time they login again.
    Thanks

    That being said, if you you still really want to do this you can create a logout hook and write a shell script to remove the files.  See "About Daemons and Services", Appendix B on writing a logout hook.
    But a far easier way is to create Account's login item that will cause a shell script to be launched to delete the files.  You can encapsulate the shell script so it runs as an application that can be added to the Login Items.  One such encapsulator is Platypus.
    Note, rather than delete them, if you want to ensure all the specific plists have specific settings, then create a master set of them and copy the master set into the Preferences directory (being careful to observe ownership and permissions settings of course).

  • Is there a script available to make an alternate size layout of a book?

    Hello:
    I was referred to this forum from this thread: How can I export a pdf of an InDesign alternate layout from a book?
    I have a book that is in a 6×9″ layout and I would like to make an alternate layout of the same content for 8.5×11 (and other formats).  I found out that I cannot create an alternate layout in a book and export just the layout, without including both sizes; I have to create a whole new set of book files.  Is there a script that can do this or at least do some of the heavy lifting?  It will need to take the current 6x9" format and make it 8.5x11" and also adjust the text frames for the larger size pages.
    Thanks for any help!
    Kevin

    Hi,
    I suggest looking here:
    http://gallery.technet.microsoft.com/scriptcenter
    It's highly unlikely that you'll find something pre-written that will meet all of your requirements, but there should be enough in the repository to give you a starting point.
    EDIT: If you're looking for someone to do all the work for you, you can try posting a request here:
    http://gallery.technet.microsoft.com/scriptcenter/site/requests
    I have no idea if anyone ever goes through these requests though (I know I don't).
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Is there a script to change paragraph style based on even/odd page

    Is there a script or way to have paragraph style change between 2 styles based on the text being on an even or odd page? 

    @JustMikey – as I understand your task, the problem has nothing to do with "special" paragraph styles, but (nearly) all with anchored objects (the images and parts of the gray bar) and appropriate margin settings.
    Just see the following IDML file I exported from InDesign CS5.5:
    Dropbox - ImagesAwayFromSpine-CS5.5.zip
    ImagesAwayFromSpine-CS5.5.zip
         ImagesAwayFromSpine-CS5.5.idml
         080731_Manchester-xxl_Grau.tif
    Of course you could add paragraph styles to format the data automatically or optimize in other ways.
    That's up to you. But you can see the principle:
    Inspect the Anchored Object Options for the image and the gray bar. Also the frame fitting options for the image.
    Note: See also the margin settings, that are not exactly mirrored on even and odd pages (for good reason).
    Uwe

  • Placing scripts into specific frames

    Hello,
    I am using Flex Builder 2 to create classes, leaving my FLA file void of scripts.
    I wish to extend a MovieClip class so that my new class would dispatch a specific event everytime it reaches the last frame.
    I could do this using an ENTER_FRAME listener which would launch a function call to see if the current frame is actually the last one, but I don't wish to do that and drop lag down my users' throat. I would rather prefer adding manually "endSequence()" to all of the animation sequences using Flash... which I really don't want to be doing as it would make updating very bothersome.
    Is there a way to add a script to a frame programmatically so I don't have to use Flash to add bits of script to the last frame of each of my concerned MovieClips?
    Thanks in advance,

    Great! Thanks for the tip! Didn't find it in the Language Reference, but found the necessary synthaxe on:
    http://74.125.113.132/search?q=cache:QWuOfC-AvusJ:www.kirupa.com/forum/showthread.php%3Fp% 3D2098271+addframescript+as3&cd=1&hl=en&ct=clnk&gl=ca

  • Deleting frames with UPK developer client 12.1.0.1

    when deleting frame(s) with UPK client 12.1.0.1 (or 12.1), it does not give you a warning message to confirm if you want to delete the frame. Is there a setting for this I am missing or it is by design?
    thanks and regards,
    SD

    Software is working as designed.
    https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-state=14r3lib0kb_4&_afrLoop=546636018391066#GOAL

  • Powershell Script to delete ADComputer Accounts

    Hi There,
    I have this script which deletes a computer account from AD if found but my problem now is it throws an error " Cannot find an object property " if the account doesnt exist. I read somewhere of using the try catch and others saying its not
    advisable within a if else block.
    Any help will be appreciated. Thanks
    #Script to Delete Computer Accounts.
    $CptName = Read-host "Which computer accounts do you want to delete"
    #Get-Adcomputer $CptName
    If ($cptName -eq $Null)
     Write-Host " This accounts does not exist " 
    Else
     Remove-ADComputer -Identity $CptName
     Write-host "This computer accounts has been successfully deleted"

    Thx for the help link.
    Finally got it to work by using the try catch
    Code is:
    try
       $CptName = Read-host "Which computer accounts do you want to delete"
       Remove-ADComputer -Identity $CptName
       Write-host "This computer accounts has been successfully deleted"
    catch
     Write-Warning " This accounts does not exist " 

  • Is there any way to delete duplicate files en mas within the new itunes program?

    I've just installed the new itunes program on my laptop. I used the scan for media option to find music. Problem is almost every entry and there's several hundred of them is duplicated and in some cases triplicated within the itunes media library.
    Question ... Is there any way to delete duplicated files en mas withing the itunes library folder?
    Please don't tell me that I'm going to have to do it individually as that may take days.
    Thanks

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning
    to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • Deleted Frame, never closed iMovie, nor finalized, but cannot get it back....

    Help!!
    My wife was editing a project on iMove '11, and deleted the last frame, which was a picture, rolling credits and music, along with a dozen or so other frames, beginning with this, the last frame, and working back towards the beginning.  She never closed the program, not finalized anything, but when doing control Z to undo each detetion, they all came back, with the excepion of the very first one deleted, which would have been the last frame of the imovie project.
    How can we get that back?
    We have not closed iMovie, not done anything overtly to finalize the project.
    Please advise as to how to recover the rest of the movie, or if there is some way to quit the whole thing, such that it will revert back to the unedited complete version.
    Thank you!!

    I realize that, however, that would not solve, nor explain the fault found with iMovie, and would require one to basically keep an external drive attached to my macbook pro 24/7, while doing continuous and instan time machine backups.  There are many easier ways to prepare oneself in advance of these issues happening, which would be much less cumbersome than the above, however, my post was not about this, but about the functionality, or lac thereof, of iMovie, in this situation, and my attempt to see if I was missing some other avenue to recover (or undo) these changes.
    Clearly, had I made a copy of the project, and then worked with the copy, this issue would not have been anything more thn a minor inconvenience, so it's really our "fault" for being in this situation.
    What troubles me more than our own foolishness is Apple's continued stance that their products, be it hardware or software, never fail, and never have issues or bugs.  And that whatever is found on the internet, no matter how prevelant, is BS, most likely a "conspiracy" by some nefarious folks looking to sully the good name of Apple, and even more amazng is that none of the sr. technical advisors have "never heard of this", so I guess Apple must filter out anything negative on the internet, nor let them view these very forums.
    As are seemingly most photo and movie professionals I work with in California, I am so fed up with Apple that I am looking at going back to PC based systems, and Microsoft based software, to process our workflow.  Apple has clearly thrown the professionals under the bus, at least in my opinion.
    If anyone else has anything to offer, other than to use a back up copy of the project, in order to allow us to recover the deleted frame, I would appreciate it.  In the intermin, we will simply have to recreate it.
    Thank you to all who take the time to read and attempt to help us.
    And good luck in all your Apple related endeavors.....I hope your such problems are few and far between!

  • Script to delete all attachments

    Hi all
    I was wondering whether there is a script to delete all of the attachments in a pdf form? I know that you can use removeDataObject to delete specific attachments by name, but was wondering whether there was a simple way to delete all of the attachments in one hit?
    Cheers
    Mark

    You just need to loop through the dataObject.
    // DUMP ANY ATTACHMENTS
    var d = event.target.dataObjects;
    if (d != null)
    for (var i = 0; i < d.length; i++)
    // console.println("Data Object[" + i + "]=" + d[i].name);
    event.target.removeDataObject(d[i].name);

  • How to write script to delete contact?

    For some reason, my exchange services repeatedly creates a contact in my address book. I don't know how to stop it. Instead I think I'll just schedule a script to run every 5 minutes to delete this contact.
    How do I write a script that deletes a contact that matches a certain email address and that the first name and last name fields are empty?
    Thanks!!

    Given a choice between deleting a contact every five minutes — which gains little for the resources and effort involved — or ignoring the contact that's getting added, or figuring out what's adding the contact, I'd look to figure out what is adding the contact. 
    What software is being used to manage contacts?  Is there Exchange Server and maybe Outlook in use?  Or are some other local tools to manage contacts?  Any particular contact?  Maybe this discussion might help?
    That written, there are various AppleScript scripts around that work with the Address Book; here's one, and here's another.  (How this works depends on what tools you're using here; Outlook, or the Apple Address Book / Contacts app, etc.)

Maybe you are looking for

  • System Information Not Working Correctly

    I have a MacBook Pro Retina 15" (Mid-2014) running OS X 10.10 (Yosemite).  When accessing the System Information utility, details about the hardware does not show up correctly or not at all.  This only happens when accessing System Information using

  • Purchasing Document cannot be released Urgent ?????

    hi when i try to unrelease the PO thru Txn ME29N the system gives the said message Purchasing document 4800003821 cannot be released     Message no. MEPO823                           even when i enter the po no it on starts give the message wat may b

  • Podcasts "episodes to keep" not working...

    I cannot get the "episodes to keep" in my Dave Ramsey podcast to stick. I have keep the last 3 episodes but it keeps them all. I have to manually delete the 4th upon completion of the most recent one downloaded. What am I doing wrong?

  • C++ Code in kernel modules

    Is it possible to load kernel modules into Solaris that contain C++ code? If so, what compile/linker options are required to make this happen? Thanks. Fred

  • Where is the Share button on Maps to send a map to my iPhone?

    Where is the Share button on Maps to send a map to my iphone?