Re: entire contents bug
Re: entire contents bug
- Subject: Re: entire contents bug
- From: Luther Fuller <email@hidden>
- Date: Mon, 08 Mar 2010 11:09:40 -0600
On Mar 8, 2010, at 10:40 AM, Michelle Steiner wrote: On Mar 8, 2010, at 9:28 AM, Luther Fuller wrote: 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.
Remove "items of" from the script.
That may not always be possible. For example ...
set folderAlias to alias "OS_X:Library (Disabled):untitled folder" -- contains one folder and one file tell application "Finder" try set itemList to (folders 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
This bug needs to be fixed.
|
_______________________________________________
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