Skip to content

Instantly share code, notes, and snippets.

JMichaelTX JMichaelTX

Block or report user

Report or block JMichaelTX

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JMichaelTX
JMichaelTX / How to Display Progress Bar Using ASObjC Runner JXA.js
Last active Jan 13, 2016
[PROGRESS] How to Display Progress Bar Using ASObjC Runner [JXA] JavaScript for Automation
View How to Display Progress Bar Using ASObjC Runner JXA.js
/*
==============================================================================
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 Jan 14, 2016
DEMO & Functions for Real Progress Bar using ASObjC in AppleScript
View ASObjC Progress Bar AS.scpt
(*
==============================================================================
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 / JXA Alert Function.md
Last active Jan 14, 2016
JXA Alert Function - JavaScript for Automation
View JXA Alert Function.md

JXA Alert Function
See code below.

JMichaelTX JXA Gists
Because there is so little JavaScript for Automation (JXA) code that is published, I plan to publish as much as I can that will hopefully be of help to others learning JXA.

Much of what I publish will be based on the work of others, and I always try to cite those references in the code header. If I have failed to properly credit your code, please post a comment, and I will correct my Gist.

Your JXA Code
If you have example code you'd like to share, please post a link to your code. After having searched and evaluated various options for posting/sharing code, i have concluded that Github Gists is the best.

@JMichaelTX
JMichaelTX / (EN) How to Make Tag a Child Tag of a Parent Tag JXA.js
Last active Jan 15, 2016
[EN] Move a Tag to be a Child of a Parent Tag [JXA] - Evernote Mac, JavaScript for Automation
View (EN) How to Make Tag a Child Tag of a Parent Tag JXA.js
/*
⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶
[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 Jan 22, 2016
Evernote AppleScript to Set author property of Selected Notes (AS)
View (EN) Set Author of Selected Notes AS.scpt
(*
===============================================================================
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 Jan 24, 2016
Open Evernote Classic (local) Link in MIcrosoft Word 2011 Mac Using Word VBA
View OpenEvernoteNote_Word_VBA.bas
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 Feb 9, 2016
Evernote Mac Create File (.inetloc) Using Note Classic Link with AppleScript
View EN Create Note Link as File AS.applescript
@JMichaelTX
JMichaelTX / Transform String on Clipboard to Title Case JXA.js
Created Feb 11, 2016
Transform String on Clipboard to Title Case using JavaScript for Automation (JXA)
View Transform String on Clipboard to Title Case JXA.js
/*
⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶⩶
[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 Feb 13, 2016
Evernote Mac Set Note Creation Date from Selection using AppleScript
View EN Set Note Creation Date from Selection AS.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 Feb 23, 2016
Evernote Mac (EN Mac) Get and Sort Large List of Notes by Note Property using AppleScript and ASObjC.
View EN Mac Get & Sort Notes by Property AS.applescript
(*
===============================================================================
[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
You can’t perform that action at this time.