• 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
entire contents bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: entire contents bug
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: terminal problems
  • Next by Date: Re: entire contents bug
  • Previous by thread: Re: AS and AI
  • Next by thread: Re: entire contents bug
  • Index(es):
    • Date
    • Thread