func init // checks installation Adobe Photoshop and adds references include("AdobePhotoshop") // adds using namespace sys.add_use('System.ComponentModel') // initialize a member if(not isdef('Name')) sys.add_var(this.name, 'ps.PsBatchDestinationType') blk_init.println(this.codename, ' = ', this.DestinationType(), ';') end // initialize parser sys._se_init('Parse', 'DestinationType', 'ps.PsBatchDestinationType') end func _se_make(value) return('(ps.PsBatchDestinationType)Enum.Parse(typeof(ps.PsBatchDestinationType), ' + d('Value') + ')') end func doMembers() blk.println('foreach (object item in TypeDescriptor.GetConverter(typeof(ps.PsBatchDestinationType)).GetStandardValues()) {').inc() event('onMembers', 'item') blk.dec().println('}') end func DestinationType() return('ps.PsBatchDestinationType.' + this.props('DestinationType').value) end