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 "初期設定ファイルを作成しました"
| 固定リンク
「AdobeAppleScript」カテゴリの記事
- MakePSUserConfig(2018.10.31)
- この手の出し方は結構好感(2017.07.03)
- [Acrobat AppleScript]tsubasaさんのコメントへのレスポンス【別ファイル】(2011.04.15)
- [PSDcs4]WEBおよびデバイス用に保存【少し直し】(2010.10.25)
- [PSDcs4]WEBおよびデバイス用に保存(2010.10.24)