Re: Stack overflow
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