How to bring a .jpg into an open PSD file as a layer & smart object

Note: Posted in MAC section also.
Goal:
Using a script - Bring a .jpg an artist chooses, into Photoshop in an existing project into its own layer, and make it a smart object.
This way, when the artist double-clicks on the smart object in Photoshop, it opens the original .jpg
Currently, doing this creates a new window and file - a temp file, called xxx.psb.
Photoshop does this by default to prevent destructive editing.  However, in this case, we purposely want to open the original.
Why?  the .jpg files are approved art by the organization.
Here is the script I did and have working in JavaScript.  (Has to be js because it will run on MAC's)
Currently, it creates a NEW file.  I want it, however to create the SO as a layer in the existing open file.
In JS: (has to be js for MAC's)
var idOpn = charIDToTypeID( "Opn " );
    var desc4 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc4.putPath( idnull, new File( "C:\\Users\\jleahy\\Desktop\\JPG_Meeting.jpg" ) );
    var idsmartObject = stringIDToTypeID( "smartObject" );
    desc4.putBoolean( idsmartObject, true );
executeAction( idOpn, desc4, DialogModes.NO );

I'm half way there, but stuck at:
Getting a file location reference when the .jpg is first brought into PS as a layer.
Getting a script to write the location of the file into the medata for the PSD in some field
Reading back the metadata file location for the .jpg and bringing it back into the PSD again.
Any help would really be appreciated.
I can make the completed script(s) available when its complete, as this has possibilities for other uses, batch process, and more.

Similar Messages

  • How to bring a website into Adobe muse for editing

    How to bring a website into Adobe muse for editing?

    Adobe Muse only allows .muse files for editing. You can't import a previously created page say in Dreamweaver into Muse.

  • How can I make JPG to be opened in Preview not in Photoshop.When I click on JPG it opens in Photoshop. I would like to be opened in Preview. Can somone help how can I do that. Thanks

    How can I make JPG to be opened in Preview not in Photoshop.When I click on JPG it opens in Photoshop. I would like to be opened in Preview. Can somone help how can I do that. Thanks

    Select (highlight) the file in Finder and then use the Finder File menu Get Info (or Command I) and in the Open With section of the Get Info choose the application you want to open the file. Another method is to right-click the file in Finder.

  • How do I tell Adobe reader to open a file instead of being prompted to save the file?

    how do I tell Adobe reader to open a file instead of being prompted to save the file?

    Go to Tools - Options - Applications and enter "pdf" into the filter field. Select the action that you want to associate with PDF files.
    In your case select one of the "Use Adobe Acrobat" actions.

  • Downloading a file would bring up an option to open the file or save it - for some reason now it just downloads straight to the download folder. Why? Problem with Firefox or something else?

    Downloading a file would normally bring up an option to open the file with the appropriate program or save it - for some reason now it just downloads straight to the download folder. Why? Problem with Firefox or something else? It's very frustrating - sometimes you want the file opened first so it can be discarded or saved to a different location.

    Hey. that's great! Thanks for posting back with the outcome.

  • How do I upgrade elements 10 to open raw files from my Canon 70d?

    How do I upgrade elements 10 to open raw files from my canon 70d?

    Normally, if there are any updates for your version of PSE then they should be offered to you automatically.  However, you can also check if there are any new updates by going to:
    Help >> Updates
    If your camera is relatively new then even by getting the updates you may not be able to edit raw files from the new camera because old versions of PSE are normally not updated as soon as the new version hits the market.  We are currently at version 13 so version 10 was stopped long time ago.  However, you can see a workaround at this link where I posted a video to get things moving:
    <Why can't I open my RAW files from my Nikon D7000 ?? I can open RAW files from my old Nikon D70's but not my D7000...>
    Hope this helps.

  • How do I resolve the issue Cannot open the file ".indd". Adobe InDesign may not support the file for

    How do I resolve the issue Cannot open the file ".indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing , or the file may be open in another application?

    Shouldn't the CC version be able to open any file created in an older version on InDesign?
    Yes, it ought to.
    If the older file wasn't yours (if someone emailed it to you,or burned it on a disc, or whatever), then I am almost willing to bet you a beverage in the city of your choice that it's not a complete InDesign file. That is, maybe it was zipped and renamed, or the beginning or end of the file was chopped off during download, or something like that. The only reason I'm not actually making the bet is that there is a remote chance that I'd lose, and maybe you're in Adelaide or Khabarovsk or somewhere where the cost of airfare to me would make that bet a very expensive bet for me to to lose. So no latte for you if I'm wrong!
    The script that Jongware posted will tell you what version of InDesign made the file to begin with. Additionally, if someone did something like rename YourFile.PDF to YourFIle.INDD, it'll report that it's Not An InDesign File. Because while SpectrumPCS is kinda right and that message can be generated when attempting to open a CS5 file in CS3 or whatever, it also spits out the same message when you just try to open an Autocad file, or a Windows system file, or a PDF, or any file that InDesign actually cannot open at all.

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • Photoshop cs4 - Can't open .psd files in Bridge

    I cannot open .psd files in Bridge, only .jpg and .tif, as far as I know.  The .psd files are flattened--no layers.  What's wrong?

    Generated in PS cs4...always starting with a .jpg, working on it, then saving as .psd.
    I open Bridge, navigate to the file I want to work on.  The round icon that is for opening files in Camera Raw is grayed out.  It IS available for .jpg and .tif files.  If I go to the File menu in the upper left, there is no option to open the .psd file in Bridge.  If I just click Open, the file will open in the default program I use for quickly viewing all photos (Irfanview).
    Thinking also about the reply from 2.rob...
    I hope I don't need to designate .psd files to always open in Photoshop in order to get this to work.  I have all photo types set to Open for quick viewing in Irfanview, which I like very much. Often I want to look at a .psd file w/o opening Photoshop, which takes a while to load.

  • Can not open psd file after electricity failure!! help""

    Please help me how to open psd file. I have been working on one project. It has been saved. After that electricity failure in our house happened and now I can not open it. It is saying: Could not complete your request because the file is not compatible with this version of Photoshop.
    Thank you for help.

    Have a look at this:
    Salvaging damaged PSDs
    Mylenium

  • Open PSD files from Bridge to Photoshop CS6

    In previous version I can open psd files to Photoshop with double clicks. Now it open to QuickTime only. How can I go back to the the old way? And I don't want to "place" the file to smart objerct either.
    Please help.

    Hi,
    In Bridge cs6 look under the Bridge preferences (Ctrl+K or Cmd+K) and then under File Type Associations, where you can choose the applications to open files from bridge.

  • Opening PSD file in ACR

    I saw some where that you can open a PSD in ACR by File>Open As.  I have CS5 and there is no such option as "Open As" in my File.
    I also think I saw where you can change the default  for opening from PS to ACR.  Is anyone familiar with this and how do you change the default?
    Doug

    dglas_1 wrote:
    I saw some where that you can open a PSD in ACR by File>Open As.  I have CS5 and there is no such option as "Open As" in my File…
    No, you need to use the File > Open menu command.  In the Open dialog box, you need to go the Format item and select Camera Raw from the dropdown submenu:
    DO NOT select Photoshop Raw under any circumstances,
    dglas_1 wrote:
    …I also think I saw where you can change the default  for opening from PS to ACR…
    No; that is incorrect.  You cannot select Camera Raw as default to open PSD files.  You have to go through the File menu > Open every single time you want to open a PSD in Camera Raw.
    For next time, the Adobe Camera Raw forum is here:
    http://forums.adobe.com/community/cameraraw
    Wo Tai Lao Le
    我太老了

  • In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    There are a number of third party solutions for this.  I just use Bridge, so can't recommend one in particular.

  • Can I open psd file made in photoshop cs3 with photoshop ps2?

    Can I open psd file made in photoshop cs3 with photoshop ps2? Thanks in advance!

    Actually you can open a CS3 file with smart filters in CS2
    the only problem is CS2 will not understand the Smart filter and flatten it.
    If you leave the smart filtered object alone in CS2 save the file and it should still be a smart filtered object in CS3

  • Can I open psd files created in Photoshop CC with lower version? Actually CS5.

    Can I open psd files created in Photoshop CC with lower version? Actually CS5.
    My home and office have different version each.

    Yes, PROVIDED that the file has not been saved with any layers containing any of the specific new features introduced starting with Photoshop CC and higher.
    If the file has been flattened or if it was flat to begin with there will be no problems.

Maybe you are looking for