mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Updates, Improvements, and Fixes
* Moved scripts / runner to separate package
allows future replacement with PS Plugin.
* Fixed issues with Refresh and removed "layer" function.
* Added github documentation via godocdown.
* Reduced number of calls to Panic.
* Updated Tests
* Updated documentation.
* Fixed warnings.
* .gitignore now ignores .test and .out files.
This commit is contained in:
15
runner/scripts/applyDataset.jsx
Normal file
15
runner/scripts/applyDataset.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
var saveFile = File(arguments[0]);
|
||||
if(saveFile.exists)
|
||||
saveFile.remove();
|
||||
var idAply = charIDToTypeID("Aply");
|
||||
var desc1 = new ActionDescriptor();
|
||||
var idnull = charIDToTypeID("null");
|
||||
var ref1 = new ActionReference();
|
||||
var iddataSetClass = stringIDToTypeID("dataSetClass");
|
||||
ref1.putName(iddataSetClass, arguments[1]);
|
||||
desc1.putReference(idnull, ref1);
|
||||
executeAction(idAply, desc1, DialogModes.NO);
|
||||
saveFile.encoding = "UTF8";
|
||||
saveFile.open("e", "TEXT", "????");
|
||||
saveFile.writeln("done!");
|
||||
saveFile.close();
|
||||
Reference in New Issue
Block a user