Skip to content

Instantly share code, notes, and snippets.

View JMichaelTX's full-sized avatar

JMichaelTX JMichaelTX

View GitHub Profile
@JMichaelTX
JMichaelTX / Evernote Mac File Import.AppleScript
Last active December 21, 2020 15:02
• Import Finder Selected Files to Evernote Mac • User will be prompted for Tags
property ptyScriptName : "Import Selected Files Selected in Finder into Evernote with Tags"
property ptyScriptVer : "3.1" -- Add support for Tag Input
property ptyScriptDate : "2018-10-12"
property ptyScriptAuthor : "JMichaelTX"
property version : ptyScriptVer
property LF : linefeed
property ptyENicon : path to resource "Evernote.icns" in bundle (path to application "Evernote")
(*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@JMichaelTX
JMichaelTX / Create Internet Location File from EN Note.applescript
Last active October 3, 2022 00:39
Create an .inetloc File to open Evernote Note in Evernote Mac app using AppleScript.
property ptyScriptName : "Create Internet Location File from EN Note"
property ptyScriptVer : "2.0"
property ptyScriptDate : "2018-03-29"
property ptyScriptAuthor : "JMichaelTX"
(*
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REQUIRED:
1. macOS 10.11.6+
2. Mac Applications
@JMichaelTX
JMichaelTX / Get List of Finder Tags.applescript
Last active December 3, 2024 10:17
Get Finder Tag list from plist file. By @shanestanley
(*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get List of Finder Tags
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DATE: 2018-03-19
AUTHOR: ShaneStanley with minor mod by JMichaelTX
REF:
• How Can I get a List of All Finder Tags?
• Late Night Software Ltd.,
• http://forum.latenightsw.com/t/how-can-i-get-a-list-of-all-finder-tags/1192/2?u=jmichaeltx
@JMichaelTX
JMichaelTX / revealPFItemInFinder.applescript
Last active December 3, 2024 10:17
Here is a handler I use to reveal in Finder the item currently selected in Path Finder. Often I need to do something in the Finder window, so I have added a pause until the Finder window name is the same as the Path Finder window name. Revised to Ve
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on revealPFItemInFinder()
--–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
(* VER: 2.1 2018-03-19
PURPOSE: Reveal Item in Finder that is Selected in Path Finder
RETURNS: alias of item selected in both Finder and Path Finder
AUTHOR: JMichaelTX
--–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
@JMichaelTX
JMichaelTX / Set Evernote Mac Font and Text Size using AppleScript.AppleScript
Last active June 13, 2017 01:56
Set Evernote Mac Font and Text Size using AppleScript
property ptyScriptName : "Set EN Mac Font Name and Size"
property ptyScriptVer : "2.0"
property ptyScriptDate : "2017-06-12"
property ptyScriptAuthor : "JMichaelTX"
property LF : linefeed
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
my enSetFontAndSize("Courier New", "14")
@JMichaelTX
JMichaelTX / Add Prefix Suffix to Note Titles.applescript
Created April 17, 2017 23:15
Evernote Mac -- Add Prefix or Suffix to Selected Note Titles
(*
===============================================================================
Add Prefix or Suffix to Selected Note Titles
===============================================================================
VER: 1.0 LAST UPDATE: 2017-04-17
AUTHOR: JMichaelTX
USE AT YOUR OWN RISK.
This script has had only VERY LIMITED TESTING.
@JMichaelTX
JMichaelTX / Create Hyperlink with Custom Protocol from Selected Text.applescript
Created August 3, 2016 05:46
AppleScript to Create Rich Text Hyperlink with Custom Protocol from Selected Text
@JMichaelTX
JMichaelTX / EN Mac Append Note OR Create New Note (AS).applescript
Last active March 13, 2021 20:02
AppleScript to Append HTML to Existing Evernote Note, or Create New Note (EN Mac)
(*
===============================================================================
Append to Existing Note OR Create New Note
===============================================================================
VER: 1.2 LAST UPDATE: 2016-07-05
PURPOSE:
• Search for Existing Note by Title and Notebook
• IF found, append HTML
@JMichaelTX
JMichaelTX / Copy & Get Selection to Clipboard JXA.js
Last active December 3, 2024 10:18
Copy & Get Selection to Clipboard using JavaScript for Automation (JXA) [Ver 1.1.1]
'use strict';
var app = Application.currentApplication()
app.includeStandardAdditions = true
var mySelection = copySelection("Safari", 1)
mySelection
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function copySelection(pAppName, pTimeLimitSec) {
@JMichaelTX
JMichaelTX / EN Mac Create Note from Text in Delimiters.applescript
Last active May 8, 2019 22:12
Evernote Mac AppleScript to Create Summary Note from Extracted Text in Delimiters (EN Mac AS)
(*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[EN] Extract Text in Delimiters (AS)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VER: 1.3 LAST UPDATE: 2016-06-13
PURPOSE:
• Extract text in delimited from all Notes in Specified Notebook