• 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
Re: Rogue list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rogue list?


  • Subject: Re: Rogue list?
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 6 May 2001 09:45:16 +0100

Shane Stanley wrote on Sun, 06 May 2001 08:23:49 +1000:

>I'm running AS1.6 under 9.1. When I run the following:
>
>tell application "Finder"
> set myPath to path to me
> set myFolder to container of myPath
> set theClients to name of folders of myFolder
>end tell
>log class of theClients
>--if theClients = {} then set theClients to {}
>set end of theClients to "New"
>theClients
>
>I get an error that I "Can't set end of {} to "New"." But when I uncomment
>the line before, it works. Any explanations?

... and Paul Berkowitz wrote on Sat, 05 May 2001 17:11:31 -0700:

>Shane didn't spell out the fact that you have to have your script editor
>running the script living in a folder with no subfolders sharing the space.
>If there are any folders in there along with the editor, there's no error.
>The error only occurs when there are no folders.

On earlier systems, you'd *expect* an error - but a line or two earlier,
when trying to get the names of the non-existent folders.

Deivy Petrescu wrote on Sat, 5 May 2001 21:25:35 -0400:

>Me too. I get the same error. However the following works
>
>tell application "Finder"
> set myPath to path to me
> set myFolder to container of myPath
> set theClients to name of folders of myFolder as alias list

Weeeirrrd!!

NG


  • Follow-Ups:
    • Re: Rogue list?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Rogue list?
  • Next by Date: Re: Rogue list?
  • Previous by thread: Re: Newbie question - creating non-blocking alerts
  • Next by thread: Re: Rogue list?
  • Index(es):
    • Date
    • Thread