entire contents bug
entire contents bug
- Subject: entire contents bug
- From: Luther Fuller <email@hidden>
- Date: Mon, 08 Mar 2010 10:28:34 -0600
As a result of finding an error where there should not be an error, I tried this ...
set folderAlias to alias "OS_X:Library (Disabled):untitled folder" -- contains one item tell application "Finder" try set itemList to (items of entire contents of folderAlias) as alias list on error errText number errNr "Error = " & errNr display dialog the result default answer errText end try end tell
and got the error: -1700 Can’t make alias "OS_X:Library (Disabled):untitled folder:World Clock.wdgt:" into type alias list.
In order to correct this, I used the script ...
set folderAlias to alias "OS_X:Library (Disabled):untitled folder" -- contains one item tell application "Finder" try set itemList to (items of entire contents of folderAlias) as alias list on error set itemList to (items of folderAlias) as alias list end try end tell
I recall that there use to be a bug with getting a list of items from a folder with only one item, but this has been fixed. It seems that the fix did not include 'entire contents'.
|
_______________________________________________
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