This file contains hidden or 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
/* | |
<javascriptresource> | |
<name>InDesignに合わせてリサイズ</name> | |
<category>YPresets</category> | |
</javascriptresource> | |
*/ | |
// InDesignのリンク配置サイズに合わせてPhotoshop画像を指定ppiへ非破壊リサイズするユーティリティ(BridgeTalk + ScriptUI) | |
#target photoshop |
This file contains hidden or 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
/* | |
<javascriptresource> | |
<name>Illustratorに合わせてリサイズ</name> | |
<category>YPresets</category> | |
</javascriptresource> | |
*/ | |
// Photoshop側からIllustratorの配置実寸を参照し、指定ppiへ非破壊リサンプルするユーティリティ(BridgeTalk+ScriptUI) | |
#target photoshop | |
// 実行対象: Photoshop(IllustratorとはBridgeTalkで通信) |
This file contains hidden or 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/zsh | |
lsreg="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister" | |
apps=( | |
"/Applications/Adobe Photoshop (Beta)/Adobe Photoshop (Beta).app,フォトショップベータ" | |
"/Applications/Adobe Illustrator (Beta)/Adobe Illustrator.app,いられベータ" | |
"/Applications/Adobe InDesign 2025 (Beta)/Adobe InDesign 2025 (Beta).app,いんででベータ" | |
) |
This file contains hidden or 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
/** | |
* 選択オブジェクトまたはその配列から、 | |
* 配置画像(PlacedItem)の長辺・短辺(ポイント値)を再帰的に探索し取得する | |
* | |
* @param {PageItem|Array} selection - Illustratorの選択オブジェクト、またはその配列 | |
* @returns {Array} [{ longSide: Number, shortSide: Number, placedItem: PlacedItem }] | |
*/ | |
function getPlacedItemsLongAndShortSides(selection) { | |
// 再帰的に配置画像を収集 | |
function collectPlacedItems(pageItem, result) { |
This file contains hidden or 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
/* | |
<javascriptresource> | |
<name>疑似網点生成CMYK</name> | |
<category>YPresets</category> | |
</javascriptresource> | |
*/ | |
(function () { | |
var isGray = app.activeDocument.mode === DocumentMode.GRAYSCALE; |