How to Perform File- Place via Scripting (CS5)

Hi all,
Photoshop contains the option of directly placing one graphic file onto the currently active layer via the menu with File-> Place.
How do I do this in scripting?
TIA,
mlavie

@xbytor2: Thanks for the quick response.
I noticed that File->Place does not bring the image's clipping path along with the image. Does your example do that, and if not, would you have any idea how?
TIA,
mlavie

Similar Messages

  • How to sign a profile via Script

    Hi,
    i have managed an internal Website on which a User can log in with his Active Directory Account. The Site is looking for his phone number in the AD and an additional "AirTerminal" account for his phone number. If everything is ok, the User has the choice to select iPhone or Windows Mobile. After the choice he can push a button "Send Configuration".
    The Configuration will be sent out to his phone with a SMS which includes a One-Time-URL. This One-Time-URL can, of course, be used only once, after that the URL will not work anymore.
    The URL contains a File, specially for this particullary user, preconfigured with his E-Mail, Domain and Username. After the Profile is installed, the User is only be prompted to supply his Windows Password for Exchange.
    This is working fine!!! We do not have any problems with this kind of deployment and the Users like it.
    The only thing disturbing is the "Unsigned" showing up in the Profile. We would like to sign this Profile and really do not want to use the ICU or SCEP and so on. Our solution is completely independent of infrastructure. The solution can be used with any kind of LDAP. So no need fpr Microsoft AD and so on...
    How can this be resolved with scripting like shell, bash, php or whatever...
    Could be that there is one time, and we will be kick off Microsoft, or whatever...
    Kind regards
    Stefan

    setPageBoxes() :
    But the contents do not fit to the page size.
    How to resize the contents to fit to the page size?

  • How to restore file associations in Bridge CS5?

    Hi
    Some time ago I somehow lost file associations in Adobe Bridge CS5. Now when I doubleclick a RAW file (Canon .CR2 file) I get Firefox, when I doubleclick a JPG I get FastStone and when I doubleclick a PSD file nothing happens at all. Also Photoshop is not in the options I get by right-clicking photos and choosing "Open with...".
    I have tried [ Edit -> Preferences... -> File Type Associations -> Reset to Default Associations ] , but that didn't help.
    Also when I look in the File Type Association dialog, my file types are set to "Explorer Settings", and Photoshop is not among the other options. I don't know how this uses to be (if associations are defined in Bridge or it uses Explorer/Windows settings?), but how do I easily recreate original setup from when I installed Photoshop?
    Regards
    Stig Nygaard
    http://www.rockland.dk/
    http://www.flickr.com/photos/stignygaard/

    Hi Neil
    Thanks for the answer. I'm aware I can manually setup associations one-by-one for all file types I need, but just hoped there was some easier way. I mean there's a lot of file types associated in either windows/explorer or directly in Bridge. Some that I might not know I need tomorrow.  Two things I have found out since I asked the question:
    1) The problem is probably caused by uninstalling my old CS4 after I had installed CS5. It looks like somebody experienced a similar problem by uninstalling CS3 after the installation of CS4: http://forums.adobe.com/message/1899159#1899159. So apparently a bug Adobe hasn't fixed even though it was in previous version too!? :-( I think it is only natural to keep your old version installed for some time when installing an upgrade. Just to make sure the new version works well before you uninstall the previous (And I have previous had the problem that a new version of Photoshop had a habit of freezing on my PC - or some other error I don't remember -  until Adobe released an update. So there's a reason for my behavior).
    2) I have installed a second copy of CS5 now on my secondary portable PC, and are using this to make a similar setup regarding file associations in windows/explorer and Bridge. All associations for Photoshop was lost on my primary PC, and God... there's a lot of file associations to setup again... May I recommend Adobe (if reading this) to fix this bug and/or make a script to automatically recover all associations in case of loss!
    /Stig

  • How to Perform In-Place Upgrade of Windows Vista Home Professional amd64

    I'm trying to perform an in-place upgrade of Windows Vista Home Professional amd64 but the setup process fails stating that I need to remove Windows PowerShell prior to the upgrade. 
    I didn't have http://support.microsoft.com/kb/928439 installed so I couldn't uninstall it.
    I checked Windows features and PowerShell and the ISE were listed.
    I tried removing it (via optionalfeatures.exe) but it fails with 'An error has occurred. Not all of the features were successfully changed.'
    I tried installing http://support.microsoft.com/kb/928439 then removing the Windows feature - same error as above.
    I tried installing http://support.microsoft.com/kb/947821 then removing the Windows feature - same error as above.
    I tried uninstalling http://support.microsoft.com/kb/928439 then removing the Windows feature - same error as above.
    I tried performing an in-placce upgrade again and it continues to say that Windows PowerShell needs to be removed.
    I cannot remove PowerShell (or the ISE) via ocsetup.exe as no such option exists according to http://technet.microsoft.com/en-us/library/ff716463.aspx
    I tried removing it with DISM via /online /Remove-Package /Disable-Feature, but "DISM does not support servicing Windows Vista with the /Online option."
    I tried sfc /scannow again - same 'Windows
    Resource Protection' error.
    I tried the in-place upgrade again and it still needs PowerShell to be removed.
    There have been chkdsks and reboots peppered throughout this process.
    I don't know what else to try & I  feel like I'm stuck in a possibly crazy catch 22 situation.
    Note: This is a Windows Vista Home Premium SP2 64-bit machine.
    For those that need more history on how I got here, I'm going to refer you to my 'Windows
    Resource Protection could not perform the requested operation' post in the, incorrectly categorized, Windows 7 forums.  In short:
    Whenever I run Windows updates, all the updates fail.  It doesn't matter if I do one, all or something in between - they all fail.
    I ran sfc /scannow but that fails with 'Windows
    Resource Protection could not perform the requested operation' 
    I tried performing an offline scan as well but that failed with the same 'Windows
    Resource Protection' error.
    Not sure what to do at this point and I don't know what logs would be helpful for you to review at this stage (cbs.log, windowsupdate.log, other?)

    Please try below and check if we can boot normally now.
    1.
    Boot to Recovery console2. Use the backup
    System registry hiv to replace the current hiv
    In the Recovery Console.
    In CMD, go to:
         %systemroot%\System32\Config\
    Run: ren system system.old
    Go to:
         %systemroot%\System32\Config\regback
    Run: copy
         %systemroot%\system32\config\regback\system %systemroot%\system32\config
    Restart your computer.
    After that, please try to test if the server can boot to normal mode now.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Any updates,
    JuliusPIV?
    JuliusPIV
    Northwind Traders
    475 Points               
    10               
    2               
    0                       
    Recent Achievements           
    Forums Replies III                                           
    Forums Answerer II                                           
    Code Answerer II                                                           
    JuliusPIV's threads                               
    View Profile           
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Apologies for the delay.  I will first try your suggestion above followed by system restore if that fails.
    I'll do this over the weekend (if not this evening) and update this post.
    Thanks!

  • How to get DP name via script

    Hello,
    We are migrating from Symantec Altiris to SCCM 2012. In our current environment we have both HP models and now moving towards Lenovo models. We are using both respective Enterprise solutions for managing driver that is HP SSM and Lenovo Thininstaller.
    We have 3 sites/locations with exactly the same shares on each one. We are using a script with a built in Altiris token that finds out what DP or Taskserver (in Altiris Environment) the client is connected to.
    How can I define a DP with the same type of script in SCCM?
    Are there any tokens for DP?
    Are there any specific local files or usuble values that changes when connecting to other DPs?
    Can I somehow query bounderies in a script and then use IF statement to connect them to a specific share?
    I know that I can use one share if I want to but that will use a lot of network trafic since we have the DPs on different locations throughout the country. One idea I had was to make 3 different packages with one DP specified in each
    one and then connect them to its specific boundary.  
    The good part to make it work all in one script is that it can be applied to any client in the organisation to update their current drivers and not just to use in initial deployment.
    I found a vbs script that can echo a DP, but how do I implement it into my script?
    http://sccmguru.wordpress.com/2014/04/22/show-dp-in-use-during-task-sequence/
    '// Purpose: Used to find active Distribution Point
    '// Version: 1.0 - April 15, 2014 - Odd-Magne Kristoffersen
    '// This script is provided "AS IS" with no warranties
    Set env = CreateObject("Microsoft.SMS.TSEnvironment")
    ENV_SMSTSHTTPTHI0000D = env("_SMSTSHTTPTHI0000D")
    SMSTSHTTPTHI0000D = Split(ENV_SMSTSHTTPTHI0000D,"/",-1,1)
    DP = split(SMSTSHTTPTHI0000D(2),".",-1,1)
    Echo DP(0)  
    Here is my script in short format. I didn't bother putting all the models.
    The value %MODEL% is from the Query in the beginning of the script and the %TASKSERVER% value is an Altiris token the can be used when running a script with the agent credentials.
    @echo off
    set model=
    FOR /F "tokens=2 delims='='" %%A in ('wmic ComputerSystem Get Model /value') do SET model=%%A
    Echo This is a %MODEL%
    IF "%MODEL%" == "HP EliteBook 820 G1" GOTO HP Updates
    IF "%MODEL%" == "HP EliteBook 840 G1" GOTO HP Updates
    IF "%MODEL%" == "HP Compaq 8000 Elite SFF PC" GOTO HP Updates
    IF "%MODEL%" == "HP Compaq 8100 Elite SFF PC" GOTO HP Updates
    IF "%MODEL%" == "HP Compaq 8200 Elite SFF PC" GOTO HP Updates
    IF "%MODEL%" == "HP Compaq Elite 8300 SFF" GOTO HP Updates
    IF "%MODEL%" == "20AQ007UMS" GOTO Lenovo Updates
    IF "%MODEL%" == "20AL00BYMS" GOTO Lenovo Updates
    IF "%MODEL%" == "10AB000YMX" GOTO Lenovo Updates
    IF "%MODEL%" == "20C0003TMS" GOTO Lenovo Updates
    IF "%MODEL%" == "20AL007NMS" GOTO Lenovo Updates
    IF "%MODEL%" == "10AAS0HN00" GOTO Lenovo Updates
    exit 1
    :Hp Updates
    \\%TASKSERVER%\Share\ssm.exe \\%TASKSERVER%\Share /ACCEPT /INSTALL /DEBUG /TITLE:"HP Updates" /NOREBOOT
    RMDIR "c:\ssm" /s /q
    exit 0
    :Lenovo Updates
    xcopy \\%TASKSERVER%\Share\Thininstaller c:\Thininstaller /S /H /I /Y
    c:\Thininstaller\Thininstaller.exe /CM -search A -action INSTALL -repository \\%TASKSERVER%\Share\Repository-noicon -includerebootpackages 0,3 -showprogress -noreboot
    RMDIR "c:\Thininstaller" /s /q
    exit 0

    The way these two driver management systems work is that the exe is not installed, only executed with different switches to look inside a share with drivers to match what is installed on the client and apply the missing drivers.
    I have checked other threads with HP ssm and Lenovo Thininstaller regarding SCCM implementation and they all create a package for the exe and apply the command switches. Exactly as many of you already described here.
    That works if you have only ONE share. I manage 3 shares, one for each geographical location that we prep Windows installations. This to make it faster for the client to download the drivers and to not use/load the WAN unnecessarily.
    I read on another thread that I can't query a dp because it's assigned only when the client requires content. 
    The only workaround as I see it is to:
    1. Create 3 different packages with different  shares in the command line. And somehow apply a detection method in the task sequence to figure out location (DP, IP, DNS, boundary, Assigned Domain Controller).
    2. Create 3 different packages and 3 different roles in MDT, one for every location. 
    3. Only use one share on the location that mostly is used for Windows installations and accept that it will take longer for the drivers to be applied on the other locations. 
    Which one should I go for?
    Many of you may think that I should use the standard way of managing drivers in SCCM. But this is so much easier. I never have to package drivers or hardware applications like HP Connection Manager. I can reapply the package to any client in production and
    update the drivers and model specific applications if needed.

  • How to unzip files in Shell script

    Hi Gurus,
    I have one requirement, where in I need to unzip files at at unix level and then move to the respective folders. How can I code this in the shell script.
    As it is entirely new thing, please let me know how to do this. Seeking few program steps.
    Thanks in advance for your help.
    Regards
    Nagendra

    You can specify unzip -d directory to tell unzip where to extract the files. For instance:
    dest_dir="/tmp/$(date +%N)"
    # zip file is cmd line argument $1
    unzip -d $dest_dir "$1"
    cd $dest_dirI don't know of any way to automatically go to a zip'ed directory stored inside the zip file. Besides, where do you want to go in case there are several directories stored?

  • How to open files in CS4 and CS5?

    The graphic designers in my office have both InDesign CS4 and InDesign CS5 installed. CS4 is set to be the default for all Adobe files. However, if they want to open an InDesign in CS5, if they right-click and select "Open With" they can't choose to open with CS5. Even if they click "browse" and manually choose CS5. Anyone know why that is? They can open InDesign CS5 and then browse to file and open it within the program, so it's not a compatibility issue. Obviously this is more a matter of convenience for them (since they work with thousands of files) than a major problem, I would just like to know if it's possible to open InDesign files this way.

    It's an OS thing and you can't change it.
    You can, however, purchase the Soxy plugin from Rorohiko.com that will intercept the open commands and launch the correct version of ID based on the version in which the file was saved. I believe it costs about $20.

  • How to correct decimal places in script

    Hi,
    I have a packed integer variable. The value stored in that variable is 8,156,265.598.
    But i want it as 8.59 in the form.
    How to achieve this?
    Ezhil.

    use [this link|http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm] on formating numerics fields for display.. [<click>|http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/content.htm]

  • How to edit a plist via script in OSX 10.7+

    With the changes made to Lion, with regards to LDAP authentication, I find myself having to edit the my-ldap-server.plist in /Library/Preferences/OpenDirectory/Configurations/LDAPv3/ manually in Xcode at every install; specifially I need to add some entries to the "Denied SASL Methods" array. I think I can do this with PlistBuddy, but am having problems figuring it out. Copy/Paste from terminal, some items editted to protect the guilty. Here's what I see:
    backuplt1:Desktop user1$ /usr/libexec/PlistBuddy ldap.test.org.plist
    Command: print
    Dict {
        node name = /LDAPv3/ldap.test.org
        module options = Dict {
            AppleODClient = Dict {
                Server Mappings = true
            ldap = Dict {
                Use DNS replicas = false
                Denied SASL Methods = Array {
                    DIGEST-MD5
                LDAP Referrals = false
        description = ldap.test.org
        options = Dict {
            man-in-the-middle = false
            connection setup timeout = 10
            destination = Dict {
                other = ldap
                host = ldap.test.org
                port = 389
            packet encryption = 2
            no cleartext authentication = false
            packet signing = 0
            query timeout = 30
            connection idle disconnect = 60
        template = Open Directory Server
    Any thoughts?

    I couldn't see PlistBuddy in /usr/libexec for some reason; must be hidden? Anyway, it's there and I foiund this site to help here:
    http://blog.smalleycreative.com/administration/fixing-openldap-authentication-on -os-x-lion/
    sudo su
    /usr/libexec/PlistBuddy -c "add ':module options:ldap:Denied SASL Methods:' string CRAM-MD5" /Library/Preferences/OpenDirectory/Configurations/LDAPv3/yourldapserver.plist
    /usr/libexec/PlistBuddy -c "add ':module options:ldap:Denied SASL Methods:' string NTLM" /Library/Preferences/OpenDirectory/Configurations/LDAPv3/yourldapserver.plist
    /usr/libexec/PlistBuddy -c "add ':module options:ldap:Denied SASL Methods:' string GSSAPI" /Library/Preferences/OpenDirectory/Configurations/LDAPv3/yourldapserver.plist
    Hope this helps others.

  • ODI 11g - Work Repository Creation via Script

    Hi!
    Do you have any suggestions how to create work repositories via script?
    My idea is to create all database objects in the schema for the new work repository and insert the repository specific information into the tables
    - SNP_REM_REP (master repository)
    - SNP_CONNECT (master reppository)
    - SNP_LOC_REPW (work repository)
    Am i missing something?
    Thanks in advance & kind regards
    Michael

    Why do you want to do it this way ?
    I dont think your idea is going to work as there are 87 other tables (maybe not all of them) in Work Rep that need to be populated. And only the Work repository creation menu in the Topology would do it for you. There are relationship among those tables that need to be satisfied.
    What version are you on ? In 11g you can write Java code to do the things I mentioned above. Whatever you can click and do in 10g can be done using Java programming in 11g.

  • Howto: Determine Image Offset via Scripting?

    Given the screengrab, below,
    How would I go about, via scripting (js), fetching the "X+" value? Is it a calculation of other values, and if so, what are they?
    I want to get that "7.2" value.
    Thanks.

    app.selection[0].graphics[0].geometricBounds[1]-app.selection[0].geometricBounds[1]

  • OSX 10.9 Maverick add a LDAP server via script

    I use applescript to add a LDAP sever on 10.8, but after the 10.9 released, I found the script cannot use any more.
    Seems is the new Mail app doesn't support LDAP sever , it is integrated to Internet Accounts
    However the SAMPLE script is still the same. (  /Library/Scripts/Mail\ Scripts/Create\ New\ LDAP\ Server.scpt )
    Does any one know how to config internet accounts via script (BASH script is OK too)?
    the new mail app does not understand
    make new ldap server with properties {name:theName, host name:theAddress, search base:theSearchBase, Çclass ldpoÈ:thePort, scope:theScope}
    any more.

    I'd first read the subject and thought this involved creating an entire LDAP server via script and thought... whoa, that's some script.    
    But you're seeking to reference a remote resource or some automated way to configure your client mail, and that's currently using LDAP, right?  If so, then Apple has shifted over to Profiles and away from LDAP and MCX and related.  Profiles would be the approach I'd follow here, either with OS X Server and its profile manager or some other MDM service.
    If you have access to the Apple WWDC13 session videos, there's a session on the Profile Manager that might be worth your time.

  • How to place tif file through a script in an indesign document?

    how to place tif file through a script in an indesign document?

    Emanuele:
    it works if i just run a script....
    but since i have been using a gui to do some functions, this  place command is not able to place the output tif file back into the  document

  • How can I perform the conversion of pdf files in Cyrillic script to Word files in Cyrillic script. The pdf file is too small for me to read right now. Julyan Watts

    How can I perform the conversion of .pdf files in Cyrillic script to Word files in Cyrillic script. The .pdf file is too small for me to read without a magnifying glass, and the document is more than one thousand pages.

    This answer was not helpful. First of all, I could not find "tech specs"
    anywhere on the Acrobat 11 homepage. And secondly I purchased this software
    for the specific purpose of converting .pdf files to Word. It was only
    after I had completed the purchase that I learnt that Acrobat does not
    permit the conversion of .pdf files in Cyrillic to Word files  in Cyrillic.
    I feel that Acrobat should have provided this crucial information before I
    allowed my credit card to be debited. That is why I  am now asking for my
    money back. But thanks for your attempt to solve my problem, even if it was
    not successful.
    Julyan Watts

  • [CC] How to perform a script "foo_beforeSave.htm" only for specific site?

    Since a long time I use a script for automatic text replacements which perform with each save command.
    The script sits in that folder:
    C:\Users\myusername\AppData\Roaming\Adobe\Dreamweaver CC\de_DE\Configuration\Commands\foo_beforeSave.htm
    It works for all documents of all sites.
    The source code (the regex rule is just an example) of the script you find below.
    My question:
    I like to perform a script like this only for a specific site.
    I'm not a programmer. So I don't know where to place the script to reach that target. Or how I have to edit the source code of the script.
    Is there anybody who could help me with that please?
    I would appreciate it a lot. Thanks
    <!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
    <!-- MENU-LOCATION=NONE -->
    <html>
    <head>
    <title></title>
    <script src="../Shared/Common/Scripts/dwscripts.js"></script>
    <script>
    function canAcceptCommand(){
        return true;
    function getFileName(url) {
      var index = url.lastIndexOf('/');
      if (index != -1) retVal = url.substring(index + 1);
      else retVal = url;
      return retVal;
    function runCmd(){
        var dom = dw.getDocumentDOM();
        dom.synchronizeDocument();
        var path = dw.getDocumentPath('document');
        if(getFileName(path) != 'foo_beforeSave.htm'){
            var docEl = dom.documentElement;
            var tempDoc = docEl.outerHTML;
            tempDoc = tempDoc.replace(/&bdquo;/g,'„');
            tempDoc = tempDoc.replace(/&#8222;/g,'„');
            tempDoc = tempDoc.replace(/&ldquo;/g,'“');
            tempDoc = tempDoc.replace(/&#8220;/g,'“');
            tempDoc = tempDoc.replace(/&rdquo;/g,'”');
            tempDoc = tempDoc.replace(/&#8221;/g,'”');
            docEl.outerHTML = tempDoc;
    </script>
    </head>
    <body onLoad="runCmd();">
    </body>
    </html>

    Well, the posted script is a full working one.
    I just search for a way to limit the range of the script to the actual site.
    Therefore it is unimportant, which regex is in the example.

Maybe you are looking for

  • & in insert statement

    Hi, i've an insert into table(address) values (address) statement my problem is in the adress values. i've an entry of & which the oracle treats it as a parameter. when i'm running this in sql plus how could i solve this because it prompts me everyti

  • Word search image

    Hi guys, This one's quite advanced... I'm working on a online book project that takes a .pdf, converts each page into a JPEG and stores them to a unique folder. I have created a flash file that the user is directed to upon the .pdf's upload which det

  • Wallet file question

    Hi all Oracle 10.2.0.5 wallet We are using wallet file and in that "Certificate(Ready) expires at Sep 2012. I could also find the trusted certificates added which expires at Oct 2030. Is this means I have the certificates till 2030 or I need to get a

  • Problems with FaceTime and iMessage

    My iPad mini isn't letting me log into iMessage or FaceTime. It asks for my Apple ID and I enter it but then it says "an error occurred during activation. Please try again." I'm getting very stressed and I really don't want to get a whole new device.

  • Very first step in configuring RMAN for a Backup

    DB version:10gR2 I am a DBA supporting applications development and i am not familiar with RMAN. This weekend we are going to Patch 10.2.0.1.0 to 10.2.0.3.0. Before that i am going to take a backup of the entire Database containing around 57 schemas(