mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Intentionally broken for testing purposes.
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
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);
|
||||
ref1.putName(stringIDToTypeID("dataSetClass"), arguments[1]);
|
||||
desc1.putReference(charIDToTypeID("null"), ref1);
|
||||
desc = executeAction(charIDToTypeID("Aply"), desc1, DialogModes.NO);
|
||||
saveFile.encoding = "UTF8";
|
||||
saveFile.open("e", "TEXT", "????");
|
||||
saveFile.writeln("done!");
|
||||
saveFile.write("args: ");
|
||||
for (i = 0; i < arguments.length; i++) {
|
||||
saveFile.write(arguments[i] + ",");
|
||||
}
|
||||
saveFile.writeln();
|
||||
saveFile.close();
|
||||
Reference in New Issue
Block a user