Can scripting do path editing?

I used ScriptListener to log what happens when I clicked path editing tool (screenshot above) on the top bar. I clicked every path editing tool on the top bar, however, only Combine generated scripts. This is what I got:
var idcombine = stringIDToTypeID( "combine" );
    var desc143 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref76 = new ActionReference();
        var idPath = charIDToTypeID( "Path" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref76.putEnumerated( idPath, idOrdn, idTrgt );
    desc143.putReference( idnull, ref76 );
executeAction( idcombine, desc143, DialogModes.NO );
I saved these code into a .jsx file and ran from Photoshop. It successfully combined pathes.
I'm wondering why I couldn't get any code for other path editing tools. Is there other way to realize path editing with scripting?
Information:
Windows 7 64-bit SP1
Photoshop cc 2014
Javascript

This would create paths based on the first path’s subPathItems.
// make paths from first path’s subpathitems;
// 2014, use it at your own risk;
#target "photoshop-70.032"
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
if (myDocument.pathItems.length > 0) {
var theArray = collectPathInfoFromDesc2012 (myDocument, myDocument.pathItems[0]);
var theName = myDocument.pathItems[0];
for (var m = 0; m < theArray.length; m++) {
createPath2012([theArray[m]], theName+"_"+m)
////// collect path info from actiondescriptor, smooth added //////
function collectPathInfoFromDesc2012 (myDocument, thePath) {
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.POINTS;
// based of functions from xbytor’s stdlib;
var ref = new ActionReference();
for (var l = 0; l < myDocument.pathItems.length; l++) {
  var thisPath = myDocument.pathItems[l];
  if (thisPath == thePath && thisPath.name == "Work Path") {
  ref.putProperty(cTID("Path"), cTID("WrPt"));
  if (thisPath == thePath && thisPath.name != "Work Path" && thisPath.kind != PathKind.VECTORMASK) {
  ref.putIndex(cTID("Path"), l + 1);
  if (thisPath == thePath && thisPath.kind == PathKind.VECTORMASK) {
        var idPath = charIDToTypeID( "Path" );
        var idPath = charIDToTypeID( "Path" );
        var idvectorMask = stringIDToTypeID( "vectorMask" );
        ref.putEnumerated( idPath, idPath, idvectorMask );
var desc = app.executeActionGet(ref);
var pname = desc.getString(cTID('PthN'));
// create new array;
var theArray = new Array;
var pathComponents = desc.getObjectValue(cTID("PthC")).getList(sTID('pathComponents'));
// for subpathitems;
for (var m = 0; m < pathComponents.count; m++) {
  var listKey = pathComponents.getObjectValue(m).getList(sTID("subpathListKey"));
  var operation1 = pathComponents.getObjectValue(m).getEnumerationValue(sTID("shapeOperation"));
  switch (operation1) {
  case 1097098272:
  var operation = 1097098272 //cTID('Add ');
  break;
  case 1398961266:
  var operation = 1398961266 //cTID('Sbtr');
  break;
  case 1231975538:
  var operation = 1231975538 //cTID('Intr');
  break;
  default:
// case 1102:
  var operation = sTID('xor') //ShapeOperation.SHAPEXOR;
  break;
// for subpathitem’s count;
  for (var n = 0; n < listKey.count; n++) {
  theArray.push(new Array);
  var points = listKey.getObjectValue(n).getList(sTID('points'));
  try {var closed = listKey.getObjectValue(n).getBoolean(sTID("closedSubpath"))}
  catch (e) {var closed = false};
// for subpathitem’s segment’s number of points;
  for (var o = 0; o < points.count; o++) {
  var anchorObj = points.getObjectValue(o).getObjectValue(sTID("anchor"));
  var anchor = [anchorObj.getUnitDoubleValue(sTID('horizontal')), anchorObj.getUnitDoubleValue(sTID('vertical'))];
  var thisPoint = [anchor];
  try {
  var left = points.getObjectValue(o).getObjectValue(cTID("Fwd "));
  var leftDirection = [left.getUnitDoubleValue(sTID('horizontal')), left.getUnitDoubleValue(sTID('vertical'))];
  thisPoint.push(leftDirection)
  catch (e) {
  thisPoint.push(anchor)
  try {
  var right = points.getObjectValue(o).getObjectValue(cTID("Bwd "));
  var rightDirection = [right.getUnitDoubleValue(sTID('horizontal')), right.getUnitDoubleValue(sTID('vertical'))];
  thisPoint.push(rightDirection)
  catch (e) {
  thisPoint.push(anchor)
  try {
  var smoothOr = points.getObjectValue(o).getBoolean(cTID("Smoo"));
  thisPoint.push(smoothOr)
  catch (e) {thisPoint.push(false)};
  theArray[theArray.length - 1].push(thisPoint);
  theArray[theArray.length - 1].push(closed);
  theArray[theArray.length - 1].push(operation);
// by xbytor, thanks to him;
function cTID (s) { return cTID[s] || cTID[s] = app.charIDToTypeID(s); };
function sTID (s) { return sTID[s] || sTID[s] = app.stringIDToTypeID(s); };
// reset;
app.preferences.rulerUnits = originalRulerUnits;
return theArray;
////// create a path from collectPathInfoFromDesc2012-array //////
function createPath2012(theArray, thePathsName) {
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.POINTS;
// thanks to xbytor;
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putProperty(cTID('Path'), cTID('WrPt'));
    desc1.putReference(sTID('null'), ref1);
    var list1 = new ActionList();
for (var m = 0; m < theArray.length; m++) {
  var thisSubPath = theArray[m];
    var desc2 = new ActionDescriptor();
    desc2.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), thisSubPath[thisSubPath.length - 1]);
    var list2 = new ActionList();
    var desc3 = new ActionDescriptor();
    desc3.putBoolean(cTID('Clsp'), thisSubPath[thisSubPath.length - 2]);
    var list3 = new ActionList();
for (var n = 0; n < thisSubPath.length - 2; n++) {
  var thisPoint = thisSubPath[n];
    var desc4 = new ActionDescriptor();
    var desc5 = new ActionDescriptor();
    desc5.putUnitDouble(cTID('Hrzn'), cTID('#Rlt'), thisPoint[0][0]);
    desc5.putUnitDouble(cTID('Vrtc'), cTID('#Rlt'), thisPoint[0][1]);
    desc4.putObject(cTID('Anch'), cTID('Pnt '), desc5);
    var desc6 = new ActionDescriptor();
    desc6.putUnitDouble(cTID('Hrzn'), cTID('#Rlt'), thisPoint[1][0]);
    desc6.putUnitDouble(cTID('Vrtc'), cTID('#Rlt'), thisPoint[1][1]);
    desc4.putObject(cTID('Fwd '), cTID('Pnt '), desc6);
    var desc7 = new ActionDescriptor();
    desc7.putUnitDouble(cTID('Hrzn'), cTID('#Rlt'), thisPoint[2][0]);
    desc7.putUnitDouble(cTID('Vrtc'), cTID('#Rlt'), thisPoint[2][1]);
    desc4.putObject(cTID('Bwd '), cTID('Pnt '), desc7);
    desc4.putBoolean(cTID('Smoo'), thisPoint[3]);
    list3.putObject(cTID('Pthp'), desc4);
    desc3.putList(cTID('Pts '), list3);
    list2.putObject(cTID('Sbpl'), desc3);
    desc2.putList(cTID('SbpL'), list2);
    list1.putObject(cTID('PaCm'), desc2);
    desc1.putList(cTID('T   '), list1);
    executeAction(cTID('setd'), desc1, DialogModes.NO);
if (hasVectorMask() == false) {
if (thePathsName != undefined) {app.activeDocument.pathItems[app.activeDocument.pathItems.length - 1].name = thePathsName};
var myPathItem = app.activeDocument.pathItems[app.activeDocument.pathItems.length - 1];
else {
if (thePathsName != undefined) {app.activeDocument.pathItems[app.activeDocument.pathItems.length - 2].name = thePathsName};
var myPathItem = app.activeDocument.pathItems[app.activeDocument.pathItems.length - 2];
app.preferences.rulerUnits = originalRulerUnits;
return myPathItem
// from »Flatten All Masks.jsx« by jeffrey tranberry;
// Function: hasVectorMask
// Usage: see if there is a vector layer mask
// Input: <none> Must have an open document
// Return: true if there is a vector mask
function hasVectorMask() {
  var hasVectorMask = false;
  try {
  var ref = new ActionReference();
  var keyVectorMaskEnabled = app.stringIDToTypeID( 'vectorMask' );
  var keyKind = app.charIDToTypeID( 'Knd ' );
  ref.putEnumerated( app.charIDToTypeID( 'Path' ), app.charIDToTypeID( 'Ordn' ), keyVectorMaskEnabled );
  var desc = executeActionGet( ref );
  if ( desc.hasKey( keyKind ) ) {
  var kindValue = desc.getEnumerationValue( keyKind );
  if (kindValue == keyVectorMaskEnabled) {
  hasVectorMask = true;
  }catch(e) {
  hasVectorMask = false;
  return hasVectorMask;

Similar Messages

  • How can I script moving paths from one file to another?

    Hello. I have 1 image with various color correction layers. The other is the exact same size but only contains paths. How can I script moving paths from one file to another? Thanks, in advance, for any help you can offer. Thanks!

    Thanks! This one actually worked for me. Thanks for your help.
    http://forums.adobe.com/message/3305389#3305389

  • Final cut pro x - lion - mbp 2011 2.0 15 - not responding at all since latest update. Can't open or edit projects, loading window that pops us when you click the app (as it loads) does not go away, says loading compressor support.  Have tried reinstalling

    final cut pro x - lion - mbp 2011 2.0 15 - not responding at all since latest update. Can't open or edit projects, loading window that pops us when you click the app (as it loads) does not go away, says loading compressor support, paralyzed.  Have tried reinstalling, default settings etc
    Appreciate suggestion, working on deadline. Thanks.  

    Here is the start of the crash report:
    Process:         Final Cut Pro [20568]
    Path:            /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro
    Identifier:      com.apple.FinalCut
    Version:         10.0.1 (185673)
    Build Info:      ProEditor-185670300~1
    App Item ID:     424389933
    App External ID: 4138831
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [102]
    Date/Time:       2011-11-11 20:41:32.201 -0800
    OS Version:      Mac OS X 10.7.2 (11C74)
    Report Version:  9
    Interval Since Last Report:          192058 sec
    Crashes Since Last Report:           14
    Per-App Interval Since Last Report:  157161 sec
    Per-App Crashes Since Last Report:   14
    Anonymous UUID:                      DD542B2F-58A0-482E-AAFA-ECADEC76F562
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000280000003
    VM Regions Near 0x280000003:
        CG shared images       00000001cbf62000-00000001cc182000 [ 2176K] r--/r-- SM=SHM 
    -->
        STACK GUARD            00007fff5bc00000-00007fff5f400000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
    Application Specific Information:
    objc[20568]: garbage collection is OFF

  • A way to "re-connect" bezier handles and other path editing techniques

    I've searched and rummaged through tutorials for days but I haven't found a way to do a few things that I've come to think of as essential when it comes to path manipulation.
    I'm using Illustrator CS4 (on Windows XP SP3) and I'm coming from a background of Inkscape. Within Inkscape, there are several handy tools that are missing from Illustrator that I haven't found workarounds for. Here's a list of these tools and a brief description for each of how they work within Inkscape:
    ]- "Shift + C" with anchor point selected: this will make the bezier handles of the point move independently of each other.
    ]- "Shift + S" with anchor point selected:
    b this will "connect" the bezier handles
    so that moving one side moves the other side relatively (and opposite to each other so that the bezier handles form a straight line).
    (note: in Inkscape there is no way to make the bezier handles relative and not form a straight line, which is something I know would be useful)
    ]- "Shift + Y" with anchor point selected: this will make the bezier handles collinear (like shift + S) plus make the lengths of both handles the same.
    (note: another possible feature would be to make the handle lengths relative, but not the same)
    ]- "Shift + Click + Drag" on a selected anchor point with the path selection tool: this creates one bezier handle in the direction you drag. This is very useful if you don't want to change the curve of the other side.
    With these functions (preferably including the suggestions I've noted), path editing in Illustrator would be much easier.
    On the topic of Inkscape's path editing abilities, there is also a way within the program to delete anchor points in two ways:
    ]The default way is to press "Del," which deletes the anchor points and makes the anchor points around the deleted points attempt to fill the area as close as possible to how it was with points.
    ]The second way is to press "Ctrl + Del," which deletes the points and does nothing to the surrounding points.
    Inkscape's default deletion method is a huge time saver when you simply have a surplus of anchor points; you can the excess and the shape maintains itself (often the result is for the shape to smooth itself out).
    I hope that these suggestions are described well enough to be understood. I also hope that, in understanding these potential techniques, you can see their potential usefulness within Illustrator.

    Lee,
    All those functions are present in Illustrator. I personally think their interface stinks in some ways, but they are there.
    > "Shift + C" with anchor point selected: this will make the bezier handles of the point move independently of each other.
    Convert AnchorPoint Tool. Press Alt to invoke it when the Pen tool is active. Otherwise, switch to it with Shift C. Use it to drag a smoothPoint's handle, and it will convert the point to a cornerPoint, letting you move the handle you click independently.
    > "Shift + S" with anchor point selected: this will "connect" the bezier handles so that moving one side moves the other side relatively (and opposite to each other so that the bezier handles form a straight line).
    Again, the Convert tool. Mousedown on an anchorPoint and drag. The point will become a smoothPoint and both handles will extend symmetrically.
    There are also buttons to convert selected points between smooth and corner in the Control Panel when anchorPoints are selected.
    > (note: in Inkscape there is no way to make the bezier handles relative and not form a straight line, which is something I know would be useful)
    In my musings about Bezier drawing interfaces, I've often imagined a metaphor of "joints" rather than points. (That's really what they are: two adjacent Bezier curves with coincident endpoints.) Joints can be "hinged" or "locked"; "bent" or "straight". They can also be "dislocated". Joints can be locked bent or locked straight, and can be moved either way.
    > "Shift + Y" with anchor point selected: this will make the bezier handles collinear (like shift + S) plus make the lengths of both handles the same. (note: another possible feature would be to make the handle lengths relative, but not the same)
    See second item, above.
    > With these functions (preferably including the suggestions I've noted), path editing in Illustrator would be much easier.
    They are there; thier interface is just different.
    > On the topic of Inkscape's path editing abilities, there is also a way within the program to delete anchor points in two ways:
    > The default way is to press "Del," which deletes the anchor points and makes the anchor points around the deleted points attempt to fill the area as close as possible to how it was with points.
    Not present in AI. (Not associated with a direct point manipulation tool, anyway. Commands like Simplify try to remove points while retaining the shape.)
    > The second way is to press "Ctrl + Del," which deletes the points and does nothing to the surrounding points.
    The Delete AnchorPoint Tool. Invoke it by pressing the minus key. Similarly, there is an Add AnchorPoint Tool, invoked by pressing the plus key. By default, the Pen Tool does that automatically to selected paths, but you can turn it off in prefs (unlike the infuriating auto join behavior, which affects UNSELECTED paths.)
    > Inkscape's default deletion method is a huge time saver...I hope that...you can see their potential usefulness within Illustrator
    Just about every user of programs like Illustrator, FreeHand, Draw, Canvas know very well the advantages of keyboard modifiers for such things, and all such programs provide them. (Although I do consider AI's treatment considerably more tedious than FreeHand's.)
    You need to spend some time looking at the keyboard shortcuts described in the Help files, and carefully practicing them. You need to know how to invoke them while in the process of drawing paths with the Pen.
    JET

  • Can't click inside editable region in template based HTML document in CS5

    Hi Everyone,
    I m having a strange problem in Dreamweaver Cs5. After making the html page based on template, when i am opening the HTML page to edit content in editable region, I couldnot click inside the editable region. I can make changes in code view but not in design view in Dreamweaver Cs5.
    Please help if anyone knows the solution. It is really creating a mess for me.
    Thanks,
    Komal

    One of the sites is www.ShelbyVideo.com.
    The code for one of the pages is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <meta name="description" content="SHELBY VIDEO SERVICES: Shelby, NC Video services that are inexpensive, professional, and thorough! Offering corporate and wedding video production services in and around Shelby North Carolina and South Carolina." />
    <meta name="keywords" content="shelby video, shelby videographer, shelby videography, shelby nc video, north carolina shelby video, shelby video camera, shelby videos, north carolina videos, nc video, shelbyvideo, shelbyvideo.com, shelby video production, shelby video services, cleveland county video, cleveland county wedding video" />
    <title>Shelby Video Production Services: SheblyVideo.com offering videography services in the Carolinas.</title><!-- InstanceEndEditable -->
    <link href="css/main.css" rel="stylesheet" type="text/css" media="projection,screen" />
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    <body class="body">
    <div id="wrapper">
      <div id="header">
        <p><a href="http://www.shelbyvideo.com"><img src="images/shelby-video-logo.jpg" alt="Shelby Video Services" name="weddingVideo" width="216" height="77" border="0" id="weddingVideo" /></a></p>
        <p><a href="index.html">HOME</a>   <a href="shelby-nc-video-services.html">SHELBY VIDEOS</a>   <a href="shelby-video-demos.html">DEMOS</a>   <a href="shelby-video-prices.html">PRICES</a>   <a href="shelby-video-faqs.html">FAQ'S</a>   <a href="shelby-video-north-carolina-reviews-testimonials.html">TESTIMONIES</a>   <a href="shelby-video.html">BOOK US</a></p>
      </div>
      <div id="mainContent"><!-- InstanceBeginEditable name="CONTENT" --><br />
        <h1>ShelbyVideo.com</h1>
        <div id="carolinaWeddingVideoDiv">
          <object width="300" height="182">
              <param name="movie" value="http://www.youtube.com/v/QUSnPSLdnG0&amp;hl=en&amp;fs=1&amp;" />
              </param>
              <param name="allowFullScreen" value="true" />
              </param>
              <param name="allowscriptaccess" value="always" />
              </param>
              <embed src="http://www.youtube.com/v/QUSnPSLdnG0&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="182"></embed>
          </object>
        Shelby Video Demo</div>    <p> </p>
        <p>Welcome to  Shelby Video Services. We have been producing  videos in Shelby North Carolina and South Carolina since 2004. </p>
        <p> </p>
        <p>Your video will be professional and comprehensive. We will beautifully cover your video production in a way that will propell your business into your market and/or enable you to relive your special event over and over and enjoy sharing with others.</p>
        <p> </p>
        <p> </p>
        <p> </p>
      <!-- InstanceEndEditable --></div>
      <div id="footer">© <a href="index.html">Shelby  Video Services</a><br />
      <a href="shelby-nc-video-services.html">shelby nc video services</a> | <a href="shelby-video.html">start here</a> | <a href="shelby-video-demos.html">demos</a> | <a href="links.html">links</a> | <a href="sitemap.html">site map</a> | <a href="shelby-video.html">contact</a> | <a href="shelby-video-north-carolina-reviews-testimonials.html">testimonials</a></div>
    </div>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-9484651-2");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    <!-- InstanceEnd --></html>
    Because I didn't create the code, rather it was dreamweaver, i believed that DW is obviously broken. Because I have a bunch of sites I made in earlier versions and when I start using a newer versions, CS5, I now can't access the editable region in any of them it seems DW is broken. So, I didn't think the code was necessary. I thought it was something that others have already experienced and resolved. However, that doesn't seem to be the case. Thanks though for helping with what appears to be broken. Hopefully it's an easy fix because there's other sites I have that this annoyance is plaguing me...

  • Scripting the path in Quick Selection Tool

    Hi,
    I'm trying to build a JS script which:
    1. opens an image
    2. selects the quick selection tool
    3. does the selection following a pre-defined path
    4. puts the unselected area to white
    5. saves the image
    The problem is in step 3. All the other steps can be recorded with ScriptListener, but the path is not. So the question is:
    How can I tell to my script a path to follow while using Quick Selection?
    How can I do it, for example, with a very simple path, say a line from pixel (50,50) to (50,200)?
    Many thanks!

    This would select the first path and stroke it with the Quick Selection Tool, for the second part it uses the Action Manager recorded with ScriptingListener.plugin.
    app.activeDocument.pathItems[0].select();
    // =======================================================
    var idStrk = charIDToTypeID( "Strk" );
        var desc7 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref7 = new ActionReference();
            var idPath = charIDToTypeID( "Path" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref7.putEnumerated( idPath, idOrdn, idTrgt );
        desc7.putReference( idnull, ref7 );
        var idUsng = charIDToTypeID( "Usng" );
        var idquickSelectTool = stringIDToTypeID( "quickSelectTool" );
        desc7.putClass( idUsng, idquickSelectTool );
        var idPrs = charIDToTypeID( "Prs " );
        desc7.putBoolean( idPrs, true );
    executeAction( idStrk, desc7, DialogModes.NO );

  • How can I apply an edit on a corner of a shape to all the corners so it would be symmetrical?

    I made this specific shape in Illustrator CC but I need all the corners and sides to be symmetrical, how can apply the same edit I make for one corner or side to all the corners of the rectangle? or is there any way to make them symmetrical? and is there an info bar which tells you x and y coordinates like in after effects?

    3b,
    is there any way to make them symmetrical?
    How would I mirror one half without any external plugins?
    It is quite possible to create a symmetrical drawing live with the help of Illy, with her inbuilt tools, without any external plugins, if you just start in the right way. Obviously, it is much better to see the whole appearance while you create it.
    You may see the reflection live after each Anchor Point if you start out as follows (for Pen Tool with vertical reflection to the right, similar for other directions):
    1) Create the first two Anchor Points of your basic path;
    2) Effect>Distort&Transform>Transform>ReflectX with 1 copy and the middle right side Reference Point chosen;
    3) With the Pen Tool ClickDrag (or Click) anew from the second Anchor Point and go on;
    If you wish, you may:
    4) Object>Expand Appearance and Ctrl/Cmd+J to join the half paths.
    Ctrl/Cmd+Z Undo is your friend: you can just go back and redo while drawing the basic path.

  • How to excute a power shell script to remote machine using power shell script folder path and script name

    Hi,
    Let say, I have 3 parameters.
    1. Script FolderPath (Remote path for e.g \\RD101\ScriptSharedFolder     Here RD101 is one server)
    2. Script Name(StopAllService.ps1)
    3. Server Name (RD45)
    I want to execute a powershell scritp in my local machine(Test1)  and in that script I want to pass the above three parameters.Now I want to excute the StopAllService.ps1 script into RD45 server. But the script is available in RD101 machine.
    So What I want to here How can we do this ? I have script name and script folder path and target execution server name.
    Pls giude me or give me the script.
    By
    A Path Finder..
    JoSwa 
    If a post answers your question, please click &quot;Mark As Answer&quot; on that post and &quot;Mark as Helpful&quot;
    Best Online Journal

    Hi,
    You got 2 solutions for your problem:
    1- If you have permission to run scripts in the remote computer without specifying your credential,
    then, the first reply solve your problem.
    2- If you have permission to run scripts in the remote computer
    having to specify your credential, l then,
    my solution solves your problem.
    If the remote computer requires signed scripts only, you need signed script. Period. Or are you trying to break remote computer security?
    If you need signed script, there's no psdrive that'll circumvent such requirement.
    The problem is that the execution policy is set to "RemoteSigned". Using the URL explicitly tags that script as being from a remote source, and the policy blocks it.  The PSDrive provides a local reference for the script.  It does not
    sign the script but the local drive reference may prevent it from being blocked for being from a remote source. I'll test that later.
    Script signing is not and should never be considered a security measure. It is easily circumvented by running the script using powershell.exe, and using the -ExecutionPolicy parameter to override whatever the local execution policy setting is. 
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • HT1338 I can see my photos in iphoto but can't email them, edit them or print them....help please!

    I can see my photos in iphoto but can't email them, edit them or print them....help please!

    First, what is the formatting of the external hard drive?  It should be OS X Extended (journaled). You can determine it by selecting the EHD and typing Command + i. 
    Click to view full size
    If it isn't formatted to that you should move the library off of it and reformat.
    The "!" is an indication that the file path to the original file has been broken  So make a temporary, duplicate copy of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins

    Having difficulties in deploying my web-determinations.war to JBoss 6.1.
    Same thing works well in OPM (Build and Debug).
    PS: Getting the same error when deploying the examples provided in the OPA Java Runtime.
    Any suggestions ?
    Error Log:
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6) 0 [ResourceContainer.invoker.nonDaemon-6] WARN com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext - Plugin directory could not be initialised. No plugins will be loaded
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6) java.lang.IllegalArgumentException: can not resolve path: plugins
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:118)
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:159)
    2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116)
    2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73)
    2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208)
    2012-09-21 16:35:40,659 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108)
    2012-09-21 16:35:40,659 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628)
    Edited by: 960661 on Sep 21, 2012 1:43 PM

    Its working now, I assumed it wasn't working by looking at the logs. Accessing the rulebase "/JBossPOC/startsession/JBossPOC/" - i could see that plugin is working.
    Do i need to make any other changes to remove the following warnings ?
    12:12:52,522 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "JBossPOC.war"
    12:12:55,346 WARN [com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext] (MSC service thread 1-4) Plugin directory could not be initialised. No plugins will be loaded: java.lang.IllegalArgumentException: can not resolve path: plugins
         at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:118) [determinations-utilities.jar:]
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:159) [web-determinations.jar:]
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116) [web-determinations.jar:]
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73) [web-determinations.jar:]
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
         at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

  • Vector path edit window won't open

    Hello,
    A bit earlier today, I was able to select a vector path, click the options arrow, select Edit path... and get a dialog of options to choose (Ink percent, Spacing, etc.). Now I can do all those things still, but the dialog of path edit options does not appear.
    Also, earlier today, I saved a set of path options I had chosen, but it never appeared among the paths available to choose. When I went through the process again and tried to save, I was asked if I wanted to overwrite what I saved earlier. So it did save earlier, but never showed up for me to choose.
    Thanks in advance for your help!

    Be careful of your terminology; I think you're talking about strokes and brush options, not vector paths.
    The Edit Strokes panel (a.k.a. Advanced stroke options) is available from within the Properties panel in two locations. The most direct route is the Edit Stroke button, but this doesn't appear for all selections or tools—for example, you'll find it when either the Ellipse or Polygon tools are selected, but not when the Rectangle tool is selected. The other, indirect route is through the Stroke presets/categories menu, at the bottom of the menu, under Stroke Options. In the resulting panel, you'll see an "Advanced" button that leads to the same Edit Stokes panel.
    Once you've saved a custom stroke, it should appear within the Stroke presets/categories menu in the Properties panel, assuming a vector tool (or vector object on the canvas) has been selected. (That said, I've never actually saved a custom stroke myself.) Try looking for it under whatever category the original stroke belonged to—e.g., Basic, Airbrush, Calligraphy, Charcoal, etc.

  • Can i open and edit animated GIF in Adobe Photoshop Touch?

    Can i open and edit animated GIF in Adobe Photoshop Touch?

    No, only regular static GIF images are supported. The desktop version of Photoshop does support this however.

  • I have used Lr many years without problems. Now it is inpossible to edit . Can not see the editing in main window only in the small thumbnail. Suddenly it is not possible to import  raw-files from my Linux camera ( it worked earlier)

    Editing mode does not work. I can not follow de editing in the main window. I cah see it in the thumbnail.

    From your description of the problem, I suspect that you have a standalone license but have downloaded and installed the CC update. Or, it's the other way around. In either case, you need to install the right version.

  • Can't view or edit Application Insights webtests in the new Azure Portal

    I'm in the process of setting up Application Insights for an Azure Cloud Services Web Role.  Things have been looking good so far - I've enabled App Insights telemetry to the VS2013 solution, configured correctly and am getting usage/monitoring data
    displayed in the NEW Azure Portal (portal.azure.com).
    I set up my first "webtest" on Friday to monitor the site availability from three separate locations around the world and alert when down; however, logging in today shows my webtests graph as blank, i.e. contains no data. 
    Usually, when this is the case, there's a link provided to create new webtests, but since I've already added a webtest, this is no longer the case.  So I can neither view or edit my existing webtest, nor create a new one.  I have tried clearing
    my browser private data and even use a different browser but the result is the same.  I have also tried deleting and recreating the Application Insights instance with the same name but the result is the same (although the data from the deleted instance
    remains...).  My only recourse is to create a new, differently named Application Insights instance and set it all up again, losing the telemetry collected so far.  This isn't such a big deal during the prototype stage, but when this goes into effect
    on the production site, deleting and starting from scratch whenever there's a webtests problem isn't going to be an option.
    How do I view/edit/clear existing webtests?  Is it possible to do this through Azure PowerShell or the Azure SDK?

    Hi Chris Haigh,
    We are working on this thread and will try to reply with the proper resolution as soon as possible.
    Regards,
    Azam khan

  • Can we determine path of my INIT.ORA file from data dictionary views.

    Hello Guru’s
    I am new to oracle, My question is for the sake of my knowledge: I work on oracle 10G.
    Is there any data dictionary view from where I can get the path of my INIT.ORA file.
    Regards,

    NewDay wrote:
    Hello Guru’s
    I am new to oracle, My question is for the sake of my knowledge: I work on oracle 10G.
    Is there any data dictionary view from where I can get the path of my INIT.ORA file.
    AFAIK , its no. You can check the path from the show parameter command like following,
    SQL> show parameter spfile
    NAME                                 TYPE
    VALUE
    spfile                               string
    /u01/app/oracle/product/10.2.0
    /db_1/dbs/spfileorcl.ora
    SQL>HTH
    Aman....

Maybe you are looking for