2017-07-25 2 views
1

初めてのポスターと、AppleScriptのneewbieは、Capture One、LightRoom、Adobeのアプリケーションを使用して写真ワークフローを改善することが主な願いです。テキストブック、私は困惑している、スクリプトの例は:Scripting New to:エラー "Finderにエラーがありました:フォルダを取得できません

tell application "Finder" 

    tell folder "AppleScript" of folder "Applications" 
     set file_list to name of every item 
     set time_folder_was_created to creation date 
     set time_folder_was_modified to modification date 

    end tell 
end tell 

スクリプトエディタは、私にこの結果を与え続け:エラー「Finderはエラーを得た:フォルダ\取得できません」「」アプリケーション\数-1728フォルダから「アプリケーションの"

これは、旧式のプロセスまたはOS 10.11セキュリティのアプリケーションフォルダと関係がありますか、それとも表示されません。

ご協力ありがとうございました!

デビッド

答えて

0

フォルダApplicationsstartup disk

tell application "Finder" 
    tell folder "AppleScript" of folder "Applications" of startup disk 
     set file_list to name of every item 
     set time_folder_was_created to creation date 
     set time_folder_was_modified to modification date 
    end tell 
end tell 

または相対パス

set applicationsFolder to path to applications folder as text 
tell application "Finder" 
    tell folder "AppleScript" of folder applicationsFolder 
     set file_list to name of every item 
     set time_folder_was_created to creation date 
     set time_folder_was_modified to modification date 
    end tell 
end tell 
とのサブフォルダである
関連する問題