« [AppleScripts]GoogleMapのURLからBridge用のGPS用の値を作る【その3】 | トップページ | LiteSpeed Web Server »

[AppleScripts]GoogleMapのURLからBridge用のGPS用の値を作る【その4】

XMPファイルを作成保存するまえに
環境やらを調べておきます。


20130131_232613

 
デフォルトアプリケーションを調べて
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」をダウンロード


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

|

« [AppleScripts]GoogleMapのURLからBridge用のGPS用の値を作る【その3】 | トップページ | LiteSpeed Web Server »

AdobeBridge」カテゴリの記事