Re: Newbie Progress Bar
Re: Newbie Progress Bar
- Subject: Re: Newbie Progress Bar
- From: Michelle Steiner <email@hidden>
- Date: Sun, 17 Dec 2000 11:16:47 -0800
On 12/17/00 11:15 AM, Ted Wood <email@hidden> wrote:
>
... becomes....
>
>
on AppendSuffix(thefolder, MySuffix)
>
tell application "Finder"
>
set myFolderContents to every file of thefolder
>
repeat with x in myFolderContents
>
if name of x does not end with MySuffix then
>
try
>
set name of x to (name of x & MySuffix)
>
tell me to UpdateGauge() -- <<<< --- note the
>
added tell statment here
>
end try
>
end if
>
end repeat
>
end tell
>
end AppendSuffix
How about this:
... becomes....
on AppendSuffix(thefolder, MySuffix)
tell application "Finder"
set myFolderContents to every file of thefolder
repeat with x in myFolderContents
if name of x does not end with MySuffix then
try
set name of x to (name of x & MySuffix)
my UpdateGauge()
(* instead of "tell me to" just use "my*)
end try
end if
end repeat
end tell
end AppendSuffix
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------