This file contains 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 AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
-- The folder to save the attachments in (must already exist) | |
set attachmentsFolder to ((path to home folder) & "Documents:Attachments") as string | |
-- Save in a sub-folder based on the name of the rule in Mail |
This file contains 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
javascript: (() => { | |
var anchorTest = 'bookmarklet-anchor-test'; | |
if (document.getElementById(anchorTest)) { | |
alert("Anchors already present"); | |
return; | |
} | |
function createAnchor(anchorId) { | |
var anchor = document.createElement('a'); | |
anchor.href = '#' + anchorId; |
OlderNewer