Bizarre
Bizarre
- Subject: Bizarre
- From: "koenig.yvan" <email@hidden>
- Date: Sat, 14 Dec 2013 22:46:36 +0100
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 --> {"…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 …Library:Containers:com.apple.BKAgentService:Data:Library:Application Scripts:com.apple.BKAgentService\"." number -1728 from disk item "…Library:Containers:com.apple.BKAgentService:Data:Library:Application Scripts:com.apple.BKAgentService" *)
Hello
Is one of you fair enough to explain why this script fails when it is asked to grab the properties of a file which it just extracted the path ?
I used a loop to be sure that the script will try to scan all the files if there was several ones in the scanned folder.
It seams that the symlinks available in the folder "~/Library/Containers/com.apple.BKAgentService/" are pointing upon themselves. Is that able to explain the received error message ?
Oops, I forgot to write that the folder "~/Library/Containers/com.apple.BKAgentService" is created by iBooks.
Yvan KOENIG (VALLAURIS, France) samedi 14 décembre 2013 22:43:51
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden