[AppleScripts]GoogleMapのURLからBridge用のGPS用の値を作る【その4】
XMPファイルを作成保存するまえに
環境やらを調べておきます。
デフォルトアプリケーションを調べて
XMPとBridgeが紐づいている事を確認して
Bridgeのバージョンチェックと
XMPファイルの保存先までです
---------------/tmpにダミーでXMPファイルを作成します
do shell script "date > /tmp/ApplicationChk.xmp"
set theTmpXmpFile to (the path to startup disk as string) & "tmp:ApplicationChk.xmp" as alias
log "作ったダミーのXMPファイルのパスをエイリアスで取得→" & theTmpXmpFile
set theFileInfo to default application of (info for theTmpXmpFile) as text
log "ファイルインフォのデフォルトアプリケーションを取得→" & theFileInfo
if (theFileInfo contains "Bridge") is false then
---------------デフォルトアプリケーションがBridge以外ならここまで
display alert "XMPファイルがAdobe Bridgeに関連づけられていません"
else if (theFileInfo contains "Bridge") is true then
---------------デフォルトアプリがならAdobe Bridge処理を進める
---------------Bridgeのバージョン判定(ここでは判定だけ)
if (theFileInfo contains "CS6.app") is true then
log "Adobe Bridge CS6"
else if (theFileInfo contains "CS5.app") is true then
log "Adobe Bridge CS5"
else if (theFileInfo contains "CS4.app") is true then
log "Adobe Bridge CS4"
end if
---------------ダミーでXMPファルの保存先を開くだけにしておきます
set theSaveXmpPath to (the path to application support from user domain as text) & "Adobe:XMP:Metadata Templates:"
tell application "Finder"
activate
open folder theSaveXmpPath
end tell
end if
「GoogleMap2Bridgev4.rtf」をダウンロード
| 固定リンク
「AdobeBridge」カテゴリの記事
- AOM(Adobe Output Module)インストーラーちょっと直し(2017.04.10)
- AOM(Adobe Output Module)インストーラーCC2017対応版(2016.11.04)
- Install the Adobe Output Module for Bridge CC 2015 version 6.3(2016.08.31)
- Install the Adobe Output Module for Bridge CC 6.2(2016.08.31)
- Install_Adobe_Output_Module_CC2015.scpt(2016.07.23)