• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
get file not found when the file exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get file not found when the file exists


  • Subject: get file not found when the file exists
  • From: "koenig.yvan" <email@hidden>
  • Date: Sat, 14 Dec 2013 15:17:23 +0100

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
 _______________________________________________
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

  • Follow-Ups:
    • Re: get file not found when the file exists
      • From: Thomas Fischer <email@hidden>
    • Re: get file not found when the file exists
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: As Alias List?
  • Next by Date: Bizarre
  • Previous by thread: Re: Rep: Cliclick Fails on NON-Laptop Mavericks
  • Next by thread: Re: get file not found when the file exists
  • Index(es):
    • Date
    • Thread