opened.script #1

  • //
  • guest/
  • axel_wienberg/
  • sitepadp4/
  • files/
  • Tools/
  • Perforce/
  • opened.script
  • View
  • Commits
  • Open Download .zip Download (821 B)
!!Script
// print a list of files opened in the current client to the output window.
// runs p4 opened
//
// (c) 2000 Software System Group, TU Harburg
//     Axel Wienberg, ax.wienberg@tu-harburg.de
//
// based on CSRCS binding by joe robertson, jmrobert@ro.com
//
var perfdir = File.getApplicationPath() + "\\Tools\\Perforce";

function DoCommand()
{
	output = getOutput()
	var editor = getActiveEditor();
	// common function moved to utilities
	var util = getScriptObject(perfdir + "\\utilities.script");
  var p4exe = util.getP4ExePath();
	if (p4exe == null){
		output.writeLine("P4 executable not found.");
	} 
	else {	
		//set command line 
		var commandLine = p4exe + " opened";
		//run it
		var tool = newTool();
	  tool.showCommandWindow = false;
	  tool.async = true;
	  tool.run(commandLine);
	}
}

!!/Script

# Change User Description Committed
#1 1014 axel_wienberg copied perforte and sitepadp4 files from my homepage to the public depot.
happy branching and improving :-)