Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon





© winscripter.com
1998-2004







Script: Outlook Constants - JScript Format

Posted by on Sunday, January 18, 2004 (PST)

Script: Outlook constants used when working with "Outlook.Application".

 

/**
 * Outlook Constants
 *
http://www.winscripter.com
 **/
/* OlActionCopy Like Constants */
var olReply   = 0;
var olReplyAll   = 1;
var olForward   = 2;
var olReplyFolder = 3;
var olRespond   = 4;
/* OlActionReplyStyle Constants */
var olOmitOriginalText    = 0;
var olEmbedOriginalItem   = 1;
var olIncludeOriginalText = 2;
var olIndentOriginalText  = 3;
/* OlActionResponseStyle Constants */
var olOpen   = 0;
var olSend   = 1;
var olPrompt = 2;
/* OlActionShowOn Constants */
var olDontShow   = 0;
var olMenu    = 1;
var olMenuAndToolbar = 2;
/* OlAttachmentType Constants */
var olByValue   = 1;
var olByReference  = 4;
var olEmbeddedItem = 5;
var olOLE    = 6;
/* OlBusyStatus Constants */
var olFree   = 0;
var olTentative  = 1;
var olBusy   = 2;
var olOutOfOffice = 3;
/* OlDaysOfWeek */
var olSunday =1;
var olMonday =2;
var olTuesday =4;
var olWednesday =8;
var olThursday =16;
var olFriday =32;
var olSaturday =64;
/* OlDefaultFolders Constants*/
var olFolderDeletedItems = 3;
var olFolderOutbox  = 4;
var olFolderSentMail  = 5;
var olFolderInbox   = 6;
var olFolderCalendar  = 9;
var olFolderContacts  = 10;
var olFolderJournal  = 11;
var olFolderNotes   = 12;
var olFolderTasks   = 13;
/* OlFlagStatus Constants */
var olNoFlag  = 0;
var olFlagComplete = 1;
var olFlagMarked  = 2;
/* OlFolderDisplayMode Constants */
var olFolderDisplayNormal  = 0;
var olFolderDisplayFolderOnly  = 1;
var olFolderDisplayNoNavigation = 2;
/* OlFormRegistry Constants */
var olDefaultRegistry  = 0;
var olPersonalRegistry  = 2;
var olFolderRegistry  = 3;
var olOrganizationRegistry = 4;
/* OlGender Constants */
var olUnspecified = 0;
var olFemale = 1;
var olMale  = 2;
/* OlImportance Constants */
var olImportanceLow = 0;
var olImportanceNormal = 1;
var olImportanceHigh = 2;
/* OlInspectorClose Constants */
var olSave   = 0;
var olDiscard  = 1;
var olPromptForSave = 2;
/* OlItems Constants */
var olMailItem  = 0;
var olAppointmentItem = 1;
var olContactItem  = 2;
var olTaskItem  = 3;
var olJournalItem  = 4;
var olNoteItem  = 5;
var olPostItem  = 6;
/* OlJournalRecipientsType Constants */
var olAssociatedContact = 1;
/* OlMailingAddress Constants */
var olNone  = 0;
var olHome  = 1;
var olBusiness = 2;
var olOther  = 3;
/* OlMailRecipientType Constants */
var olOriginator = 0;
var olTo  = 1;
var olCC  = 2;
var olBCC  = 3;
/* OlMeetingRecipientType Constants */
var olOrganizer = 0;
var olRequired = 1;
var olOptional = 2;
var olResource = 3;
/* OlMeetingResponse Constants */
var olMeetingTentative = 2;
var olMeetingAccepted = 3;
var olMeetingDeclined = 4;
/* OlMeetingStatus Constants */
var olNonMeeting  = 0;
var olMeeting  = 1;
var olMeetingReceived = 3;
var olMeetingCanceled = 5;
/* OlNoteColor Constants */
var olBlue  = 0;
var olGreen  = 1;
var olPink  = 2;
var olYellow = 3;
var olWhite  = 4;
/* OlRecurrenceType Constants */
var olRecursDaily  = 0;
var olRecursWeekly = 1;
var olRecursMonthly = 2;
var olRecursMonthNth = 3;
var olRecursYearly = 5;
var olRecursYearNth = 6;
/* OlRemoteStatus Constants */
var olRemoteStatusNone = 0;
var olUnMarked  = 1;
var olMarkedForDownload = 2;
var olMarkedForCopy = 3;
var olMarkedForDelete = 4;
/* OlResponseStatus Constants */
var olResponseNone  = 0;
var olResponseOrganized  = 1;
var olResponseTentative  = 2;
var olResponseAccepted  = 3;
var olResponseDeclined  = 4;
var olResponseNotResponded = 5;
/* OlSaveAsType Constants */
var olTXT  = 0;
var olRTF  = 1;
var olTemplate = 2;
var olMSG  = 3;
var olDoc  = 4;
/* OlSensitivity Constants */
var olNormal  = 0;
var olPersonal  = 1;
var olPrivate  = 2;
var olConfidential = 3;
/* OlTaskDelegationState Constants */
var olTaskNotDelegated  = 0;
var olTaskDelegationUnknown = 1;
var olTaskDelegationAccepted = 2;
var olTaskDelegationDeclined = 3;
/* OlTaskOwnerShip Constants */
var olNewTask  = 0;
var olDelegatedTask = 1;
var olOwnTask  = 2;
/* OlTaskRecipientType Constants */
var olUpdate  = 1;
var olFinalStatus  = 2;
/* OlTaskResponse Constants */
var olTaskSimple = 0;
var olTaskAssign = 1;
var olTaskAccept = 2;
var olTaskDecline = 3;
/* OlTaskStatus Constants */
var olTaskNotStarted = 0;
var olTaskInProgress = 1;
var olTaskComplete = 2;
var olTaskWaiting  = 3;
var olTaskDeferred = 4;
/* OlTrackingStatus Constants */
var olTrackingNone  = 0;
var olTrackingDelivered  = 1;
var olTrackingNotDelivered = 2;
var olTrackingNotRead  = 3;
var olTrackingRecallFailure = 4;
var olTrackingRecallSuccess = 5;
var olTrackingRead  = 6;
var olTrackingReplied  = 7;
/* OlUserPropertyType Constants */
var olText  = 1;
var olNumber = 3;
var olDateTime = 5;
var olYesNo  = 6;
var olDuration = 7;
var olKeywords = 11;
var olPercent = 12;
var olCurrency = 14;
var olFormula = 18;
var olCombination = 19;



WSH and ADSI Administrative Scripting

New Articles
  • List installed COM objects and associated ProgIDs
    Script: Lists all COM Objects and their associated ProgIDs (If available). Win32_ClassicCOMClassSetting

  • Script: File Rotator
    Script: Rotate files where the most current file has the lowest number in the archive. When files exceed the retention period, they are deleted. Typically used for log files, backups, etc..

  • Script: Create IIS Website and DNS record
    Script: Dan Casier sent me this script that will create a website and appropriate DNS record. The script is intended for Windows 2000 Server with local DNS and necessary DNS mof installed.


  • Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon