• 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: Paul Berkowitz <email@hidden>
  • Date: Sat, 05 May 2001 16:27:36 -0700

On 5/5/01 3:23 PM, "Shane Stanley" <email@hidden> wrote:

> 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?


It must be a bug arising during the transition to OS X. I confirm that I get
the same result running in OS 9.1, when there are no folders in Script
Editor's parent folder. Similarly if I set up Smile in its own folder with
no subfolders. If you replace the 'set end of theClients to "New"' line with

set theClients to theClients & {"New"}

it works OK.

But when running your original script in the same Classic Script Editor in
Classic environment (booted from OS X), I get the correct result {"New"},
without error. Similarly running in OS X's Script Editor.



--
Paul Berkowitz


References: 
 >Rogue list? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Rogue list?
  • Next by Date: Re: Rogue list?
  • Previous by thread: Rogue list?
  • Next by thread: Re: Rogue list?
  • Index(es):
    • Date
    • Thread