applescript - New to Scripting: error "Finder got an error: Can’t get folder -


first time poster , neewbie applescript, main desire improve photography workflow capture one, lightroom , adobe apps. 1 of exercises text book has me stumped, example script:

tell application "finder"      tell folder "applescript" of folder "applications"         set file_list name of every item         set time_folder_was_created creation date         set time_folder_was_modified modification date      end tell end tell 

script editor keeps giving me result: error "finder got error: can’t folder \"applications\"." number -1728 folder "applications"

does have outdated process or os 10.11 security applications folder or i'm not seeing it.

thanks , instructions!

david

the folder applications subfolder of startup disk

tell application "finder"     tell folder "applescript" of folder "applications" of startup disk         set file_list name of every item         set time_folder_was_created creation date         set time_folder_was_modified modification date     end tell end tell 

or relative path

set applicationsfolder path applications folder text  tell application "finder"     tell folder "applescript" of folder applicationsfolder         set file_list name of every item         set time_folder_was_created creation date         set time_folder_was_modified modification date     end tell end tell 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -