func init // checks installation Adobe Photoshop and adds references include("AdobePhotoshop") // initialize instance sys.add_object(this.codename, 'ps.PhotoshopSaveOptions') // initialize properties sys.set_typed_field(104, 'AlphaChannels') sys.set_typed_field(104, 'Annotations') sys.set_typed_field(104, 'EmbedColorProfile') sys.set_typed_field(104, 'Layers') sys.set_typed_field(104, 'SpotColors') sys.set_typed_field(104, 'AlphaChannels') // make methods for properties sys._prop_init('AlphaChannels', 0, 1, 104) sys._prop_init('Annotations', 0, 1, 104) sys._prop_init('EmbedColorProfile', 0, 1, 104) sys._prop_init('Layers', 0, 1, 104) sys._prop_init('SpotColors', 0, 1, 104) end func SaveOptions return(this.codename) end