« 로봇이 아니야 ロボットじゃない~君に夢中!~  Roboti Aniya (I Am Not A Robot)  e01 | トップページ | Perfume »

MakePSUserConfig


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


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

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

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


*)

---ファイル名を定義
set theFileName to "PSUserConfig.txt" as text
log theFileName

---記述する設定値を定義
set thePrefText to "TransformProportionalScale 0" as text
log thePrefText

---ユーザーの初期設定フォルダまでを取得
set thePreferenceFolder to path to preferences folder from user domain
log thePreferenceFolder

---初期設定フォルダをUNIXパスに変換
set thePreferenceFolderPosixPath to POSIX path of thePreferenceFolder as text
log thePreferenceFolderPosixPath

---初期設定フォルダまでのUNIXパスを定義
set thePhotoshopPreferenceFolderPosixPath to ("" & thePreferenceFolderPosixPath & "Adobe Photoshop CC 2019 Settings/") as text
log thePhotoshopPreferenceFolderPosixPath

---Photoshop初期設定フォルダを作成
set theCommandCom to ("mkdir -p '" & thePhotoshopPreferenceFolderPosixPath & "'") as text
log theCommandCom
do shell script theCommandCom

---設定するファイルを作成する
set theCommandCom to ("touch '" & thePhotoshopPreferenceFolderPosixPath & theFileName & "'") as text
log theCommandCom
do shell script theCommandCom

---設定値ファイルを書き込む
set theCommandCom to ("echo \"" & thePrefText & "\" > '" & thePhotoshopPreferenceFolderPosixPath & theFileName & "'") as text
log theCommandCom
do shell script theCommandCom

---初期設定ファイルの場所を開く
tell application "Finder"
activate
set theCommandCom to ("open '" & thePhotoshopPreferenceFolderPosixPath & "'") as text
log theCommandCom
do shell script theCommandCom
end tell

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


|

« 로봇이 아니야 ロボットじゃない~君に夢中!~  Roboti Aniya (I Am Not A Robot)  e01 | トップページ | Perfume »

AdobeAppleScript」カテゴリの記事