Re: Listing labelled folders: choose folder vs. Manual alias
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