Quantcast
Channel: Planet DTP@jp
Viewing all articles
Browse latest Browse all 4816

FORCE: MakePSUserConfig

$
0
0


私個人的には
新しいUIを使って行くようにした方が良いかな?と思うけど…


「MakePSUserConfig.scpt.zip」をダウンロード

(*
Photoshop CC2019(20.0)の「変形」仕様変更について
https://forums.adobe.com/docs/DOC-9522

上記URLに記載のある設定ファイルを作成する


*)

---ファイル名を定義
settheFileNameto"PSUserConfig.txt" astext
logtheFileName

---記述する設定値を定義
setthePrefTextto"TransformProportionalScale 0" astext
logthePrefText

---ユーザーの初期設定フォルダまでを取得
setthePreferenceFoldertopath topreferences folderfromuser domain
logthePreferenceFolder

---初期設定フォルダをUNIXパスに変換
setthePreferenceFolderPosixPathtoPOSIX pathofthePreferenceFolderastext
logthePreferenceFolderPosixPath

---初期設定フォルダまでのUNIXパスを定義
setthePhotoshopPreferenceFolderPosixPathto ("" & thePreferenceFolderPosixPath& "Adobe Photoshop CC 2019 Settings/") astext
logthePhotoshopPreferenceFolderPosixPath

---Photoshop初期設定フォルダを作成
settheCommandComto ("mkdir -p '" & thePhotoshopPreferenceFolderPosixPath& "'") astext
logtheCommandCom
do shell scripttheCommandCom

---設定するファイルを作成する
settheCommandComto ("touch '" & thePhotoshopPreferenceFolderPosixPath& theFileName& "'") astext
logtheCommandCom
do shell scripttheCommandCom

---設定値ファイルを書き込む
settheCommandComto ("echo \"" & thePrefText& "\" > '" & thePhotoshopPreferenceFolderPosixPath& theFileName& "'") astext
logtheCommandCom
do shell scripttheCommandCom

---初期設定ファイルの場所を開く
tellapplication"Finder"
activate
settheCommandComto ("open '" & thePhotoshopPreferenceFolderPosixPath& "'") astext
logtheCommandCom
do shell scripttheCommandCom
endtell

log"初期設定ファイルを作成しました"



Viewing all articles
Browse latest Browse all 4816

Trending Articles