• 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: Stack overflow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack overflow


  • Subject: Re: Stack overflow
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 6 Mar 2006 13:08:16 -0500

On 3/6/06, Paul Berkowitz <email@hidden> wrote:
> On 3/6/06 9:38 AM, "Robert Poland" <email@hidden> wrote:
> > set new_item_name to lowercase {new_item_name}

> Why in the world are you using list braces for 'lowercase'?

Good question, but not the problem here.  "lowercase" stringifies its
argument, so a list of one string is the same as that one string as
far as it's concerned.  The stack overflow is occuring on the "set
name of myFile to new_item_name" line.  Which is clearly incorrect
behavior, but apparently "set name of file" doesn't work outside of
the Finder.   Putting it in a finder tell works fine, though:

tell application "Finder" to set name of myFile to new_item_name

Works even if you leave the curlies there.

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Stack overflow (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Stack overflow
  • Next by Date: Re: Stack overflow
  • Previous by thread: Re: Stack overflow
  • Next by thread: Re: Stack overflow
  • Index(es):
    • Date
    • Thread