Skip to content

Instantly share code, notes, and snippets.

View JMichaelTX's full-sized avatar

JMichaelTX JMichaelTX

View GitHub Profile
@JMichaelTX
JMichaelTX / How to Display Progress Bar Using ASObjC Runner JXA.js
Last active January 13, 2016 21:34
[PROGRESS] How to Display Progress Bar Using ASObjC Runner [JXA] JavaScript for Automation
/*
==============================================================================
PURPOSE: Show how to display real Progress Bar using ASObjC Runner app in JXA
• Redesigned to use FUNCTIONS
VER: 2.0 DATE: Tue, Jan 12, 2016
AUTHOR: JMichaelTX
Please PM me with any bugs/issues/questions
@JMichaelTX
JMichaelTX / ASObjC Progress Bar AS.scpt
Created January 14, 2016 04:52
DEMO & Functions for Real Progress Bar using ASObjC in AppleScript
(*
==============================================================================
PURPOSE: Show how to display real Progress Bar using ASObjC Runner app
• Redesigned to use FUNCTIONS
VER: 1.1.2 DATE: Mon, May 18, 2015
AUTHOR: JMichaelTX
Please post comment any bugs/issues/questions or suggestions for improvement
@JMichaelTX
JMichaelTX / (EN) How to Make Tag a Child Tag of a Parent Tag JXA.js
Last active January 15, 2016 16:58
[EN] Move a Tag to be a Child of a Parent Tag [JXA] - Evernote Mac, JavaScript for Automation
/*
⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶
[EN] How to Make Tag a Child Tag of a Parent Tag [JXA]
⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶
DATE: Fri, Jan 15, 2016
AUTHOR: JMichaelTX (in most forums)
Find any bugs/issues or have suggestions for improvement?
Post below, or contact me via PM or at blog.jmichaeltx.com/contact/
REF:
@JMichaelTX
JMichaelTX / (EN) Set Author of Selected Notes AS.scpt
Last active January 22, 2016 05:00
Evernote AppleScript to Set author property of Selected Notes (AS)
(*
===============================================================================
Set Author of Selected Notes
===============================================================================
VER: 1.0 LAST UPDATE: 2016-01-21
PURPOSE:
• Set the Author field in all selected Notes
@JMichaelTX
JMichaelTX / OpenEvernoteNote_Word_VBA.bas
Created January 24, 2016 01:12
Open Evernote Classic (local) Link in MIcrosoft Word 2011 Mac Using Word VBA
Private Declare Function system Lib "libc.dylib" (ByVal command As String) As Long '*** system docs here: http://pubs.opengroup.org/onlinepubs/9699919799/ Sub OpenURL(pURL As String) '================================================================ ' OpenURL Sub Procedure ' ' VER: 1.0 DATE: 2016-01-23 ' ' PURPOSE: Open any URL (including custom protocols) using Mac system "open" command ' ' REQUIRES: ' This function at top of module: ' Private Declare Function system Lib "libc.dylib" (ByVal command As String) As Long ' ' REF: ' 1. How to Use the system() function from the standard C library in a VBA Macro ' http://stackoverflow.com/a/12320294/915019 ' BY: Robert Knight '================================================================ Dim result As Long Dim CMDStr As String CMDStr = "open " & pURL result = system(CMDStr) Debug.Print Str(result) E
@JMichaelTX
JMichaelTX / EN Create Note Link as File AS.applescript
Created February 9, 2016 01:30
Evernote Mac Create File (.inetloc) Using Note Classic Link with AppleScript
@JMichaelTX
JMichaelTX / Transform String on Clipboard to Title Case JXA.js
Created February 11, 2016 01:18
Transform String on Clipboard to Title Case using JavaScript for Automation (JXA)
/*
⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶
[STRINGS] Transform String on Clipboard to Title Case [JXA]
⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶
DATE: Wed, Feb 10, 2016
AUTHOR: JMichaelTX (in most forums)
Find any bugs/issues or have suggestions for improvement?
Contact me via PM or at blog.jmichaeltx.com/contact/
REF: https://github.com/gouch/to-title-case/blob/master/to-title-case.js
@JMichaelTX
JMichaelTX / EN Set Note Creation Date from Selection AS.applescript
Created February 13, 2016 02:56
Evernote Mac Set Note Creation Date from Selection using AppleScript
(*
=================================================================
SCRIPT NAME: Set EN CreationDate from Selection
DATE: Thu, Jan 7, 2016 VER: 1.2
PURPOSE:
• Set the EN Note Creation Date using text date which is selected
• Expects the text date format to be in the form based on current Sys Pref settings
• For USA: "Mon d, yyyy" or "m/d/yyyy"
@JMichaelTX
JMichaelTX / EN Mac Get & Sort Notes by Property AS.applescript
Last active February 23, 2016 09:06
Evernote Mac (EN Mac) Get and Sort Large List of Notes by Note Property using AppleScript and ASObjC.
(*
===============================================================================
[EN] Get and Sort Notes by Note Property Using "every note" Method & ASObJC [AS]
===============================================================================
VER: 2.0 LAST UPDATE: 2016-02-22
PURPOSE:
• Get and Sort Notes by Note Property Using "every note" Method & ASObJC
• This script can handle very large list of Notes
@JMichaelTX
JMichaelTX / trimThis Function AS.applescript
Last active February 26, 2016 03:19
AppleScript Trim Function / Handler Using ASObjC (Shane Stanley)
###BEGIN~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# trimThis() Trim (remove) Characters from Left and/or Right of String
#
# Ver 1.1 2016-02-25
# AUTHOR: Shane Stanley
# (minor revisions by JMichaelTX)
# REF: MacScripter / Trim [Remove Spaces]
# http://macscripter.net/viewtopic.php?pid=182209#p182209
# PARAMETERS:
# • pstrCharToTrim : A list of characters to trim, or true to use default