This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function XDocument::OnSwitchView(eventObj) | |
| { | |
| XDocument.View.Window.Caption = "Name of Form"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub TableOfContents_Create() | |
| 'PURPOSE: Add a Table of Contents worksheets to easily navigate to any tab (multiple columns) | |
| 'SOURCE: www.TheSpreadsheetGuru.com | |
| Dim sht As Worksheet | |
| Dim Content_sht As Worksheet | |
| Dim myArray As Variant | |
| Dim x As Long, y As Long, z As Long | |
| Dim shtName1 As String, shtName2 As String | |
| Dim ContentName As String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Finder" to set shortName to name of (theFile as alias) | |
| set theDialogText to "What is the Project/Client name? - " | |
| set theButtonContinue to "Save Folder" | |
| set theButtoneAbort to "Cancel" | |
| set theDialogTitle to "Rename Folder" | |
| tell application "System Events" | |
| activate | |
| set theResult to (display dialog theDialogText with title theDialogTitle default answer "" buttons {theButtonContinue, theButtoneAbort} default button 1 giving up after 60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub TableOfContents_Create() | |
| 'PURPOSE: Add a Table of Contents worksheets to easily navigate to any tab | |
| 'SOURCE: www.TheSpreadsheetGuru.com | |
| Dim sht As Worksheet | |
| Dim Content_sht As Worksheet | |
| Dim myArray As Variant | |
| Dim x As Long, y As Long | |
| Dim shtName1 As String, shtName2 As String | |
| Dim ContentName As String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Private Sub SetTitusClassificationNew(oMailItem As Object, Classification As String) | |
| Dim oProp As Object 'Outlook.UserProperty | |
| Set oProp = oMailItem.UserProperties.Add("TitusAutomatedClassification", 1) | |
| oProp.value = "TLPropertyRoot=AusStandard;Protective Marking=" & Classification | |
| Set oProp = oMailItem.UserProperties.Add("AusStandardProtective Marking", 1) | |
| oProp.value = Classification | |
| End Sub | |
| 'The classification argument should be the classification as text ie UNOFFICIAL, UNCLASSIFIED, FOR OFFICIAL USE ONLY etc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Pixelmator Pro" | |
| tell the front document | |
| set theSearchString to text returned of (display dialog ¬ | |
| "What text would you like to find?" default answer ¬ | |
| "" buttons {"Cancel", "Continue"} default button "Continue") | |
| set theReplacementString to text returned of (display dialog ¬ | |
| "What would you like to replace the text with?" default answer ¬ | |
| "" buttons {"Cancel", "Continue"} default button "Continue") | |
| replace text theSearchString with theReplacementString | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use scripting additions | |
| tell application "Pixelmator Pro" | |
| tell the front document | |
| if class of current layer = image layer then | |
| set listOfMaskChoices to {"Brights", "Darks"} | |
| set maskChoice to choose from list listOfMaskChoices with prompt ¬ | |
| "Choose a luminosity mask:" default items {"Brights"} | |
| if not maskChoice = false then | |
| set temporaryMaskFile to ((path to temporary items from user domain ¬ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Pixelmator Pro" | |
| activate | |
| tell front document | |
| if not (count selected layers) = 1 then | |
| display alert "Make sure a single text layer is selected." | |
| else | |
| if not class of current layer = text layer then | |
| display alert "Make sure a single text layer is selected." | |
| else | |
| set originalVisibleLayers to index of every layer ¬ |