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
//Illustratorドキュメントの同一リンクファイルを一括で再リンクする | |
//処理対象 | |
//ドキュメント内で選択されているリンク | |
//重要:選択されていなくても、選択箇所と同一ファイルにリンクしていたら処理対象 | |
//注意点 | |
//ドキュメント内のリンク選択はダイレクト選択ツールで選択すること | |
//編集モードで実行しないように。処理が完了しなくなってしまう |
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
var doc = app.activeDocument; | |
var compFonts = doc.compositeFonts; | |
for (var i=compFonts.length-1; i>0; i--) { | |
compFonts[i].remove(); | |
} |
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
//Illustratorの選択テキストを本当の標準字形に戻す | |
var selObj = activeDocument.selection; | |
if (selObj.length > 0) { | |
//オブジェクト選択 | |
for (var i = 0; i < selObj.length; i++) { | |
if (selObj[i] != undefined){ | |
if (selObj[i].typename== "TextFrame") { | |
var myText = selObj[i].textRange; |
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
app.preferences.setBooleanPreference("LiveEdit_State_Machine",false); |
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
#!/bin/bash | |
# <bitbar.title>Speedtest and Log</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>hann-solo</bitbar.author> | |
# <bitbar.author.github>hnsol</bitbar.author.github> | |
# <bitbar.desc>Displays the last 10 lines of speedtest. Keeps a log of speedtest results.</bitbar.desc> | |
# <bitbar.image>http://www.hosted-somewhere/pluginimage</bitbar.image> | |
# <bitbar.dependencies>bash</bitbar.dependencies> | |
# <bitbar.abouturl>http://url-to-about.com/</bitbar.abouturl> |
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
// ==UserScript== | |
// @name Gist Downloader Plus | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Directly download GitHub gists as source files. | |
// @author Ahmed Mohamed Abdelaty | |
// @match https://gist.github.com/*/* | |
// @grant GM_addStyle | |
// @grant GM_xmlhttpRequest | |
// @grant GM_download |
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
#!/usr/bin/env python3 | |
import subprocess | |
import plistlib | |
import time | |
def send_notification(title, message, sound=None): | |
command = 'display notification "{}" with title "{}" sound name "{}"'\ | |
.format(message, title, sound) \ |
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
<!-- | |
Generated with: https://hidutil-generator.netlify.app/ | |
Put in new file: ~/Library/LaunchAgents/com.local.KeyRemapping.plist | |
load with: | |
$ launchctl load ~/Library/LaunchAgents/com.local.KeyRemapping.plist | |
unload with (if you change it): | |
$ launchctl unload ~/Library/LaunchAgents/com.local.KeyRemapping.plist | |
should preserve through reboots. |
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
/** | |
* @file captureFont.jsxで記憶したフォントを選択しているテキストに適用する | |
* @version 1.0.0 | |
* @author sttk3.com | |
* @copyright © 2023 sttk3.com | |
*/ | |
//@target 'illustrator' | |
//@targetengine 'com.sttk3.attributes' |
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
/** | |
* @file 選択しているテキストのフォントをtargetengineに記憶する。pasteFont.jsxとセットで利用する | |
* @version 1.0.0 | |
* @author sttk3.com | |
* @copyright © 2023 sttk3.com | |
*/ | |
//@target 'illustrator' | |
//@targetengine 'com.sttk3.attributes' |
NewerOlder