How to:  using the Place command in an action and remembering the source filename...

I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
For each photo, I want it to have the same background.  If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder.   (I have the original file somewhere else, and am working with an intermediate copy).
But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name?  Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’.  Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
Thanks in advance for your help!
Jerry
PS - I have no scripting experience in PS, but have written code in other applications/scenarios. 

Actions don't have access to the document name (where the file name is).  Scripts do, however.
If your products are sequentially numbered, you're in luck.  You can overide the "Save as command" and make sure that your naming uses a sequence which you can set to the same starting number as your product. Here is an example of how to configure File -> Automate -> Batch (assume the set and action are your hand built one)
Instead of "Document name" you'd type "PRODUCT_" per your example and choose a 3 digit Serial number.
The "Starting Serial #" is where you can change if your products are numbered say, 101 and up.

Similar Messages

  • How to:  using the Place command in an action and remember the correct source filename...

    I have a large set of product, architecture, and other subject-specific photos, that I’m preparing for a new website; all to be placed in various galleries.
    For each photo, I want it to have the same background.  If I were doing this manually, I would simply “place” the subject photo into the background, and save it – back to the original photo name.
    In other words, doing this manually, PRODUCT_001.TIF gets placed into STANDARD_BKGRND.TIF, (thereby automatically correctly sizing and centering it), and then saving the result back to PRODUCT_001.TIF; either overwriting the original, or into a new folder.   (I have the original file somewhere else, and am working with an intermediate copy).
    But since I have several hundred photos, how do I create an action (and really – a droplet) that will save the resulting file to the desired name?  Typically placing photo ‘PRODUCT_001’ into photo ‘B’, alters photo ‘STANDARD_BKGRND’, so I can’t save the result back to ‘PRODUCT_001’.  Said differently, in a droplet, each time it's run saves the result back to the same filename 'STANDARD_BKGRND'.
    The end result – I want to apply that droplet to all the PRODUCT_***.TIF files in a given folder, and end up with the same file names as before.
    Thanks in advance for your help!
    Jerry
    PS - I have no scripting experience in PS, but have written code in other applications/scenarios.

    Its great that your products are cutouts layers,  Its easy to put cutouts on backgrounds and even add layer style to the product layer to enhance the composite. Still cutouts have size and resolution as  do your background images. 
    When you make composites. A document that is place in or pasted into the current document will be resample to match the current documents DPI resolution to preserve the size of the document being place or pasted in size.
    Additionally if your using place if the document being placed in does not fit within the current document's canvas size. Photoshop may scale the image to fit within the canvas.  It depends on your user id Photoshop Preference setting.
    That means you need you handle the sizes involved.
    I would think that you would want the final composite to be the size of the background image.
    You need to know its size and dpi resolution.  You must use image size on your product image and make the image have the same dpi resolution and a size smaller then the background image.  Perhas they have the same dip resolution as the background and are smaller in size. If that the cast their size are good no image resize  is required,
    Then you need to use canvas size to make the document have the same size and resolution as the background image.
    You may want to center the product layer over the canvas however Canvas size will add canvas evenly around the produt layer's layer bounds when you leave the anchor point in the center. 
    When you then place in the background image it will not be resampled for it has the same dpi resolution as the current document and it will not be scaled for it is an exact canvas size fit.  All that remains to be done is  move the current placed layer below the  product layer 
    The document name is the product image file name opened by you or by Photoshop automate batch process.

  • Search-Mailbox not attaching the infected emails in target folder and deleting the contents in exchange 2010 & 2013 coexistence

    Dear All,
    I have an issue with deleting circulated spam emails in my environment through search-mailbox
    We have Exchange 2010 & 2013  CU5 environment 
    I followed the search and destroy document for exchange 2010 
    http://windowsitpro.com/exchange-server-2010/search-destroy-email-content-exchange-2010
    Added the user to Discovery Management group
    Created a new role group as below 
    New-RoleGroup "Mailbox Import-Export Management" -Roles "Mailbox Import Export"
    Add-RoleGroupMember "Mailbox Import-Export Management" -Member Administrator
    I ran the below commands
    Search-Mailbox -Identity "[email protected]" -SearchQuery "Subject:'report'" -TargetMailbox "Administrator" -TargetFolder "Filter" -LogOnly -LogLevel Full
    The above command gets completed successfully and sends the log report  however im unable to see any attachments
    Similarly the deletecontent also gets completed successfully and logs result. But it does not delete the infected emails 
    Search-Mailbox -Identity  "[email protected]" -SearchQuery "Subject:'report'" -TargetMailbox "administrator" -TargetFolder "filter" -deletecontent -LogLevel Full
    Any idea why it is not fetching the infected emails in zip file and why it is not deleting but it is able to log in the target folder 
    Any help much appreciated
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish (MVP)

    Hi All 
    I managed to find the solution. Below command helped me in solving the issue 
    get-mailbox -ResultSize unlimited -IgnoreDefaultScope | search-mailbox -SearchQuery ‘Subject:"virus infected"’ -LogOnly -TargetMailbox administrator -TargetFolder filter -LogLevel Full
    get-mailbox -ResultSize unlimited -IgnoreDefaultScope | search-mailbox -SearchQuery ‘Subject:"virus infected"’ -TargetMailbox administrator -TargetFolder filter -deletecontent -LogLevel Full
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • [AS] Using the "place" command?

    Hi
    Im trying to place a illustrator eps onto the second page in my document, but the "place"
    command doesn't seem to work, I see other people are having issues with getting it to work also,
    is their a sure fire way to make it place the requested file?, if so what would it be, ive tried all sorts of combinations,
    all of which fail, with (most of the time) ID doesn't understand the "place" command?, I have seen
    that you can call a javascript that will do this but I know zero about javascript, any help welcome.
    tell application "Adobe InDesign CS3"
    activate
    set myFile to "Macintosh HD:Users:PATH TO EPS"
    tell my document
    place alias myFile --on page 2
    end tell
    end tell
    Cheers
    Kev
    ID CS3 - Applescript

    You need to have a picture frame to place the art onto. You should label the frame. Then you can use the command"
    place alias myfile on page item "box" of page 1 of document 1
    Or if you don't want to use a labeled box, you can do something like this:
    set myFile to choose file
    place myFile on page 1 of document 1

  • How do I set the default file path for the Place command?

    I keep my graphics files for each document in a particular folder. Every time I open an existing InDesign document and place a new image I have to browse back to that location - even though all of the previous images in that document came from the same folder. InDesign does not remember the file path that was used previously in the document. This is very annoying.
    IS THERE A WAY TO SET THE DEFAULT FILE PATH, OR LOCATION, FOR IMAGE FILES?
    I have looked through the preferences, searched the forums and internet, but I have not found any reference to setting default paths. Is there a setting like the one in MS Word called "File Locations" on the Options toolbox?
    Thank you.

    Since you're working in ID on Windows, you can take advantage of a neat trick in Windows. Copy the file path out of the File Explorer address bar and paste it directly into the Place filename field. That will jump you directly to the desired volume. For example, let's say I want to place a graphic located at X:\PS Jobs\May PS\709672bp\Working Source Files\Links. I copy that entire path from the File Explorer address bar, go to InDesign, select File|Place, and press Control + V to paste that path into the filename field. I press the Open button and Shazam! I'm there instantly, without a bunch of navigation.
    You can do the same thing in the File|Save As and File|Export fields. Let's say you want export a PDF file from InDesign to the volume X:\PS Jobs\May PS\709672bp\Working PDF Files. First copy the desired file path from the File Explorer window. In InDesign, select File|Export, click anywhere in the filename field, and press the Home key to move the insertion point to the front of the filename. Press Control + V to paste that path in front of the filename, then add the backslash character (\). The filename will now look like this: X:\PS Jobs\May PS\709672bp\Working PDF Files\Filename.pdf. Press the Save button to bring up the Export Adobe PDF window. Select your desired PDF preset, press the Export button, and the PDF file will magically appear in the desired volume.
    This sounds really complicated, but it's not. In practice, it only takes a few seconds. I probably save an hour's worth of needless navigation every day with this technique.

  • How to use this backup command

    I am learning about solaris backup, I found three useful backup command, I am confusing about them, can not find
    explanation on the man page
    ufsdump 0f - / | ( cd /cop/0 ; ufsrestore -rf - )
    ufsdump 0f - /export/home | ( cd /cop/7 ; ufsrestore -rf - )
    installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0
    I try first two commands, they are works, my questions are,
    1 The hyphen dumps the data to standard output, what is the standard output?
    2 why use the ufsrestore -rf -
    3 when I finish the first command, there is nothing record in the /etc/dumpdates, why?
    4 it seems they are useful to copy from disk to disk, but , when I restore data,
    will I use the command ufsrestore as usual?
    5 currently, in the real world, what kind of backup command do you use in your
    company? Because many books give me command of backuping data to tape,
    are you still using tape nowadays? or do you backup data to hard disk instead of
    tape?
    appreciated for any help, thanks
    Edited by: user8117130 on Jul 2, 2011 9:14 PM

    Where to begin..
    Well, question 1 and 2:
    The commands you found are commands which were used to copy the entire root disk, as well as the partition /export/home to a new disk.
    Apparently the person who first used them had a new harddrive, which he (or she) partitioned and mounted under /cop/ . He (or she) then copied all the data from the / and /export/home partitions to the new disk.
    Hence the use of ufsrestore.
    There are two outputs, standard output (also referred to as - or STDOUT) and standard error.
    Any normal output from any command (such as 'ls') is sent to STDOUT . You can redirect data from STDOUT to a file by using >, i.e:
    ls > /tmp/output.ls
    STDERR is where error messages go.
    Apart from STDOUT and STDERR you also have something called STDIN (or Standard Input), which is used to feed data to a command.
    Just as you can use > to send STDOUT, you can use < to send STDIN, i.e:
    cat < /tmp/output.ls
    In the example you posted with ufsdump/ufsrestore the use read the content of a partition with ufsdump, then send it through a pipe to ufsrestore, which writes it down at a different place. The result is that the user gets a copy of the / disk under /cop/0 .
    As such thats not a backup command, its a way of copying a disk.
    Question 3:
    Because there is no 'u' option, to update /etc/dumpdates you need to use the u argument to ufsdump, in your example:
    ufsdump 0fu - /
    Question 4:
    Well. There are two ways to do a ufsdump to a disk, one way is to do it the way you did it, by piping it to ufsrestore. In that case you can't restore your files using ufsrestore, since they are already copied to the disk.
    The second way to use ufsdump to a disk is to write the entire dump to a file, i.e.:
    ufsdump 0fu /path/to/ufsdump_of_root.dmp /
    Then you can restore a file using ufsrestore, to use an interactive restorer:
    ufsrestore fi /path/to/ufsdump_of_root.dmp
    Question 5:
    Most companies i have worked at uses a mix, some backups are written to disks and some to tape. In particular the short term backups (in the time frame one week to one month) are disk based and everything else (one month to ten years) are tape-based.
    But it really depends on what kind of data it is and what legal requirements you have. If you have to store data for a few years disk backups are not really an option. The benefits of tape backups are that they are quite fast (in particular LTO5), they don't really consume any electricity and you can easily enlarge your archive by buying more tapes.
    I once calculated how many harddrives i would need to store 10 years of backups online. I don't remember how many harddrive i needed (but it was 100TB +), but it would require about 10-15kW of electricity...
    Harddisk backups was popular a while ago, but i think tape is coming back, at least thats my impression.
    .7/M.

  • How to use ls-l command in SAP ??

    Hi,
    can any one suggest how to use ls-l command of unix in sap to get the details of file like creation date,etc.
    Thanks.

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • Scripting to load all pdfs in a month into the place command?

    Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be nice to load the place tool with all the pdfs I have done with a set date range and then just place them accordingly. Is there something out there like this and/or am I missing something obvious?
    Thanks!
    B

    IM Sorry tomaxxi, am I suppose to be inputting something somewhere here in
    regard to the dates? I would need an example like for lets say the month of
    Nov. I try to paste this and save it in the script editor but it keep
    saying that the file cannot be saved. Any ideas? Please bear in mind your
    speaking to a guy who has like zero knowledge when it comes to scripts.
    Best regards,
    Robert
                                                                                    From:       tomaxxi <[email protected]>                                                                               
    To:         Robert Borchardt <[email protected]>                                                                               
    Date:       11/08/2010 03:29 PM                                                                               
    Subject:    Scripting to load all pdfs in a month into the place command?                                                                               
    Sorry for delay...
    I just tested script and it's working fine for me here.
    I created 4 sample PDF-s with just one page, then started script,
    selected exported PDF-s, script sorts them by creation date and loads
    placegun.
    So, all you need to do, is to start script and select documents you want to
    place.
    I changed script little, so make sure you use this one:
    if(app.documents.length != 0){
        var myFiles = File.openDialog("Select Files:", "*.pdf", true);
        if(myFiles != null){
            myFiles.sort(function ( a, b )
                    if ( a.created < b.created )
                        return -1;
                    if ( a.created > b.created )
                        return 1;
                    return 0;
            app.activeDocument.place(myFiles);
        }else{
            alert("No files selected!");
    }else{
        alert("No documents opened!");
    tomaxxi
    http://indisnip.wordpress.com/

  • How to use "Open Stream" command?

    How to use "Open Stream" command in the iTunes application.

    File > Open Stream > Enter a URL > Click OK > Listen. Obviously the URL needs be a valid media source like an mp3 file or a streaming radio station.
    tt2

  • How to use Operating System Commands while using define in sqlplus

    How to use Operating System Commands while using define in sqlplus . The Host OS is Linux
    define report_name=PROD_${host date "+%b"}.html
    The above is not working.
    The output should be 
    define report_name=PROD_JAN.html
    Regards,
    DB

    of course I was talking nonsense: the problem here is the mixing of bind variables and DEFINE variables.
    With the following changes the script should work (the conditions for begin_interval_time are perhaps not what you want):
    variable snap1 number
    variable snap2 number
    variable rptname varchar2(20)
    begin
    SELECT min(snap_id) into :snap1 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    SELECT max(snap_id) into :snap2 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    end;
    col file_name_value new_value report_name noprint
    select 'PROD_'|| to_char(sysdate,'MON') || '_' ||  to_char(sysdate,'DD') file_name_value  from dual;
    define  report_type  = 'html'
    define num_days=2
    define begin_snap=:snap1
    define end_snap=:snap2
    @@?/rdbms/admin/awrrpt.sql

  • Hello! I have a macbook air and my apple ID is using my old email that I don't remember the password to. I want to switch it to my most recent email. How can I do this?

    Hello! I have a macbook air and my apple ID is using my old email that I don't remember the password to. I want to switch it to my most recent email. How can I do this?

    Change your old Apple ID using this link:
    https://appleid.apple.com/
    Click the blue Manage your Apple ID button.
    Its password is unrelated to the password you use for the email associated with it.
    If you don't remember the Apple ID password, click the Reset your password link.
    I already have a new apply id that is set on my phone and ipad. I just want to switch it to that one...
    You cannot change your Apple ID to another one that is already in use - in this case, the one you created for your iPnone and iPad. Decide which Apple ID you want to keep. If you need to change it, change it - don't create a new one.

  • The place command in Bridge14, not link to photoshop14?? anyone help me

    The place command in Bridge14, not link to photoshop14?? anyone help me

    Do you have a Sony Vaio?  Many Vaio owners have seen this exact problem. There is some Sony media management software often preinstalled on Vaio systems that causes a conflict with iTunes saving its library database file.  See this Apple support article:
    http://support.apple.com/kb/TS2715
    and Redkeefy's post in this thread:
    http://discussions.apple.com/message.jspa?messageID=8537277#8537277
    It's not impossible that other media software on other systems might cause the same problem, though I haven't heard of any specifics.
    Regards.

  • My Mac has lost the keyboard command to zoom in and out (Apple/shift/ /-)  How can I restore this?

    My Mac has lost the keyboard command to zoom in and out (Apple/shift/ /-)  How can I restore this?

    try doing an SMC reset, the following article tells how to do this:
    http://support.apple.com/kb/HT3964
    also go into your keyboard options and make sure the settings are correct there.

  • Hello, I have CS3 and the "place" command in Illy will no longer place PS files.  Can anyone help?

    Hello, I have CS3 and the "place" command in Illy will no longer place PS files.  Can anyone help?

    Nobody can know. You have not provided any system info or other technical details like what your PSD files actually contain, their color modes and a ton of other things. Either way, ask in the AI forum and provide the necessary info.
    Mylenium

  • When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears.  How to I get the location to appear automatically?

    When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears. How to I get the location to appear automatically when I import my photos from my iPhone?

    in your iPhoto preferences is look up location set to "automaticaly"?
    LN

Maybe you are looking for

  • Ipod [fifth gen 30gb] crashes computer when transferring songs

    Hi Ive had my ipod for about 6 months. I update songs manually from my work and home macs. Last week I tried updating but the computer screen went dark(er) with the following message in a black box in middle of screen: "You need to restart your compu

  • Skippy-xd and cairo-dock ignore screen resolution in openbox

    Hey, this is the first time I'm posting since I usually solve my problem using this forum and google but I this time they failed me. I recently switched from gnome to openbox and in the process of making myself comfortable I installed first skippy-xd

  • Safe to use Dock when updating iPhone firmware?

    When future firmware updates become available for iPhone via iTunes, is it safe to go through the update process connecting the iPhone to my MacBook Pro via the Dock or must it be using the cable only? I read on an online forum that one user tried up

  • Firefox crashes every time!

    I have been trying to evaluate Firefox (even though I like Safari) and it seems to crash on me every time. I have repaired permissions, uninstalled and downloaded the latest version and it still just won't work. The Mozilla site indicated that there

  • Indesign CS5 -- Pen tool disappeared

    The pen tool is missing out of my toolbox in InDesign CS5, Windows platform. Any idea how I can get it back? I recreated the preferences when I started the program this morning, but that did not help.