Having trouble with PresetsManager.jsx
Posted: Fri Jul 15, 2011 9:23 pm
Hi X,
The code below throws a general error on the executeAction line of the code in the saveAllPresets function. I may be doing something wrong but thought I would let you know.
Code: Select all//@show include
//@includepath "/c/Program Files/Adobe/xtools;/Developer/xtools"
//@include "xlib/stdlib.js"
//@include "xlib/PresetsManager.jsx"
var f = new File('~/desktop/sample.pat');
var mgr = new PresetsManager();
// I get an error with this line
mgr.saveAllPresets(PresetType.PATTERNS, f);
PS I did a CSV update so I should be current.
The code below throws a general error on the executeAction line of the code in the saveAllPresets function. I may be doing something wrong but thought I would let you know.
Code: Select all//@show include
//@includepath "/c/Program Files/Adobe/xtools;/Developer/xtools"
//@include "xlib/stdlib.js"
//@include "xlib/PresetsManager.jsx"
var f = new File('~/desktop/sample.pat');
var mgr = new PresetsManager();
// I get an error with this line
mgr.saveAllPresets(PresetType.PATTERNS, f);
PS I did a CSV update so I should be current.