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 / 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 / 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 Resources.md
Last active Oct 2, 2019
JavaScript for Automation (JXA) Resources
View JXA Resources.md

JXA Resources

Revised: 2017-06-24 11:21 PM CT

NOTICE:

This page has been transferred to JXA Resources in the JXA Wiki of group.io. All further updates will be made there, and this GitHub Gist page will eventually be removed.

JXA

This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

@JMichaelTX
JMichaelTX / JXA_PersistentProperties.js
Last active May 10, 2017 — forked from RobTrew/JXA_PersistentProperties.js
Persistent 'properties' for OS X JavaScript for Applications (JXA) Forked from Rob Trew
View JXA_PersistentProperties.js
(function () {
'use strict';
// OSX JavaScript for Applications lacks the persistent 'properties'
// of AppleScript (in which global variables and properties persist between script runs)
// but we can, of course, serialise to JSON or plist at the end of a script
// parsing it at the start of the next run.
// Here is one approach to persistence between script runs
// using JSON.stringify() and JSON.parse()
@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 / Copy EN Note Link (Classic) AS.applescript
Last active Nov 15, 2018
[EN] Classic - Evernote Mac - Put Classic Note Link on Clipboard as Rich Text using Note Title -- AppleScript
View Copy EN Note Link (Classic) AS.applescript
@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
You can’t perform that action at this time.