whose class is folder...
whose class is folder...
- Subject: whose class is folder...
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 07 Apr 2018 06:49:04 +0900
I'm having issues understanding basic filtering it seems:
tell application "Finder"
class of item 1 of (selection as list)
end tell
this returns folder
(if I select a folder, that is)
but if I do
tell application "Finder"
item of (selection as list) whose class is folder
end tell
I get a "can't get item of {...}" -1,728 error...
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
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