Import an image with a different top-level folder but the same folder structure

Hi all

I am trying to write a script that can add a picture to a location to save the current image.

So, if the file is hosted at:

\\10.41.15.75\Photostudio_Primary\ON01\ON012954\ON01386005\stills\054.jpg

I would like the script to run on the image and the image is added to

\\10.41.15.75\Photostudio_Secondary\ON01\ON012954\ON01386005\stills\054.jpg


the top layer.


I looked in help to find and replace functions, but I got nowhere, someone at - it advice?


Thank you!

It work?

2015, use it at your own risk.

#target photoshop

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

myDocument var = app.activeDocument;

var theFiie = String (myDocument.fullName) replace ("Photostudio_Primary", "Photostudio_Secondary");

If (queue (theFiie) .exists == true) {}

var theLayer = placeScaleRotateFile (theFiie, 0, 0, 100, 100, 0, true);

}

};

place.

function placeScaleRotateFile (file, x_offset, decalage_y, theXScale, theYScale, theAngle, related) {}

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

var idPlc = charIDToTypeID ("Plc");

var desc5 = new ActionDescriptor();

var idnull = charIDToTypeID ("null");

Desc5.putPath (idnull, new (file));

var idFTcs = charIDToTypeID ("CIE");

var idQCSt = charIDToTypeID ("QCSt");

var idQcsa = charIDToTypeID ("Qcsa");

Desc5.putEnumerated (idFTcs, idQCSt, idQcsa);

var idOfst = charIDToTypeID ("Ofst");

var desc6 = new ActionDescriptor();

var idHrzn = charIDToTypeID ("Hrzn");

var idPxl = charIDToTypeID ("#Pxl");

desc6.putUnitDouble (idHrzn, idPxl, x_offset);

var idVrtc = charIDToTypeID ("Vrtc");

var idPxl = charIDToTypeID ("#Pxl");

desc6.putUnitDouble (idVrtc, idPxl, decalage_y);

var idOfst = charIDToTypeID ("Ofst");

Desc5.putObject (idOfst, idOfst, desc6);

var idWdth = charIDToTypeID ("Wdth");

var idPrc = charIDToTypeID ("#Prc");

Desc5.putUnitDouble (idWdth, idPrc, theYScale);

var idHght = charIDToTypeID ("Hght");

var idPrc = charIDToTypeID ("#Prc");

Desc5.putUnitDouble (idHght, idPrc, theXScale);

var idAngl = charIDToTypeID ("Marko");

Bryan var = charIDToTypeID ("#Ang");

Desc5.putUnitDouble (idAngl, Bryan, theAngle);

If (related == true) {}

var idLnkd = charIDToTypeID ("Lnkd");

Desc5.putBoolean (idLnkd, true);

};

executeAction (idPlc, desc5, DialogModes.NO);

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

Return app.activeDocument.activeLayer;

};

Tags: Photoshop

