Skip to content

Instantly share code, notes, and snippets.

@melangue
melangue / History|-10bcd817|entries.json
Last active September 21, 2023 11:40
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///home/rtbs_257/git/traffic-jobs/build/Xj7LXq9ZufLiZptTMZhr_O7WA62kCZ0KwnoQ9z0wV_h9SNoVhQ23i5sLcyrplJ_YBy2PMTheu82ahmXxdjX_I7YPG16KZmaNKtoqDOVf_zJZSqV3Ws7gysveMpt0l/src/OffersHandler.ts","entries":[{"id":"w6wX.ts","timestamp":1649412588764},{"id":"wvFy.ts","source":"moved.source","timestamp":1649412656914}]}
@melangue
melangue / run_workflow_from_mac.md
Last active April 17, 2020 08:51
Run workflows in Workflow app from your Mac

Run workflows in Workflow app from your Mac

Choose your workflow from a list, pass some input, hit OK.
You'll get a push notification from Pushbullet on your iOS device.
It will run the specified workflow with your input when opened.

Instructions:

@melangue
melangue / script_launcher_plus.scpt
Created February 25, 2017 10:47
Script launcher plus - choose a script from folder prompt and run it
-- Script Launcher Plus
-- 25/02/17
-- set path to script folder
set _Path to ("/Users/You/Desktop" as POSIX file)
-- prompt user to choose a file from script folder
set scriptLaunch to choose file with prompt "Choose a script to run" default location _Path
try
-- run chosen script
@melangue
melangue / copyURLplusTextSafari.scpt
Created February 5, 2017 09:28
Easily copy your text selection + url, title from current tab in Safari and today's to clipboard. Useful for referencing.
-- Safari - this copies Title, URL, Date (current tab) and text which you highlighted to the clipboard
-- originally from here: https://discussions.apple.com/thread/4561056?tstart=0
-- modified to show tab's Title.
-- I recommend assigning it to a shortcut, ctrl + c for example.
-- V
tell application "Safari"
activate
set theURL to URL of front document
set theTitle to name of front document
@melangue
melangue / CountOpenSafariTabs.scpt
Last active February 8, 2021 13:45 — forked from edenwaith/CountOpenSafariTabs.scpt
AppleScript: Count the number of open tabs in Safari and show a notification
-- CountOpenSafariTabs.scpt
-- Author: Chad Armstrong
-- Date: 13 May 2016
-- Description: Count the number of open tabs in Safari
-- To run from CLI: osascript CountOpenSafariTabs.scpt
--
-- Modified by V on 4 February 2017 to show a system notification with the number
tell application "Safari"