• 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
Re: Listing labelled folders: choose folder vs. Manual alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Listing labelled folders: choose folder vs. Manual alias


  • Subject: Re: Listing labelled folders: choose folder vs. Manual alias
  • From: kai <email@hidden>
  • Date: Tue, 29 Nov 2005 14:02:07 +0000


On 29 Nov 2005, at 12:25, Jay Louvion wrote:

Why does this not work out the same ?

tell application "Finder"
set thedisk to (choose folder)
delay 1
set thelist to name of every folder in folder thedisk whose label index is 2
end tell


Returns the right list of names.

tell application "Finder"
set thedisk to ("LaCie Disk:Tempo:DIDIER") as alias
delay 1
set thelist to name of every folder in folder thedisk whose label index is 2
end tell


Returns an error.
The folder mentionned is an existing folder, same as the one pointed out in the previous script.


Anyone knows why ?

Both work here (10.4.3), Jay - as long as the target folder contains folders whose label index is 2.


If it doesn't, I get an (expected) error number -1728 [errAENoSuchObject]: "Finder got an error: Can't get name of every folder of folder (alias \"dum:de:dah:\") whose label index = 2."

What error are you getting? On what OS version?

(BTW, I can't replicate the behaviour you describe in your message headed "GUI scripting disguised as AS ?", either. Sorry. Possibly a connection between the 2 problems?)

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Listing labelled folders: choose folder vs. Manual alias
      • From: Jay Louvion <email@hidden>
References: 
 >Listing labelled folders: choose folder vs. Manual alias (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: Crashing Scripts from menu
  • Next by Date: Re: Listing labelled folders: choose folder vs. Manual alias
  • Previous by thread: Listing labelled folders: choose folder vs. Manual alias
  • Next by thread: Re: Listing labelled folders: choose folder vs. Manual alias
  • Index(es):
    • Date
    • Thread