Similar Questions

  • Different codes for different - looking of table (but the same memory-wise)

    (I've posted something similar here as well, but it's kind of emergency):
    http://www.Java-forums.org/advanced-Java/40756-HashMap-treating-isomorphic-but-different-objects-same-key.html)

    Hi all

    I am trying to program the Reversi game on my computer and I represent the game like a lookup table tree using a hash table.
    Any available to the Commission is represented as an int. [8] [8]. The hash table takes a configuration of the Board of Directors as a key, and is meant to restore an object that contains information about the possible move.

    But I have a problem. Suppose I have a Council (4 x 4 for readability):

    Code:
    Board of Directors of int [] [] = {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0}};

    And suppose that it gives a hash code of say "1607178090".

    Then, when I change the Council;
    Board = {{0,0,0,0}, {0,0,0,0}, {1,1,1,1}, {1,1,1,1}};
    I want the hash to be different code, then my hashMap will recognize it as a different Board.


    ---

    I tried to make a Matrix object and dominant equals and hashCode, but I'm not sure what to change. The Java API says that the hash code for the tables is based on the content, even if the following code renders the same code to hash twice. I don't really understand this:
    int [] a1 = {0,1,2};
    System.out.println (a1.getHash ());
    A1 [0] = 1;
    System.out.println (a1.getHash ());




    Moreover, my Matrix class is:
    to import java.util.Arrays;

    public class {Matrix
    public int [] [] Council;
    public matrix()) {}
    }

    {public matrix (int [] [] b)
    Board = b;
    }

    @Override
    public int hashCode() {}
    first final int = 31;
    int result = 1;
    System.out.println ("based hash code calculation on :"); ")
    first = result * result + Arrays.hashCode (board);
    for (int c = 0; c < board.length; c ++) {}
    for (int r = 0; r < board.length; r ++) {}
    System.out.Print(""+Board[c][r]+"");
    }
    System.out.println ();
    }
    System.out.println ("return" + result);
    return the result;
    }

    @Override
    public boolean equals (Object obj) {}
    If (this is obj)
    Returns true;
    If (obj is nothing)
    Returns false;
    If (getClass()! = obj.getClass ())
    Returns false;
    Matrix other obj = (matrix);
    If (!.) Arrays.Equals (Council, other.board))
    Returns false;
    Returns true;
    }
    }

    Published by: 845707 on 19 / mrt / 2011 02:20

    845707 wrote:
    I don't really understand this:
    int [] a1 = {0,1,2};
    System.out.println (a1.getHash ());
    A1 [0] = 1;
    System.out.println (a1.getHash ());

    Me neither does table have a method called "getHash();" these days?
    In case you meant hashCode(), what you call it is hashCode() of the object, which would remain the same for the object during its lifetime.

    In your example code you use correctly Arrays.hashCode (), then why did you write an example that does not represent your actual code?

  • Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Try resetting the PS preferences - Preferences in Photoshop

    ~ Rohit

  • Top-level folder to achieve error

    Please help ~.

    This problem comes from the external hard drive having changed its name to have a capital letter. Now I have the drive appears twice.

    I'm trying to solve this problem in d - find the top level folder on the drive that the community suggested to other users. However, I can't yet see the top-level folder in Lightroom and Lightroom can not access to, or indeed anything import of this top-level folder. I get this error message when you try to "show the parent folder."

    Database "/ Volumes/Lacie Archive/Lightroom/Everyday/Everyday.lrcat ': failed the UNIQUE constraint: AgLibraryFolder.rootFolder, AgLibraryFolder.pathFromRoot

    Statement: UPDATE AgLibraryFolder SET rootFolder =?, pathFromRoot =? WHERE id_local =?; (error code 19)

    Imports from upper level never full file, no error message. This means that I can't end up having all the pictures in the top-level folder and so see the folder.

    The files in the subfolders are all fine and available, unwearable.

    Help is greatly appreciated.

    I think it's fixed now. Without a function "update drive location", the following video explains a work around:

    Drive hard same Lightroom appears twice - how fix - YouTube

    Please Adobe, built in features to help prevent and resolve this kind of scenario. Thank you ~.

  • 6 of Lightroom cannot read my Canon 5 d Mark III photo files, the import message I received: the following files were not imported because they could not be read. I use the same camera that I used Lightroom 5 with the same cards Compact flash.

    6 of Lightroom cannot read my Canon 5 d Mark III photo files, the import message I received: the following files were not imported because they could not be read. I use the same camera that I used Lightroom 5 with the same cards Compact flash. The files are: DK5A0243. CR2

    Lightroom 6 trying to copy pictures to a different directory than what is Lightroom 5. That's why you have the problem.

    You can change the directory where you are teaching LR 6 to place photos, or change the permissions on this directory to read & write.

  • Adobe flash is updated, but firefox says its not installed and install. Flash does not work in sites using Firefox, but the same read in IE or Google chrome sites work with flash

    Adobe flash is updated, but firefox says its not installed and install. Flash does not work in sites using Firefox, but the same read in IE or Google chrome sites work with flash. I use a dell high spec, less than a year using windows 7 Home premium processor Intel (r) Pentium (r) CPU P6100 @ 2.00 GHz, 1999 Mhz, 2 Lossnay, 2 logic and McAfee Firewall and AV processors

    Thank you so much for pointing me in the right direction... Unfortunately, the link does not work but I bypassed using a part of the link, I did a search on google and found the plugin here. Adobe.com/Get/flashplayer/Current/install_flash_player.exe

    Thank you so much,.

    Johnny 777777

  • McAfree and Avast, do do different things or r they the same.

    they do different things or r they the same.
    I have them both running
    I hope that's not causing internet problems

    Do not use both. Uninstall one. You only need an AV program

  • I just changed my internet provider and can connect with two of our cell phones, but the third said no identified network/no access to the internet.

    I just changed my internet provider and can connect with two of our cell phones, but the third said no identified network/no access to the internet.  I tried all of the obvious solutions.  Windows 7

    Original title: unidentified network

    Hello

    Thanks for choosing Windows and thank you for providing an opportunity to help you.

    According to the description, you are having problems with the unidentified network error message.

    Perform the steps from the link below and see if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/network-connection-shows-that-it-is-connected-but/52e60042-2666-4EAF-80be-193b26db10be

    Answer to us if you are having problems with the unidentified network or any other issue of Windows, and we would be happy to help you.

    Good day!

    Hope this information helps.

  • Sales order form, line status code is displayed as "WITHDRAWN". but the same code appears as "AWAITING_SHIPPING" for the same line in the database. can you please explain, where the value in frontend comes? It differs from the flow_status_code in oe_or

    Sales order form, line status code is displayed as "WITHDRAWN". but the same code appears as "AWAITING_SHIPPING" for the same line in the database.

    Where the value in the frontend is filling?

    It differs from the flow_status_code in oe_order_lines_all?

    Thanks for the correction.

    He slipped right out of my mind!

    Here is a detailed explanation of this case:

    Status of orders picked and picked partial

    Kind regards

    Bashar

  • Being new to such things, I designed a web site to read on a computer. If I make a Tablet and a mobile design I need different URLS for them on the same site or the devices will be able to open those instead of the computer?

    Being new to such things, I designed a web site to read on a computer. If I make a Tablet and a mobile design I need different URLS for them on the same site or the devices will be able to open those instead of the computer?

    Muse deals, each device uses the correct layout. You n ' to do anything, except to create the respective pages.

  • Pools of multiple connections to the same physical Structure with SPR

    I use OBIEE 10.1.3.4 and have multiple physical databases that contain the exact same structure. Instead of creating the same physical structure in the RPD file with their own pools of connections, I would like to have a physical structure with multiple connections pools. I have this Setup, however, I can only see the data of one of the physical databases by using the right click, view data... option in the physical appearance of the RPD file. I searched and could not find a solution to my particular problem. Can someone point me in the right direction?

    Goal is to get the CPs separated... and then, you can use two data. But better to have 2 separate objects.

  • How can I import an image with transparent background .png in the Vision Assistant?

    Hello

    I am using the Vision Assistant of NOR. Here, I want to overlay one existing image with another. Therefore, I use the overlay Installer where can I import a .png image. If I do, I don't get

    the transparent background of the back of the image, even, I was saved with a transparent background. The image is displayed with an orange background.

    If I import the same image to any front panel for example, I see the picture on the right path with a transparent background. What I've done wrong? I have attached the image I want to use.

    Thank you

    Hello! Don't know how to do this in the Vision Assistant. Try to use the overlay (bitmap) or convert your image into mask. Effect of transparency not supported in the Vision. What you can do in LabVIEW is something like this:

  • Import of images with the folder structure

    Hello

    I want to import images into Lightroom that are on my hard drive but keeping the existing folder structure.  When I try this, even if I check include subfolders, import images, but everything in the parent folder - all subfolders are ignored.

    Is there a way to get around this?

    Thank you very much

    You select 'Add' at the top of the import dialog box when you import?  Which preserves the folder structure by adding them to the Lightroom catalog on the spot.

  • How to set up a "double/mirror vision" with a different zoom level?

    Hello Photoshop gurus,.

    I constantly continues to zoom in and out the same images. It drives me crazy to see in normal zoom level and zoom in pixel deep.

    Is it possible then that I a floating/view duplicate of the window that shows the real-time editing of an image to a zoom level different? (Think of it as a mirroring of the display, but I'm trying to mirror the same document at a normal zoom level).

    It's my scenario:

    -J' have usually small images/icons work.

    -J' have deep zoom in on an image at the pixel level ~ 3000%.

    -Change some pixels and do editing

    -Zoom out to 100% to see what it looks like normally.

    -Repeat and repeat.

    I always have a 100% zoom view along the coast of the same document?

    Thanks for your help.

    PHOTOSHOP CS5 Mac Snow Leopard

    That's what's window-> help-> new window for.

  • Image with link in Firefox features, half of the image/link is active in Chrome, image/link in Safari

    I have a page with links to nav 2 from 2 different images. 1 image / link works well with Firefox, Chrome and Safari. The other image / link works well with firefox, only half of the image is active in Chrome and none of the image is active in safari. Fine links documents extraction. I replaced the image, the container as well as relinked. The result is the same. Can someone please? Here is a link to my site (current) PikiPiks: critical film the first 2 images in the left column are currently linked. The first image / link for "From Kiki's Delivery Service" is the problem.  Thank you! MacOS 10.9 / Dreamweaver CS6

    Delete the empty apDiv7 after your tag.

    In this case, apDiv7 has a higher z-index and covers some of the other items on the page, so clicks will this empty layer instead of the links below.

    Some browsers allow you to better guess what you will do when they run into errors like this, looks like Chrome is less forgiving in this situation.

    Also, look at using css floats, margins, and padding to position elements, rather than position: absolute, you are likely to encounter more problems if you continue to use the APDiv button.

Maybe you are looking for