Hello
I'm really puzzled by the behavior of this script :
tell application "System Events" set filesInApplications_Scripts to path of disk items of folder "~/Library/Containers/com.apple.BKAgentService/Data/Library/Application Scripts/" whose visible is true --> {"Macintosh HD:Users:yvankoenig:Library:Containers:com.apple.BKAgentService:Data:Library:Application Scripts:com.apple.BKAgentService"} repeat with aPath in filesInApplications_Scripts (get name of disk item aPath) end repeat end tell (* Résultat : error "Erreur dans System Events : Il est impossible d’obtenir disk item \"Macintosh HD:Users:yvankoenig:Library:Containers:com.apple.BKAgentService:Data:Library:Application Scripts:com.apple.BKAgentService\"." number -1728 from disk item "Macintosh HD:Users:yvankoenig:Library:Containers:com.apple.BKAgentService:Data:Library:Application Scripts:com.apple.BKAgentService" *)
Here, it extracts a path from the source folder but when it's asked to grab the name of the item it claims tat it doesn't find it.
I coded a loop in case of there are several items in the source folder.
What may explain that ? Funny feature, when I open the infos window for every symlink of the folder "~/Library/Containers/com.apple.BKAgentService/", it appears that they are pointing upon themselves.
Yvan KOENIG (VALLAURIS, France) samedi 14 décembre 2013 15:17:20 |